text.addListener( SWT.Traverse, textListener ); text.addListener( SWT.Verify, textListener ); editor.setEditor( composite, item ); text.setText( item.getText() ); text.selectAll();
text.addListener( SWT.Traverse, textListener ); text.addListener( SWT.Verify, textListener ); editor.setEditor( composite, item ); text.setText( item.getText() ); text.selectAll();
text.addListener( SWT.Traverse, textListener ); text.addListener( SWT.Verify, textListener ); editor.setEditor( composite, item ); text.setText( item.getText() ); text.selectAll();
editor.setEditor( text );
editor.setEditor( text );
editor.setEditor( text );
editor.setEditor( text );
editor.setEditor( text );
editor.setEditor( text );
@Override protected void setEditor(Control editorControl, Widget item) { ((TreeEditor)compositeEditor).setEditor(editorControl, (TreeItem)item); } }
@Override protected void setEditor(Control w, Item item, int fColumnNumber) { treeEditor.setEditor(w, (TreeItem) item, fColumnNumber); }
@Override protected void setEditor(Control w, Item item, int fColumnNumber) { treeEditor.setEditor(w, (TreeItem) item, fColumnNumber); }
/** * Creates the parent composite for the editor overlay. * * @return the parent composite for the editor overlay */ Composite createParent() { Composite result = new Composite(navigatorTree, SWT.NONE); TreeItem[] selectedItems = navigatorTree.getSelection(); treeEditor.horizontalAlignment = SWT.LEFT; treeEditor.grabHorizontal = true; treeEditor.setEditor(result, selectedItems[0]); return result; }
/** * Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above. * * <p>Note: The Control provided as the editor <b>must</b> be created with its parent being the Tree control * specified in the TreeEditor constructor. * * @param editor the Control that is displayed above the cell being edited * @param item the TreeItem for the row of the cell being tracked by this editor */ public void setEditor (Control editor, TreeItem item) { setItem(item); setEditor(editor); }
/** * Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above. * * <p>Note: The Control provided as the editor <b>must</b> be created with its parent being the Tree control * specified in the TreeEditor constructor. * * @param editor the Control that is displayed above the cell being edited * @param item the TreeItem for the row of the cell being tracked by this editor */ public void setEditor (Control editor, TreeItem item) { setItem(item); setEditor(editor); }
/** * Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above. * * <p>Note: The Control provided as the editor <b>must</b> be created with its parent being the Tree control * specified in the TreeEditor constructor. * * @param editor the Control that is displayed above the cell being edited * @param item the TreeItem for the row of the cell being tracked by this editor */ public void setEditor (Control editor, TreeItem item) { setItem(item); setEditor(editor); }
private Composite createParent() { Tree tree2 = getTree(); Composite result = new Composite(tree2, SWT.NONE); TreeItem[] selectedItems = tree2.getSelection(); treeEditor.horizontalAlignment = SWT.LEFT; treeEditor.grabHorizontal = true; treeEditor.setEditor(result, selectedItems[0]); return result; }
Composite createParent() { Tree tree = getTree(); Composite result = new Composite(tree, SWT.NONE); TreeItem[] selectedItems = tree.getSelection(); treeEditor.horizontalAlignment = SWT.LEFT; treeEditor.grabHorizontal = true; treeEditor.setEditor(result, selectedItems[0]); return result; }
/** * Close the text widget and reset the editorText field. */ protected void disposeTextWidget() { if (textActionHandler != null) textActionHandler.removeText(textEditor); if (textEditorParent != null) { textEditorParent.dispose(); textEditorParent = null; textEditor = null; treeEditor.setEditor(null, null); } }
/** * Closes the text editor widget. */ void disposeTextWidget() { if (textActionHandler != null) { textActionHandler.removeText(textEditor); } if (textEditorParent != null) { textEditorParent.dispose(); textEditorParent = null; textEditor = null; treeEditor.setEditor(null, null); } }