/** * Adds l to listeners collection. These listeners are notified when project nodes selection is changed. * @param l */ public void addSelectionChangeListener (PropertyChangeListener l) { em.addPropertyChangeListener(l); }
@PostConstruct @SuppressWarnings("PMD.UnusedPrivateMethod") @edu.umd.cs.findbugs.annotations.SuppressWarnings("UPM_UNCALLED_PRIVATE_METHOD") private void initialize() { explorerManager.addPropertyChangeListener(nodeSelectionListener); } }
@Override public void addNotify() { super.addNotify(); explorerManager.addPropertyChangeListener(this); }
ActionStateUpdater(ExplorerManager m) { timer = RP.create(this); weakL = WeakListeners.propertyChange(this, m); m.addPropertyChangeListener(weakL); }
/** Creates new form AddDataProviderDialog */ public AddDataProviderDialog() { initComponents(); dataProviderExplorerPanel = new DataProviderExplorerPanel(); dataProviderExplorerPanel.getExplorerManager().addPropertyChangeListener(this); add(dataProviderExplorerPanel, BorderLayout.CENTER); // This is a pure hack for not to show the Query view as it screws up the Add Data Provider // functionality. We need better way to add data provider, some kind of service offered by Server Navigator. System.setProperty("AddDataProviderMode","true"); }
public ClassView() { setLayout(new BorderLayout()); //init(); manager.addPropertyChangeListener(this); ActionMap map = this.getActionMap(); map.put(DefaultEditorKit.copyAction, ExplorerUtils.actionCopy(manager)); setupRootContext(createEmptyRoot()); }
public void addNotify() { super.addNotify (); explorerManager = ExplorerManager.find (this); explorerManager.addPropertyChangeListener (listener); doChecks (); }
public void addNotify() { super.addNotify (); explorerManager = ExplorerManager.find (this); explorerManager.addPropertyChangeListener (listener); doChecks (); }
public void addNotify() { super.addNotify(); explorerManager = ExplorerManager.find(this); explorerManager.addPropertyChangeListener(listener); doChecks(); }
@Override public void addNotify() { super.addNotify(); ExplorerManager.Provider prov = (ExplorerManager.Provider) SwingUtilities.getAncestorOfClass(ExplorerManager.Provider.class, this); if (prov != null) { parentManager = prov.getExplorerManager(); parentManager.addPropertyChangeListener(this); propertyChange(null); } }
/** Initializes listening on ExplorerManager property changes. */ private void initListening() { // Attaches listener if there is not one already. ExplorerManager man = getExplorerManager(); man.addPropertyChangeListener( org.openide.util.WeakListeners.propertyChange( managerListener, man)); setActivatedNodes (manager.getSelectedNodes ()); }
public void addNotify() { super.addNotify(); explorerManager = ExplorerManager.find(this); if (!guiInitialized) { initializeGUI(); } // add propertyChange listeners to the explorerManager explorerManager.addPropertyChangeListener(managerListener); setNodes(explorerManager.getSelectedNodes()); }
/** Creates the lookup. * @param tc component to work on * @param map action map to add to the lookup */ public DefaultEMLookup(ExplorerManager tc, javax.swing.ActionMap map) { super(); this.tc = tc; this.listener = WeakListeners.create(LookupListener.class, this, null); this.actionMap = Lookups.singleton(map); tc.addPropertyChangeListener(WeakListeners.propertyChange(this, tc)); updateLookups(tc.getSelectedNodes()); }
@Override public void addNotify() { manager = ExplorerManager.find(this); manager.addVetoableChangeListener(iListener); manager.addPropertyChangeListener(iListener); updateChoice(); addActionListener(iListener); super.addNotify(); }
public synchronized ExplorerManager getExplorerManager() { if (this.manager == null) { this.manager = new ExplorerManager (); this.manager.setRootContext(new AbstractNode (getChildren())); this.manager.addPropertyChangeListener (this); this.manager.addVetoableChangeListener(this); } return manager; }
@Override public synchronized ExplorerManager getExplorerManager() { if (this.manager == null) { this.manager = new ExplorerManager (); this.manager.setRootContext(new AbstractNode (getChildren())); this.manager.addPropertyChangeListener (this); this.manager.addVetoableChangeListener(this); } return manager; }
@Override public void addNotify() { super.addNotify(); getExplorerManager().getRootContext().addNodeListener(rootNodeListener); getExplorerManager().addPropertyChangeListener(selectionListener); }
/** Creates the lookup. * @param tc component to work on * @param map action map to add to the lookup */ public DefaultEMLookup(ExplorerManager tc, javax.swing.ActionMap map) { super (); this.tc = tc; this.listener = (LookupListener)WeakListeners.create(LookupListener.class, this, null); this.actionMap = Lookups.singleton (map); tc.addPropertyChangeListener(WeakListeners.propertyChange (this, tc)); updateLookups (tc.getSelectedNodes ()); }
/** Creates the lookup. * @param tc component to work on * @param map action map to add to the lookup */ public DefaultEMLookup(ExplorerManager tc, javax.swing.ActionMap map) { super (); this.tc = tc; this.listener = (LookupListener)WeakListeners.create(LookupListener.class, this, null); this.actionMap = Lookups.singleton (map); tc.addPropertyChangeListener(WeakListeners.propertyChange (this, tc)); updateLookups (tc.getSelectedNodes ()); }
public void addNotify() { super.addNotify(); HgModuleConfig.getDefault().getPreferences().addPreferenceChangeListener(this); mercurial.getFileStatusCache().addPropertyChangeListener(this); mercurial.addPropertyChangeListener(this); explorerManager.addPropertyChangeListener(this); mercurial.addPropertyChangeListener(syncTable); reScheduleRefresh(0); // the view does not listen for changes when it is not visible }