当前位置: 首页>>代码示例>>Java>>正文


Java JPDADebugger.removePropertyChangeListener方法代码示例

本文整理汇总了Java中org.netbeans.api.debugger.jpda.JPDADebugger.removePropertyChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java JPDADebugger.removePropertyChangeListener方法的具体用法?Java JPDADebugger.removePropertyChangeListener怎么用?Java JPDADebugger.removePropertyChangeListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.debugger.jpda.JPDADebugger的用法示例。


在下文中一共展示了JPDADebugger.removePropertyChangeListener方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: destroy

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
private void destroy () {
    DebuggerManager.getDebuggerManager ().removeDebuggerListener (
        DebuggerManager.PROP_WATCHES,
        this
    );
    JPDADebugger d = debugger.get ();
    if (d != null)
        d.removePropertyChangeListener (this);

    Watch[] ws = DebuggerManager.getDebuggerManager ().
        getWatches ();
    int i, k = ws.length;
    for (i = 0; i < k; i++)
        ws [i].removePropertyChangeListener (this);

    if (task != null) {
        // cancel old task
        task.cancel ();
        if (verbose)
            System.out.println("WM cancel old task " + task);
        task = null;
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:24,代码来源:WatchesModel.java

示例2: engineRemoved

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
@Override
public void engineRemoved (DebuggerEngine engine) {
    JPDADebugger debugger = engine.lookupFirst(null, JPDADebugger.class);
    if (debugger == null) {
        return;
    }
    synchronized (debuggerEngines) {
        Integer num = debuggerEngines.get(debugger);
        if (num != null) {
            if (num > 1) {
                debuggerEngines.put(debugger, num-1);
                return ;
            } else {
                debuggerEngines.remove(debugger);
            }
        }
    }
    debugger.removePropertyChangeListener (
        JPDADebugger.PROP_STATE,
        this
    );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:RunToCursorActionProvider.java

示例3: setCurrentDebugger

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
private void setCurrentDebugger(DebuggerEngine engine) {
    JPDADebugger oldDebugger = currentDebugger;
    if (oldDebugger != null) {
        oldDebugger.removePropertyChangeListener(JPDADebugger.PROP_BREAKPOINTS_ACTIVE, this);
    }
    boolean active = true;
    JPDADebugger debugger = null;
    if (engine != null) {
        debugger = engine.lookupFirst(null, JPDADebugger.class);
        if (debugger != null) {
            debugger.addPropertyChangeListener(JPDADebugger.PROP_BREAKPOINTS_ACTIVE, this);
            active = debugger.getBreakpointsActive();
        }
    }
    currentDebugger = debugger;
    getAnnotationProvider().setBreakpointsActive(active);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:18,代码来源:BreakpointAnnotationManager.java

示例4: propertyChange

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
    if (JPDADebugger.PROP_STATE.equals(evt.getPropertyName())) {
        JPDADebugger d = (JPDADebugger) evt.getSource();
        if (JPDADebugger.STATE_DISCONNECTED == d.getState()) {
            d.removePropertyChangeListener(this);
            synchronized (remoteServiceClasses) {
                remoteServiceClasses.remove(d);
            }
        }
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:RemoteServices.java

示例5: dispose

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
private void dispose() {
    DebuggerManager.getDebuggerManager().removeDebuggerListener(
            DebuggerManager.PROP_DEBUGGER_ENGINES,
            this
            );
    Iterator it = debuggers.iterator();
    while (it.hasNext()) {
        JPDADebugger d = (JPDADebugger) it.next();
        d.removePropertyChangeListener(
                JPDADebugger.PROP_STATE,
                this
                );
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:JPDAStart.java

示例6: engineRemoved

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
@Override
public void engineRemoved(DebuggerEngine engine) {
    JPDADebugger debugger = engine.lookupFirst
            (null, JPDADebugger.class);
    if (debugger == null) {
        return;
    }
    debugger.removePropertyChangeListener(
            JPDADebugger.PROP_STATE,
            this
            );
    debuggers.remove(debugger);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:JPDAStart.java

示例7: propertyChange

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
    JPDADebugger deb = (JPDADebugger)evt.getSource();
    if (deb != null && deb.getState() == JPDADebugger.STATE_DISCONNECTED) {
        deb.removePropertyChangeListener(this);
        stop();
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ShellLaunchManager.java

示例8: detachFromStateChange

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
private synchronized void detachFromStateChange() {
    JPDADebugger debugger = lastDebugger.get();
    if (debugger != null) {
        debugger.removePropertyChangeListener(JPDADebugger.PROP_STATE, this);
    }
    if (refreshTask != null) {
        refreshTask.cancel();
        refreshTask = null;
    }
    tearDown();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:ClassesCountsView.java

示例9: engineRemoved

import org.netbeans.api.debugger.jpda.JPDADebugger; //导入方法依赖的package包/类
@Override
public void engineRemoved (DebuggerEngine engine) {
    Session session;
    synchronized (startedSessionRef) {
        session = startedSessionRef[0].get();
    }
    if (session != null && !enginesCheckDone) {
        // check each registered engine if it belong to the session
        enginesCheckDone = true;
        List<DebuggerEngine> list = new ArrayList<DebuggerEngine>(engines);
        for (DebuggerEngine eng : list) {
            boolean hasEngine = false;
            for (String l : session.getSupportedLanguages()) {
                if (engine.equals(session.getEngineForLanguage(l))) {
                    hasEngine = true;
                    break;
                }
            }
            if (!hasEngine) {
                engines.remove(eng);
            }
        }
    }
    JPDADebugger debugger = engine.lookupFirst(null, JPDADebugger.class);
    if (debugger == null) return;
    if (engines.remove(engine)) {
        debugger.removePropertyChangeListener (
            JPDADebugger.PROP_STATE,
            pcl
        );
    }
    if (engines.isEmpty()) {
        dispose();
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:36,代码来源:JPDAStart.java


注:本文中的org.netbeans.api.debugger.jpda.JPDADebugger.removePropertyChangeListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。