private void removeEditor() { Control oldEditor = editor.getEditor(); if (oldEditor != null) oldEditor.dispose(); }
private void removeEditor() { Control oldEditor = editor.getEditor(); if (oldEditor != null && !oldEditor.isDisposed()){ oldEditor.dispose(); } }
/** * called before the TreeView is refreshed. This allows any subclasses to cache * any information in the view and redisplay after the refresh. This is used by the * OSGiBundleBlock to cache the values of the default launch and auto launch columns * in the table tree. * * @param treeView The tree view that will be refreshed. */ protected void refreshTreeView(CheckboxTreeViewer treeView) { // Remove any selection if (treeView.getTree().getItemCount() > 0) { treeView.getTree().setSelection(treeView.getTree().getItem(0)); } else { treeView.setSelection(new StructuredSelection(StructuredSelection.EMPTY)); } // Reset any editors on the tree viewer if (levelColumnEditor != null && levelColumnEditor.getEditor() != null && !levelColumnEditor.getEditor().isDisposed()) { levelColumnEditor.getEditor().dispose(); } if (autoColumnEditor != null && autoColumnEditor.getEditor() != null && !autoColumnEditor.getEditor().isDisposed()) { autoColumnEditor.getEditor().dispose(); } }
private void editTreeItem(final TreeItem item) { Control oldEditor = editor.getEditor(); if (oldEditor != null) oldEditor.dispose();
private void editTreeItem(final TreeItem item) { Control oldEditor = editor.getEditor(); if (oldEditor != null) oldEditor.dispose();