Java Code Examples for org.eclipse.jface.action.Action#setDescription()

The following examples show how to use org.eclipse.jface.action.Action#setDescription() . 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: N4JSFilterLocalTypesOutlineContribution.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Hide Local Types");
	action.setDescription("Hide Local Types");
	action.setToolTipText("Hide Local (not exported) types");
	action.setImageDescriptor(imageHelper.getImageDescriptor("localtypes_co.png"));
}
 
Example 2
Source File: N4JSFilterStaticMembersOutlineContribution.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Hide Static Members");
	action.setDescription("Hide Static Members");
	action.setToolTipText("Hide Static Fields and Methods");
	action.setImageDescriptor(imageHelper.getImageDescriptor("static_co.png"));
}
 
Example 3
Source File: N4JSFilterNonPublicMembersOutlineContribution.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Hide Non-Public Members");
	action.setDescription("Hide Non-Public Members");
	action.setToolTipText("Hide Non-Public Fields and Methods");
	action.setImageDescriptor(imageHelper.getImageDescriptor("public_co.png"));
}
 
Example 4
Source File: N4JSShowInheritedMembersOutlineContribution.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Show Inherited Members");
	action.setDescription("Show Inherited Members");
	action.setToolTipText("Show inherited, consumed, and polyfilled members");
	action.setImageDescriptor(imageHelper.getImageDescriptor("inher_co.png"));
}
 
Example 5
Source File: SampleFilterContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Filter Sample");
	action.setToolTipText("Filter Sample");
	action.setDescription("Filter Sample");
	action.setImageDescriptor(workbench.getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_CLEAR));
}
 
Example 6
Source File: FilterTerminalRulesContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.FilterTerminalRulesContribution_title);
	action.setDescription(Messages.FilterTerminalRulesContribution_description);
	action.setToolTipText(Messages.FilterTerminalRulesContribution_tooltip);
	action.setImageDescriptor(Activator.getImageDescriptor("icons/filter_rule.gif"));  
	action.setDisabledImageDescriptor(Activator.getImageDescriptor("icons/filter_rule.gif"));
}
 
Example 7
Source File: HideReturnTypesContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.HideReturnTypesAction_title);
	action.setToolTipText(Messages.HideReturnTypesAction_tooltip);
	action.setDescription(Messages.HideReturnTypesAction_description);
	action.setImageDescriptor(Activator.getImageDescriptor("icons/filter_rule.gif")); 
	action.setDisabledImageDescriptor(Activator.getImageDescriptor("icons/filter_rule.gif"));
}
 
Example 8
Source File: FilterOperationsContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Hide operations");
	action.setDescription("Hide operations");
	action.setToolTipText("Hide operations");
	action.setImageDescriptor(imageHelper.getImageDescriptor("Operation.gif"));
}
 
Example 9
Source File: SortOutlineContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(XtextUIMessages.LexicalSortingAction_label);
	action.setToolTipText(XtextUIMessages.LexicalSortingAction_tooltip);
	action.setDescription(XtextUIMessages.LexicalSortingAction_description);
	action.setImageDescriptor(XtextPluginImages.DESC_ALPHAB_SORT_CO);
	action.setDisabledImageDescriptor(XtextPluginImages.DESC_ALPHAB_SORT_CO_DISABLED);
}
 
Example 10
Source File: LinkWithEditorOutlineContribution.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(XtextUIMessages.ToggleLinkWithEditorAction_label);
	action.setToolTipText(XtextUIMessages.ToggleLinkWithEditorAction_toolTip);
	action.setDescription(XtextUIMessages.ToggleLinkWithEditorAction_description);
	action.setImageDescriptor(XtextPluginImages.DESC_LINK_WITH_EDITOR);
	action.setDisabledImageDescriptor(XtextPluginImages.DESC_LINK_WITH_EDITOR_DISABLED);
}
 
Example 11
Source File: MarkOccurrenceActionContributor.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.MarkOccurrenceActionContributor_text);
	action.setDescription(Messages.MarkOccurrenceActionContributor_description);
	action.setToolTipText(Messages.MarkOccurrenceActionContributor_toolTipText);
	action.setImageDescriptor(XtextPluginImages.DESC_MARK_OCCURRENCES);
	action.setDisabledImageDescriptor(XtextPluginImages.DESC_MARK_OCCURRENCES_DISABLED);
	addPropertyChangeListener();
}
 
Example 12
Source File: SwitchOutlineModeContribution.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Jvm View");
	action.setToolTipText("Jvm Model View");
	action.setDescription("Switch between Source and Jvm model perspectives.");
	action.setImageDescriptor(imageHelper.getImageDescriptor("jvm_mode.gif"));
	action.setDisabledImageDescriptor(imageHelper.getImageDescriptor("jvm_mode.gif"));
}
 
Example 13
Source File: ShowSyntheticMembersContribution.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText("Show Synthetic Members");
	action.setDescription("Show Synthetic Members");
	action.setToolTipText("Show Synthetic Members");
	action.setImageDescriptor(imageHelper.getImageDescriptor("generated_code_view.png"));
}
 
Example 14
Source File: SARLFieldOutlineFilter.java    From sarl with Apache License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.SARLFieldOutlineFilter_0);
	action.setDescription(Messages.SARLFieldOutlineFilter_0);
	action.setToolTipText(Messages.SARLFieldOutlineFilter_0);
	action.setImageDescriptor(this.imageHelper.getImageDescriptor(ICON_BASENAME));
}
 
Example 15
Source File: SARLBehaviorUnitOutlineFilter.java    From sarl with Apache License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.SARLBehaviorUnitOutlineFilter_0);
	action.setDescription(Messages.SARLBehaviorUnitOutlineFilter_0);
	action.setToolTipText(Messages.SARLBehaviorUnitOutlineFilter_0);
	action.setImageDescriptor(this.imageHelper.getImageDescriptor(ICON_BASENAME));
}
 
Example 16
Source File: SARLOperationOutlineFilter.java    From sarl with Apache License 2.0 5 votes vote down vote up
@Override
protected void configureAction(Action action) {
	action.setText(Messages.SARLOperationOutlineFilter_0);
	action.setDescription(Messages.SARLOperationOutlineFilter_0);
	action.setToolTipText(Messages.SARLOperationOutlineFilter_0);
	action.setImageDescriptor(this.imageHelper.getImageDescriptor(ICON_BASENAME));
}