Java Code Examples for org.eclipse.swt.widgets.Group#setToolTipText()
The following examples show how to use
org.eclipse.swt.widgets.Group#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: CommandDataDialog.java From EasyShell with Eclipse Public License 2.0 | 6 votes |
public Group createGroupCommand(Composite parent) { Font font = parent.getFont(); Group pageGroupCommand = new Group(parent, SWT.SHADOW_ETCHED_IN); pageGroupCommand.setText(Activator.getResourceString("easyshell.command.editor.dialog.title.group1")); pageGroupCommand.setToolTipText(Activator.getResourceString("easyshell.command.editor.dialog.tooltip.group1")); GridLayout layoutCommand = new GridLayout(); layoutCommand.numColumns = 3; layoutCommand.makeColumnsEqualWidth = false; layoutCommand.marginWidth = 5; layoutCommand.marginHeight = 4; pageGroupCommand.setLayout(layoutCommand); GridData dataCommand = new GridData(GridData.FILL_HORIZONTAL); pageGroupCommand.setLayoutData(dataCommand); pageGroupCommand.setFont(font); return pageGroupCommand; }
Example 2
Source File: CommandDataDialog.java From EasyShell with Eclipse Public License 2.0 | 6 votes |
private void createVariablesOverview(Composite parent) { Font font = parent.getFont(); Group pageGroup2 = new Group(parent, SWT.SHADOW_ETCHED_IN); pageGroup2.setText(Activator.getResourceString("easyshell.command.editor.dialog.title.group2")); pageGroup2.setToolTipText(Activator.getResourceString("easyshell.command.editor.dialog.tooltip.group2")); GridLayout layout2 = new GridLayout(); layout2.numColumns = 2; layout2.makeColumnsEqualWidth = false; layout2.marginWidth = 5; layout2.marginHeight = 4; pageGroup2.setLayout(layout2); GridData data2 = new GridData(GridData.FILL_HORIZONTAL); pageGroup2.setLayoutData(data2); pageGroup2.setFont(font); // create variable labels for(int i=Variable.getFirstIndex();i<Variable.values().length;i++) { Variable var = Variable.values()[i]; if (var.isVisible()) { createVariableLabel(pageGroup2, var.getFullVariableName(), ": " + var.getDescription()); } } }
Example 3
Source File: CommandDataDialog.java From EasyShell with Eclipse Public License 2.0 | 6 votes |
private void createConvertersOverview(Composite parent) { Font font = parent.getFont(); Group pageGroup3 = new Group(parent, SWT.SHADOW_ETCHED_IN); pageGroup3.setText(Activator.getResourceString("easyshell.command.editor.dialog.title.group3")); pageGroup3.setToolTipText(Activator.getResourceString("easyshell.command.editor.dialog.tooltip.group3")); GridLayout layout3 = new GridLayout(); layout3.numColumns = 2; layout3.makeColumnsEqualWidth = false; layout3.marginWidth = 5; layout3.marginHeight = 4; pageGroup3.setLayout(layout3); GridData data3 = new GridData(GridData.FILL_HORIZONTAL); pageGroup3.setLayoutData(data3); pageGroup3.setFont(font); // create converters labels for(int i=Converter.getFirstIndex();i<Converter.values().length;i++) { Converter conv = Converter.values()[i]; if (conv.isVisible()) { createVariableLabel(pageGroup3, conv.getName(), ": " + conv.getDescription()); } } }
Example 4
Source File: MenuDataDialog.java From EasyShell with Eclipse Public License 2.0 | 6 votes |
public Group createGroupCommand(Composite parent) { Font font = parent.getFont(); Group pageGroupCommand = new Group(parent, SWT.SHADOW_ETCHED_IN); pageGroupCommand.setText(Activator.getResourceString("easyshell.menu.editor.dialog.title.group.command")); pageGroupCommand.setToolTipText(Activator.getResourceString("easyshell.menu.editor.dialog.title.group.tooltip.command")); GridLayout layoutCommand = new GridLayout(); layoutCommand.numColumns = 3; layoutCommand.makeColumnsEqualWidth = false; layoutCommand.marginWidth = 5; layoutCommand.marginHeight = 4; pageGroupCommand.setLayout(layoutCommand); GridData gridDataCommand = new GridData(GridData.FILL_HORIZONTAL); pageGroupCommand.setLayoutData(gridDataCommand); pageGroupCommand.setFont(font); return pageGroupCommand; }
Example 5
Source File: MenuDataDialog.java From EasyShell with Eclipse Public License 2.0 | 6 votes |
public Group createGroupMenu(Composite parent) { Font font = parent.getFont(); Group pageGroupMenu = new Group(parent, SWT.SHADOW_ETCHED_IN); pageGroupMenu.setText(Activator.getResourceString("easyshell.menu.editor.dialog.title.group.menu")); pageGroupMenu.setToolTipText(Activator.getResourceString("easyshell.menu.editor.dialog.title.group.tooltip.menu")); GridLayout layoutMenu = new GridLayout(); layoutMenu.numColumns = 3; layoutMenu.makeColumnsEqualWidth = false; layoutMenu.marginWidth = 5; layoutMenu.marginHeight = 4; pageGroupMenu.setLayout(layoutMenu); GridData gridDataMenu = new GridData(GridData.FILL_HORIZONTAL); pageGroupMenu.setLayoutData(gridDataMenu); pageGroupMenu.setFont(font); return pageGroupMenu; }
Example 6
Source File: GroupTemplateVariable.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void createWidget(ParameterComposite parameterComposite, Composite parent) { group = new Group(parent, SWT.READ_ONLY); group.setLayout(new GridLayout(2, false)); group.setText(getLabel()); group.setToolTipText(getDescription()); }
Example 7
Source File: MainPage.java From EasyShell with Eclipse Public License 2.0 | 5 votes |
private Group createGroup1(Composite pageComponent) { Group pageGroup = new Group(pageComponent, SWT.SHADOW_ETCHED_IN); pageGroup.setText(Activator.getResourceString("easyshell.main.page.title.group1")); pageGroup.setToolTipText(Activator.getResourceString("easyshell.main.page.tooltip.group1")); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.makeColumnsEqualWidth = false; layout.marginWidth = 5; layout.marginHeight = 4; pageGroup.setLayout(layout); GridData data = new GridData(GridData.FILL_HORIZONTAL); pageGroup.setLayoutData(data); pageGroup.setFont(pageComponent.getFont()); return pageGroup; }
Example 8
Source File: SWTAtdl4jInputAndFilterDataPanel.java From atdl4j with MIT License | 5 votes |
protected Composite buildSelectStrategyPanel( Composite aParent ) { Group tempSelectStrategyGroup = new Group( aParent, SWT.NONE ); tempSelectStrategyGroup.setText( "Select Strategy" ); GridLayout tempSelectStrategyGroupLayout = new GridLayout( 1, true ); tempSelectStrategyGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); tempSelectStrategyGroup.setLayout(tempSelectStrategyGroupLayout); Composite tempSelectStrategyNameComposite = new Composite( tempSelectStrategyGroup, SWT.NONE ); tempSelectStrategyNameComposite.setLayout( new RowLayout( SWT.HORIZONTAL ) ); Label tempLabelSelectStrategyName = new Label( tempSelectStrategyNameComposite, SWT.NONE ); tempLabelSelectStrategyName.setText( "Pre-select Strategy:" ); textSelectStrategyName = new Text( tempSelectStrategyNameComposite, SWT.BORDER ); Group tempStrategyNameFilterGroup = new Group( tempSelectStrategyGroup, SWT.NONE ); tempStrategyNameFilterGroup.setText( "Strategy Name Sequence (Filter)" ); tempStrategyNameFilterGroup.setToolTipText( "When specified, controls the order of Strategy Name list presented to the user." ); GridLayout tempStrategyNameFilterGroupLayout = new GridLayout( 1, true ); tempStrategyNameFilterGroup.setLayout( tempStrategyNameFilterGroupLayout ); tempStrategyNameFilterGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); textAreaStrategyNameFilterList = new Text( tempStrategyNameFilterGroup, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL ); textAreaStrategyNameFilterList.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); textAreaStrategyNameFilterList.setToolTipText( "When specified, controls the order of Strategy Name list presented to the user." ); checkboxInputStrategyListAsFilter = new Button( tempStrategyNameFilterGroup, SWT.CHECK ); checkboxInputStrategyListAsFilter.setText( "Apply List as Filter" ); checkboxInputStrategyListAsFilter.setToolTipText( "When checked only the strategy names specified will be shown (any others will be excluded.)" ); return tempSelectStrategyGroup; }
Example 9
Source File: ViewerConfigDialog.java From texlipse with Eclipse Public License 1.0 | 4 votes |
public DDEGroup(Composite parent, String name, String toolTip) { super(parent, SWT.NONE); setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ((GridData)getLayoutData()).horizontalSpan = 2; setLayout( new GridLayout()); Group group = new Group(this, SWT.SHADOW_IN); group.setText(name); group.setToolTipText(toolTip); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); group.setLayout(new GridLayout(4, false)); Label ddeCommandLabel = new Label(group, SWT.LEFT); ddeCommandLabel.setText(TexlipsePlugin.getResourceString("preferenceViewerDDECommandLabel")); ddeCommandLabel.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDECommandTooltip")); ddeCommandLabel.setLayoutData(new GridData()); command = new Text(group, SWT.SINGLE | SWT.BORDER); command.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDECommandTooltip")); command.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ((GridData) command.getLayoutData()).horizontalSpan = 3; Label ddeServerLabel = new Label(group, SWT.LEFT); ddeServerLabel.setText(TexlipsePlugin.getResourceString("preferenceViewerDDEServerLabel")); ddeServerLabel.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDEServerTooltip")); ddeServerLabel.setLayoutData(new GridData()); server = new Text(group, SWT.SINGLE | SWT.BORDER); server.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDEServerTooltip")); server.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label ddeTopicLabel = new Label(group, SWT.LEFT); ddeTopicLabel.setText(TexlipsePlugin.getResourceString("preferenceViewerDDETopicLabel")); ddeTopicLabel.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDETopicTooltip")); ddeTopicLabel.setLayoutData(new GridData()); topic = new Text(group, SWT.SINGLE | SWT.BORDER); topic.setToolTipText(TexlipsePlugin.getResourceString("preferenceViewerDDETopicTooltip")); topic.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); setVisible(false); }