예제 #1
0
 public RefreshAction(CallHierarchyViewPart part) {
   fPart = part;
   setText(CallHierarchyMessages.RefreshAction_text);
   setToolTipText(CallHierarchyMessages.RefreshAction_tooltip);
   DLTKPluginImages.setLocalImageDescriptors(this, "refresh_nav.gif"); // $NON-NLS-1$
   setActionDefinitionId("org.eclipse.ui.file.refresh"); // $NON-NLS-1$
   //        PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
   // IJavaHelpContextIds.CALL_HIERARCHY_REFRESH_ACTION);
   if (DLTKCore.DEBUG) {
     System.err.println("Add help support here..."); // $NON-NLS-1$
   }
 }
  public ShowQualifiedTypeNamesAction(TypeHierarchyViewPart v, boolean initValue) {
    super(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_label);
    setDescription(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_description);
    setToolTipText(TypeHierarchyMessages.ShowQualifiedTypeNamesAction_tooltip);

    DLTKPluginImages.setLocalImageDescriptors(this, "th_showqualified.gif"); // $NON-NLS-1$

    fView = v;
    setChecked(initValue);

    // PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
    // IJavaHelpContextIds.SHOW_QUALIFIED_NAMES_ACTION);
  }
예제 #3
0
    public LexicalSortingAction() {
      super();
      // PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
      // IJavaHelpContextIds.LEXICAL_SORTING_OUTLINE_ACTION);
      setText(DLTKEditorMessages.ScriptOutlinePage_Sort_label);
      DLTKPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); // $NON-NLS-1$
      setToolTipText(DLTKEditorMessages.ScriptOutlinePage_Sort_tooltip);
      setDescription(DLTKEditorMessages.ScriptOutlinePage_Sort_description);

      boolean checked =
          DLTKUIPlugin.getDefault()
              .getPreferenceStore()
              .getBoolean("LexicalSortingAction.isChecked"); // fStore
      valueChanged(checked, false);
    }