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);
  }
 /** Constructs a new action. */
 @SuppressWarnings("restriction")
 public RefreshAction(GradleTasksView owner) {
   super("Refresh");
   setDescription("Refresh Tasks");
   setToolTipText("Request a rebuild of the gradle model and refresh the list of tasks");
   JavaPluginImages.setLocalImageDescriptors(this, "refresh.gif"); // $NON-NLS-1$
   //		PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
   // IJavaHelpContextIds.LINK_EDITOR_ACTION);
   //		setChecked(owner.isLinkingEnabled());
   this.owner = owner;
   setToolTipText("Refresh task list");
 }
  public ToggleViewAction(IJobHierarchyViewPart v, int viewerIndex) {
    super("", AS_RADIO_BUTTON); // $NON-NLS-1$
    if (viewerIndex == IJobHierarchyViewPart.HIERARCHY_MODE_SUPERTYPES) {
      setText(TypeHierarchyMessages.ToggleViewAction_supertypes_label);
      setDescription(TypeHierarchyMessages.ToggleViewAction_supertypes_description);
      setToolTipText(TypeHierarchyMessages.ToggleViewAction_supertypes_tooltip);
      JavaPluginImages.setLocalImageDescriptors(this, "super_co.gif"); // $NON-NLS-1$
    } else if (viewerIndex == IJobHierarchyViewPart.HIERARCHY_MODE_SUBTYPES) {
      setText(TypeHierarchyMessages.ToggleViewAction_subtypes_label);
      setDescription(TypeHierarchyMessages.ToggleViewAction_subtypes_description);
      setToolTipText(TypeHierarchyMessages.ToggleViewAction_subtypes_tooltip);
      JavaPluginImages.setLocalImageDescriptors(this, "sub_co.gif"); // $NON-NLS-1$
    } else if (viewerIndex == IJobHierarchyViewPart.HIERARCHY_MODE_CLASSIC) {
      setText(TypeHierarchyMessages.ToggleViewAction_vajhierarchy_label);
      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;
  }
    private LexicalSortingAction(TreeViewer outlineViewer) {
      super(
          TextMessages.getString("JavaOutlineInformationControl.LexicalSortingAction.label"),
          IAction.AS_CHECK_BOX); // $NON-NLS-1$
      setToolTipText(
          TextMessages.getString(
              "JavaOutlineInformationControl.LexicalSortingAction.tooltip")); //$NON-NLS-1$
      setDescription(
          TextMessages.getString(
              "JavaOutlineInformationControl.LexicalSortingAction.description")); //$NON-NLS-1$

      JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); // $NON-NLS-1$

      fOutlineViewer = outlineViewer;

      boolean checked = getDialogSettings().getBoolean(STORE_LEXICAL_SORTING_CHECKED);
      setChecked(checked);
      AspectJUIPlugin.getDefault()
          .getWorkbench()
          .getHelpSystem()
          .setHelp(this, IJavaHelpContextIds.LEXICAL_SORTING_BROWSING_ACTION);
    }
    private ShowOnlyMainTypeAction(TreeViewer outlineViewer) {
      super(
          TextMessages.getString("JavaOutlineInformationControl.GoIntoTopLevelType.label"),
          IAction.AS_CHECK_BOX); // $NON-NLS-1$
      setToolTipText(
          TextMessages.getString(
              "JavaOutlineInformationControl.GoIntoTopLevelType.tooltip")); //$NON-NLS-1$
      setDescription(
          TextMessages.getString(
              "JavaOutlineInformationControl.GoIntoTopLevelType.description")); //$NON-NLS-1$

      JavaPluginImages.setLocalImageDescriptors(this, "gointo_toplevel_type.gif"); // $NON-NLS-1$

      AspectJUIPlugin.getDefault()
          .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);
    }
    /**
     * Creates the action.
     *
     * @param outlineViewer the outline viewer
     */
    private SortByDefiningTypeAction(TreeViewer outlineViewer) {
      super(
          TextMessages.getString(
              "JavaOutlineInformationControl.SortByDefiningTypeAction.label")); //$NON-NLS-1$
      setDescription(
          TextMessages.getString(
              "JavaOutlineInformationControl.SortByDefiningTypeAction.description")); //$NON-NLS-1$
      setToolTipText(
          TextMessages.getString(
              "JavaOutlineInformationControl.SortByDefiningTypeAction.tooltip")); //$NON-NLS-1$

      JavaPluginImages.setLocalImageDescriptors(this, "definingtype_sort_co.gif"); // $NON-NLS-1$

      fOutlineViewer = outlineViewer;

      AspectJUIPlugin.getDefault()
          .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);
    }
 public OpenDeclarationAction(BrowserInformationControl infoControl) {
   fInfoControl = infoControl;
   setText("Open Declaration");
   JavaPluginImages.setLocalImageDescriptors(this, "goto_input.gif"); // $NON-NLS-1$
 }