@Override public boolean isSelectionEmpty() { return getSelectionModel().isSelectionEmpty(); }
/** * */ protected boolean isTreeViewSelectionEmpty() { return ((ComponentTreePanel)comptree).getTree().getSelectionModel().isSelectionEmpty(); }
public Object getFindQuery() { if (selection_.isSelectionEmpty()) { return null; } final List res = new ArrayList(20); final TreePath[] paths = selection_.getSelectionPaths(); for (int i = paths.length - 1; i >= 0; i--) { model_.fillWithGeometries(((LayerNode) paths[i].getLastPathComponent()), res); } return res.toArray(new LinearRing[res.size()]); }
/** * Check if mListIndex is selected, if mListIndex is NO_SELECTION, check if there is no selection. * @return the state, true if the user provided index is contained in the list selection */ protected boolean getInternalState() { if ((mTreePath == null) && mTreeSelectionModel.isSelectionEmpty()) { return true; } else { return mTreeSelectionModel.isPathSelected(mTreePath); } }
public void valueChanged(final TreeSelectionEvent _e) { final TreeSelectionModel model = (TreeSelectionModel) _e.getSource(); setPalettePanelTarget(model.isSelectionEmpty() ? null : model.getSelectionPath().getLastPathComponent()); }
public void updateFromModel(final TreeSelectionModel _model) { if (_model.isSelectionEmpty()) { setAnimAdapter(null); return;
if (source.isSelectionEmpty()) {
public void valueChanged(TreeSelectionEvent e) { if ( !blockNotification) { TreePath selPath = e.getPath(); int index = -1; String id = null; if ( selPath != null && !selectionModel.isSelectionEmpty()) { SVGNavigatorNode tna = (SVGNavigatorNode)selPath.getLastPathComponent(); DocumentElement de = tna.getDocumentElement(); id = getElementId(de); index = de.getStartOffset(); } TopComponent tc = m_doj.getMTVC(); if ( tc != null) { Lookup lkp = tc.getLookup(); SelectionCookie cookie = lkp.lookup(SelectionCookie.class); if ( cookie != null && id != null) { cookie.updateSelection(m_doj, id, index, false); } } } } });
private void setDataTreeForResultTab() { final ProcessorPortResultsViewTab selectedResultTab = (ProcessorPortResultsViewTab) tabbedPane .getSelectedComponent(); if (processorEnactmentsTree.getSelectionModel().isSelectionEmpty()) { disableResultTabForNode(selectedResultTab, null); return;
return selectionModel.isSelectionEmpty();