/** * Get the cms update handler shared by all tools. */ public CMSUpdateHandler getCMSHandler() { assert SwingUtilities.isEventDispatchThread();// || Starter.isShutdown(); if(cmshandler==null) { cmshandler = new CMSUpdateHandler(jccaccess); } return cmshandler; }
/** * */ protected void disposeTreeView() { cmshandler.removeCMSListener(access.getComponentIdentifier().getRoot(), cmslistener); valmap.clear(); }
cmshandler.addCMSListener(access.getComponentIdentifier().getRoot(), cmslistener);
ret = removeLocalCMSListener(listener); SRemoteGui.deregisterRemoteCMSListener(access, cid, buildId(cid)) .addResultListener(new SwingDelegationResultListener<Void>(fut)); if(listeners.isEmpty())
return installLocalCMSListener(listener); listeners.put(cid, listener); SRemoteGui.installRemoteCMSListener(access, cid, rcl, buildId(cid)) .addResultListener(new SwingDefaultResultListener<Void>()
SRemoteGui.deregisterRemoteCMSListener(access, cid, buildId(cid)).addResultListener(crl); else crl.resultAvailable(null);
for(Iterator<ChangeEvent<?>> it=events.iterator(); it.hasNext(); ) informListeners(it.next(), cls);
cmshandler.addCMSListener(listenercid, cmslistener);
this.access = access; cmshandler.addCMSListener(access.getComponentIdentifier(), new ICMSComponentListener()
/** * Get the cms update handler shared by all tools. */ public CMSUpdateHandler getCMSHandler() { assert SwingUtilities.isEventDispatchThread();// || Starter.isShutdown(); if(cmshandler==null) { cmshandler = new CMSUpdateHandler(jccaccess); } return cmshandler; }
/** * Remove listener, if any. */ public void dispose() { if(cmslistener!=null) { CMSUpdateHandler cmshandler = (CMSUpdateHandler)getTree().getClientProperty(CMSUpdateHandler.class); cmshandler.removeCMSListener(listenercid, cmslistener); } } }
jcc.getCMSHandler().addCMSListener(desc.getName().getRoot(), listener);
final CMSUpdateHandler cmsuh = new CMSUpdateHandler(access);
public void customExceptionOccurred(Exception exception) { removeCMSListener(((IComponentDescription)event.getValue()).getName(), lis); } });
jcc.getCMSHandler().addCMSListener(desc.getName().getRoot(), listener);
public void run() new CMSUpdateHandler(agent.getExternalAccess()), null, new ComponentIconCache(agent.getExternalAccess())); final IComponentIdentifier cid = agentselector.selectAgent(null); if(cid!=null)
public void customExceptionOccurred(Exception exception) { removeCMSListener(((IComponentDescription)event.getValue()).getName(), lis); } });
cmshandler.addCMSListener(access.getComponentIdentifier(), new ICMSComponentListener()
public void customExceptionOccurred(Exception exception) { removeCMSListener(((IComponentDescription)event.getValue()).getName(), lis); } });
public void run() { for(int i=0; i<debuggerpanels.size(); i++) { IDebuggerPanel panel = (IDebuggerPanel)debuggerpanels.get(i); panel.dispose(); } if(listener!=null) { jcc.getCMSHandler().removeCMSListener(desc.getName().getRoot(), listener); } } });