Java Code Examples for org.eclipse.jdt.internal.ui.JavaPluginImages#setLocalImageDescriptors()
The following examples show how to use
org.eclipse.jdt.internal.ui.JavaPluginImages#setLocalImageDescriptors() .
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: JavaOutlineInformationControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
/** * Creates the action. * * @param outlineViewer the outline viewer */ private SortByDefiningTypeAction(TreeViewer outlineViewer) { super(TextMessages.JavaOutlineInformationControl_SortByDefiningTypeAction_label); setDescription(TextMessages.JavaOutlineInformationControl_SortByDefiningTypeAction_description); setToolTipText(TextMessages.JavaOutlineInformationControl_SortByDefiningTypeAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "definingtype_sort_co.gif"); //$NON-NLS-1$ fOutlineViewer= outlineViewer; PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SORT_BY_DEFINING_TYPE_ACTION); boolean state= getDialogSettings().getBoolean(STORE_SORT_BY_DEFINING_TYPE_CHECKED); setChecked(state); fInnerLabelProvider.setShowDefiningType(state); }
Example 2
Source File: ToggleCallModeAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
public ToggleCallModeAction(CallHierarchyViewPart v, int mode) { super("", AS_RADIO_BUTTON); //$NON-NLS-1$ if (mode == CallHierarchyViewPart.CALL_MODE_CALLERS) { setText(CallHierarchyMessages.ToggleCallModeAction_callers_label); setDescription(CallHierarchyMessages.ToggleCallModeAction_callers_description); setToolTipText(CallHierarchyMessages.ToggleCallModeAction_callers_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "ch_callers.gif"); //$NON-NLS-1$ } else if (mode == CallHierarchyViewPart.CALL_MODE_CALLEES) { setText(CallHierarchyMessages.ToggleCallModeAction_callees_label); setDescription(CallHierarchyMessages.ToggleCallModeAction_callees_description); setToolTipText(CallHierarchyMessages.ToggleCallModeAction_callees_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "ch_callees.gif"); //$NON-NLS-1$ } else { Assert.isTrue(false); } fView= v; fMode= mode; PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_TOGGLE_CALL_MODE_ACTION); }
Example 3
Source File: HistoryDropDownAction.java From lapse-plus with GNU General Public License v3.0 | 5 votes |
public HistoryDropDownAction(LapseView view) { fView = view; fMenu= null; //setToolTipText(TypeHierarchyMessages.getString("HistoryDropDownAction.tooltip")); //$NON-NLS-1$ JavaPluginImages.setLocalImageDescriptors(this, "history_list.gif"); //$NON-NLS-1$ setMenuCreator(this); }
Example 4
Source File: AbstractToggleLinkingAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Constructs a new action. */ public AbstractToggleLinkingAction() { super(ActionMessages.ToggleLinkingAction_label); setDescription(ActionMessages.ToggleLinkingAction_description); setToolTipText(ActionMessages.ToggleLinkingAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "synced.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LINK_EDITOR_ACTION); setChecked(false); }
Example 5
Source File: ShowQualifiedTypeNamesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public ShowQualifiedTypeNamesAction(ITypeHierarchyViewPart v, boolean initValue) { super(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_label); setDescription(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_description); setToolTipText(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "th_showqualified.gif"); //$NON-NLS-1$ fView= v; setChecked(initValue); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SHOW_QUALIFIED_NAMES_ACTION); }
Example 6
Source File: JavaOutlinePage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public LexicalSortingAction() { super(); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LEXICAL_SORTING_OUTLINE_ACTION); setText(JavaEditorMessages.JavaOutlinePage_Sort_label); JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); //$NON-NLS-1$ setToolTipText(JavaEditorMessages.JavaOutlinePage_Sort_tooltip); setDescription(JavaEditorMessages.JavaOutlinePage_Sort_description); boolean checked= JavaPlugin.getDefault().getPreferenceStore().getBoolean("LexicalSortingAction.isChecked"); //$NON-NLS-1$ valueChanged(checked, false); }
Example 7
Source File: HistoryDropDownAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public HistoryDropDownAction(CallHierarchyViewPart view) { fView = view; fMenu = null; setToolTipText(CallHierarchyMessages.HistoryDropDownAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "history_list.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_HISTORY_DROP_DOWN_ACTION); setMenuCreator(this); }
Example 8
Source File: HistoryDropDownAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public HistoryDropDownAction(TypeHierarchyViewPart view) { fHierarchyView= view; fMenu= null; setToolTipText(TypeHierarchyMessages.HistoryDropDownAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "history_list.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.TYPEHIERARCHY_HISTORY_ACTION); setMenuCreator(this); }
Example 9
Source File: PinCallHierarchyViewAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Constructs a 'Pin Call Hierarchy view' action. * * @param view the Call Hierarchy view */ public PinCallHierarchyViewAction(CallHierarchyViewPart view) { super(CallHierarchyMessages.PinCallHierarchyViewAction_label, IAction.AS_CHECK_BOX); setToolTipText(CallHierarchyMessages.PinCallHierarchyViewAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "pin_view.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_PIN_VIEW_ACTION); fView= view; }
Example 10
Source File: JavaOutlineInformationControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private ShowOnlyMainTypeAction(TreeViewer outlineViewer) { super(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_label, IAction.AS_CHECK_BOX); setToolTipText(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_tooltip); setDescription(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_description); JavaPluginImages.setLocalImageDescriptors(this, "gointo_toplevel_type.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.GO_INTO_TOP_LEVEL_TYPE_ACTION); fOutlineViewer= outlineViewer; boolean showclass= getDialogSettings().getBoolean(STORE_GO_INTO_TOP_LEVEL_TYPE_CHECKED); setTopLevelTypeOnly(showclass); }
Example 11
Source File: CancelSearchAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public CancelSearchAction(CallHierarchyViewPart view) { super(CallHierarchyMessages.CancelSearchAction_label); fView= view; setToolTipText(CallHierarchyMessages.CancelSearchAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "ch_cancel.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_CANCEL_SEARCH_ACTION); }
Example 12
Source File: RefreshViewAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public RefreshViewAction(CallHierarchyViewPart part) { fPart= part; setText(CallHierarchyMessages.RefreshViewAction_text); setToolTipText(CallHierarchyMessages.RefreshViewAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "refresh.gif");//$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_REFRESH_VIEW_ACTION); setEnabled(false); }
Example 13
Source File: ToggleViewAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public ToggleViewAction(ITypeHierarchyViewPart v, int viewerIndex) { super("", AS_RADIO_BUTTON); //$NON-NLS-1$ String contextHelpId= null; if (viewerIndex == ITypeHierarchyViewPart.HIERARCHY_MODE_SUPERTYPES) { setText(TypeHierarchyMessages.ToggleViewAction_supertypes_label); contextHelpId= IJavaHelpContextIds.SHOW_SUPERTYPES; setDescription(TypeHierarchyMessages.ToggleViewAction_supertypes_description); setToolTipText(TypeHierarchyMessages.ToggleViewAction_supertypes_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "super_co.gif"); //$NON-NLS-1$ } else if (viewerIndex == ITypeHierarchyViewPart.HIERARCHY_MODE_SUBTYPES) { setText(TypeHierarchyMessages.ToggleViewAction_subtypes_label); contextHelpId= IJavaHelpContextIds.SHOW_SUBTYPES; setDescription(TypeHierarchyMessages.ToggleViewAction_subtypes_description); setToolTipText(TypeHierarchyMessages.ToggleViewAction_subtypes_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "sub_co.gif"); //$NON-NLS-1$ } else if (viewerIndex == ITypeHierarchyViewPart.HIERARCHY_MODE_CLASSIC) { setText(TypeHierarchyMessages.ToggleViewAction_vajhierarchy_label); contextHelpId= IJavaHelpContextIds.SHOW_HIERARCHY; setDescription(TypeHierarchyMessages.ToggleViewAction_vajhierarchy_description); setToolTipText(TypeHierarchyMessages.ToggleViewAction_vajhierarchy_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "hierarchy_co.gif"); //$NON-NLS-1$ } else { Assert.isTrue(false); } fViewPart= v; fViewerIndex= viewerIndex; PlatformUI.getWorkbench().getHelpSystem().setHelp(this, contextHelpId); }
Example 14
Source File: LexicalSortingAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public LexicalSortingAction(StructuredViewer viewer, String id, JdtViewerDropSupport dropSupport) { super(); fViewer= viewer; fDropSupport= dropSupport; fPreferenceKey= "LexicalSortingAction." + id + ".isChecked"; //$NON-NLS-1$ //$NON-NLS-2$ setText(JavaBrowsingMessages.LexicalSortingAction_label); JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); //$NON-NLS-1$ setToolTipText(JavaBrowsingMessages.LexicalSortingAction_tooltip); setDescription(JavaBrowsingMessages.LexicalSortingAction_description); boolean checked= JavaPlugin.getDefault().getPreferenceStore().getBoolean(fPreferenceKey); valueChanged(checked, false); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LEXICAL_SORTING_BROWSING_ACTION); }
Example 15
Source File: JavaOutlineInformationControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private LexicalSortingAction(TreeViewer outlineViewer) { super(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_label, IAction.AS_CHECK_BOX); setToolTipText(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_tooltip); setDescription(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_description); JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); //$NON-NLS-1$ fOutlineViewer= outlineViewer; boolean checked=getDialogSettings().getBoolean(STORE_LEXICAL_SORTING_CHECKED); setChecked(checked); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LEXICAL_SORTING_BROWSING_ACTION); }
Example 16
Source File: ShowInheritedMembersAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Creates the action. * @param viewer the viewer * @param initValue the initial state */ public ShowInheritedMembersAction(MethodsViewer viewer, boolean initValue) { super(TypeHierarchyMessages.ShowInheritedMembersAction_label); setDescription(TypeHierarchyMessages.ShowInheritedMembersAction_description); setToolTipText(TypeHierarchyMessages.ShowInheritedMembersAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "inher_co.gif"); //$NON-NLS-1$ fMethodsViewer= viewer; PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SHOW_INHERITED_ACTION); setChecked(initValue); }
Example 17
Source File: OpenEditorAction.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
public OpenEditorAction(DerivedSourceView derivedSourceView) { Assert.isNotNull(derivedSourceView); this.derivedSourceView = derivedSourceView; JavaPluginImages.setLocalImageDescriptors(this, "goto_input.gif"); //$NON-NLS-1$ setText(Messages.OpenEditorAction_Label); setToolTipText(Messages.OpenEditorAction_ToolTip); setDescription(Messages.OpenEditorAction_Description); }
Example 18
Source File: XbaseHoverProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public OpenDeclarationAction(IXtextBrowserInformationControl infoControl) { fInfoControl = infoControl; setText(XtextUIMessages.XtextBrowserInformationControlInput_OpenDeclaration); JavaPluginImages.setLocalImageDescriptors(this, "goto_input.gif"); //$NON-NLS-1$ }
Example 19
Source File: CategoryFilterActionGroup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public CategoryFilterMenuAction() { setDescription(ActionMessages.CategoryFilterActionGroup_ShowCategoriesActionDescription); setToolTipText(ActionMessages.CategoryFilterActionGroup_ShowCategoriesToolTip); setText(ActionMessages.CategoryFilterActionGroup_ShowCategoriesLabel); JavaPluginImages.setLocalImageDescriptors(this, "category_menu.gif"); //$NON-NLS-1$ }
Example 20
Source File: EnableMemberFilterAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 3 votes |
public EnableMemberFilterAction(ITypeHierarchyViewPart v, boolean initValue) { super(TypeHierarchyMessages.EnableMemberFilterAction_label); setDescription(TypeHierarchyMessages.EnableMemberFilterAction_description); setToolTipText(TypeHierarchyMessages.EnableMemberFilterAction_tooltip); JavaPluginImages.setLocalImageDescriptors(this, "impl_co.gif"); //$NON-NLS-1$ fView= v; setChecked(initValue); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ENABLE_METHODFILTER_ACTION); }