本文整理汇总了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;
}
}
示例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
);
}
示例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);
}
示例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);
}
}
}
}
示例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
);
}
}
示例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);
}
示例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();
}
}
示例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();
}
示例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();
}
}