private void addRenameTowTreeScriptItems() { lastItem = new TreeItem[1]; editor = new TreeEditor( wTree ); wTree.addListener( SWT.Selection, new Listener() { public void handleEvent( Event event ) { final TreeItem item = (TreeItem) event.item; renameFunction( item ); } } ); }
private void addRenameTowTreeScriptItems() { lastItem = new TreeItem[1]; editor = new TreeEditor( wTree ); wTree.addListener( SWT.Selection, new Listener() { public void handleEvent( Event event ) { final TreeItem item = (TreeItem) event.item; renameFunction( item ); } } ); }
private void addRenameToTreeScriptItems() { lastItem = new TreeItem[1]; editor = new TreeEditor( wTree ); wTree.addListener( SWT.Selection, new Listener() { public void handleEvent( Event event ) { final TreeItem item = (TreeItem) event.item; renameFunction( item ); } } ); }
final RepositoryDirectoryInterface repdir = repositorydir; TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
final RepositoryDirectoryInterface frepdir = repdir; TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
final RepositoryDirectoryInterface frepdir = repdir; TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
TreeEditor editor = new TreeEditor( wTree ); editor.setItem( ti ); final Text text = new Text( wTree, SWT.NONE );
/** * Creates a new action. * * @param provider * the shell provider for any dialogs * @param tree * the tree * @since 3.4 */ public RenameResourceAction(IShellProvider provider, Tree tree) { this(provider); this.navigatorTree = tree; this.treeEditor = new TreeEditor(tree); }
@Override protected ControlEditor createControlEditor(Composite composite) { return new TreeEditor((Tree)composite); }
/** * Creates an instance of a NavigatorSiteEditor. * * @param aCommonViewer * the viewer this editor applies to * @param navigatorTree * the tree that is being edited */ public NavigatorSiteEditor(CommonViewer aCommonViewer, Tree navigatorTree) { commonViewer = aCommonViewer; this.navigatorTree = navigatorTree; treeEditor = new TreeEditor(navigatorTree); }
/** * Creates a new action. * * @param shell * the shell for any dialogs * @param tree * the tree * @deprecated see {@link #RenameResourceAction(IShellProvider, Tree)} */ @Deprecated public RenameResourceAction(Shell shell, Tree tree) { this(shell); this.navigatorTree = tree; this.treeEditor = new TreeEditor(tree); }
/** * @param viewer * the viewer the editor is attached to * @param focusCellManager * the cell focus manager if one used or <code>null</code> * @param editorActivationStrategy * the strategy used to decide about the editor activation * @param feature * the feature mask */ TreeViewerEditor(TreeViewer viewer, SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature) { super(viewer, editorActivationStrategy, feature); treeEditor = new TreeEditor(viewer.getTree()); this.focusCellManager = focusCellManager; }
/** * @param viewer * the viewer the editor is attached to * @param focusCellManager * the cell focus manager if one used or <code>null</code> * @param editorActivationStrategy * the strategy used to decide about the editor activation * @param feature * the feature mask */ TreeViewerEditor(TreeViewer viewer, SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature) { super(viewer, editorActivationStrategy, feature); treeEditor = new TreeEditor(viewer.getTree()); this.focusCellManager = focusCellManager; }
/** * @param viewer * the viewer the editor is attached to * @param focusCellManager * the cell focus manager if one used or <code>null</code> * @param editorActivationStrategy * the strategy used to decide about the editor activation * @param feature * the feature mask */ TreeViewerEditor(TreeViewer viewer, SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature) { super(viewer, editorActivationStrategy, feature); treeEditor = new TreeEditor(viewer.getTree()); this.focusCellManager = focusCellManager; }
public RenameAction(Shell shell, TreeViewer viewer, ISelectionProvider selectionProvider) { super(shell, selectionProvider, Messages.actionRename); this.tree = viewer.getTree(); this.treeEditor = new TreeEditor(tree); try { selectionChanged((IStructuredSelection) selectionProvider.getSelection()); } catch (Exception e) { // ignore } }
/** * Creates a property sheet viewer on a newly-created tree control * under the given parent. The viewer has no input, and no root entry. * * @param parent * the parent control */ public PropertySheetViewer(Composite parent) { tree = new Tree(parent, SWT.FULL_SELECTION | SWT.SINGLE | SWT.HIDE_SELECTION); // configure the widget tree.setLinesVisible(true); tree.setHeaderVisible(true); // configure the columns addColumns(); // add our listeners to the widget hookControl(); // create a new tree editor treeEditor = new TreeEditor(tree); // create the entry and editor listener createEntryListener(); createEditorListener(); }
/** * Creates a property sheet viewer on a newly-created tree control * under the given parent. The viewer has no input, and no root entry. * * @param parent * the parent control */ public PropertySheetViewer(Composite parent) { tree = new Tree(parent, SWT.FULL_SELECTION | SWT.SINGLE | SWT.HIDE_SELECTION); // configure the widget tree.setLinesVisible(true); tree.setHeaderVisible(true); // configure the columns addColumns(); // add our listeners to the widget hookControl(); // create a new tree editor treeEditor = new TreeEditor(tree); // create the entry and editor listener createEntryListener(); createEditorListener(); }
/** * Creates a property sheet viewer on a newly-created tree control * under the given parent. The viewer has no input, and no root entry. * * @param parent * the parent control */ public PropertySheetViewer(Composite parent) { tree = new Tree(parent, SWT.FULL_SELECTION | SWT.SINGLE | SWT.HIDE_SELECTION); // configure the widget tree.setLinesVisible(true); tree.setHeaderVisible(true); // configure the columns addColumns(); // add our listeners to the widget hookControl(); // create a new tree editor treeEditor = new TreeEditor(tree); // create the entry and editor listener createEntryListener(); createEditorListener(); }