Java Code Examples for org.eclipse.swt.widgets.Tree#setToolTipText()
The following examples show how to use
org.eclipse.swt.widgets.Tree#setToolTipText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TreeViewPalettePage.java From birt with Eclipse Public License 1.0 | 6 votes |
/** * Creates the palette viewer and its control. * * @see Page#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl( Composite parent ) { tree = new Tree( parent, SWT.NONE ); treeCommon.setTree( tree ); treeCommon.setExpressionViewer( targetViewer ); treeCommon.createDefaultExpressionTree( ); treeCommon.addMouseTrackListener( ); treeCommon.addMouseListener( ); treeCommon.addDragSupportToTree( ); treeCommon.addDropSupportToViewer( ); // Add tool tips tree.setToolTipText( "" ); //$NON-NLS-1$ tree.addDisposeListener( new DisposeListener( ) { public void widgetDisposed( DisposeEvent e ) { treeCommon.removeDropSupportToViewer( ); } } ); }
Example 2
Source File: TexlipseProjectFilesWizardPage.java From texlipse with Eclipse Public License 1.0 | 5 votes |
/** * Create a directory tree settings box. * @param parent the parent container */ private void createTreeControl(Composite parent) { dirTree = new Tree(parent, SWT.SINGLE | SWT.BORDER); dirTree.setToolTipText(TexlipsePlugin.getResourceString("projectWizardDirTreeTooltip")); dirTree.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL)); recreateSubTree(); }
Example 3
Source File: NodeStatsTableControl.java From depan with Apache License 2.0 | 5 votes |
@Override protected TreeViewer createTreeViewer(Composite parent) { TreeViewer result = super.createTreeViewer(parent); // Initialize the table. Tree tree = result.getTree(); tree.setHeaderVisible(true); tree.setToolTipText("Node Display Properties"); EditColTableDef.setupTree(TABLE_DEF, tree); result.setLabelProvider(new PartLabelProvider()); result.setColumnProperties(EditColTableDef.getProperties(TABLE_DEF)); return result; }
Example 4
Source File: NodeDisplayTableControl.java From depan with Apache License 2.0 | 5 votes |
@Override protected TreeViewer createTreeViewer(Composite parent) { TreeViewer result = super.createTreeViewer(parent); // Initialize the table. Tree tree = result.getTree(); tree.setHeaderVisible(true); tree.setToolTipText("Node Display Properties"); EditColTableDef.setupTree(TABLE_DEF, tree); // Configure cell editing. CellEditor[] cellEditors = new CellEditor[TABLE_DEF.length]; cellEditors[INDEX_NAME] = null; cellEditors[INDEX_SELECTED] = new CheckboxCellEditor(tree); cellEditors[INDEX_XPOS] = new TextCellEditor(tree); cellEditors[INDEX_YPOS] = new TextCellEditor(tree); cellEditors[INDEX_VISIBLE] = new CheckboxCellEditor(tree); cellEditors[INDEX_SIZE] = new ComboBoxCellEditor( tree, buildSizeOptions()); cellEditors[INDEX_COLOR] = new ColorCellEditor(tree); result.setCellEditors(cellEditors); result.setLabelProvider(new PartLabelProvider()); result.setColumnProperties(EditColTableDef.getProperties(TABLE_DEF)); result.setCellModifier(new PartCellModifier()); return result; }