virtualMachine.addListener(adapt);
debuggerAdaptor.put(listener, adapt);
}
public void removeListener(DebuggerListener listener) {
DebuggerListenerAdaptor adapt = new DebuggerListenerAdaptor();
adapt.setListener(listener);
virtualMachine.removeListener(adapt);
if(debuggerAdaptor.containsKey(listener)) {
debuggerAdaptor.remove(listener);
}
}