congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.eclipse.jdt.internal.ui.actions
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.jdt.internal.ui.actions

Best Java code snippets using org.eclipse.jdt.internal.ui.actions (Showing top 20 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

private SearchPatternData tryIfPropertyFileSelected(IFile file) {
  IType accessorType= getAccessorType(file);
  return (accessorType != null) ? new SearchPatternData(accessorType, file) : null;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  protected void fillMenu(IMenuManager menu) {
    SurroundWithTryCatchAction surroundWithTryCatch= SurroundWithActionGroup.createSurroundWithTryCatchAction(editor);
    SurroundWithTryMultiCatchAction surroundWithTryMultiCatch= SurroundWithActionGroup.createSurroundWithTryMultiCatchAction(editor);
    SurroundWithTemplateMenuAction.fillMenu(menu, editor, surroundWithTryCatch, surroundWithTryMultiCatch);
  }
}.createMenu();
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public FilterUncategorizedMembersAction() {
  setText(ActionMessages.CategoryFilterActionGroup_ShowUncategorizedMembers);
  setChecked(!fFilterUncategorizedMembers);
  setId(FILTER_CATEGORY_ACTION_ID);
}
origin: org.eclipse/org.eclipse.jdt.ui

public AllCleanUpsAction(IWorkbenchSite site) {
  super(site);
  setToolTipText(ActionMessages.CleanUpAction_tooltip);
  setDescription(ActionMessages.CleanUpAction_description);
  installPreferenceListener();
  updateActionLabel();
  // PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ORGANIZE_IMPORTS_ACTION);
}
origin: org.eclipse/org.eclipse.jdt.ui

private void updateActionLabel() {
  if (showWizard()) {
    setText(ActionMessages.CleanUpAction_labelWizard);
  } else {
    setText(ActionMessages.CleanUpAction_label);
  }
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

public static boolean canOperateOn(JavaEditor editor) {
  if (editor == null)
    return false;
  return getInput(editor) != null;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Perform a code resolve at the current selection of an editor
 * 
 * @param editor the editor
 * @return the resolved elements (only from primary working copies)
 * @throws JavaModelException when the type root can not be accessed
 */
public static IJavaElement[] codeResolve(JavaEditor editor) throws JavaModelException {
  return codeResolve(editor, true);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private IJavaElement elementAtOffset() {
  try {
    return SelectionConverter.getElementAtOffset(fEditor);
  } catch(JavaModelException e) {
  }
  return null;
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Returns the formatted resource string associated with the given key in the resource bundle. 
 * <code>MessageFormat</code> is used to format the message. If there isn't  any value 
 * under the given key, the key is returned.
 *
 * @param key the resource key
 * @param arg the message argument
 * @return the string
 */	
public static String getFormattedString(String key, Object arg) {
  return getFormattedString(key, new Object[] { arg });
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

public GenerateConstructorUsingFieldsValidator(GenerateConstructorUsingFieldsSelectionDialog dialog, ITypeBinding type, int entries) {
  fEntries= entries;
  fDialog= dialog;
  fType= type;
  fSignatures= getExistingConstructorSignatures();
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Creates a new action group with a given set of actions.
 * 
 * @param actions            the actions for this multi group
 * @param currentSelection    decides which action is selected in the menu on start up.
 *                             Denotes the location in the actions array of the current
 *                             selected state. It cannot be null.
 */
public MultiActionGroup(IAction[] actions, int currentSelection) {
  super();
  setActions(actions, currentSelection);
}

origin: org.eclipse/org.eclipse.jdt.ui

private boolean processChildren(IJavaElement[] children, IResultCollector collector) {
  for (int i= 0; i < children.length; i++) {
    if (collectCategories(children[i], collector))
      return true;
  }
  return false;
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public void selectionChanged(IAction action, ISelection selection) {
  super.selectionChanged(action, selection);
  fSelection= selection;
}
origin: org.eclipse/org.eclipse.jdt.ui

private boolean canEnable(Object[] objects) {
  for (int i= 0; i < objects.length; i++) {
    Object element= objects[i];
    if (isValideElement(element))
      return true;
  }
  return false;
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  @Override
  protected void fillMenu(IMenuManager menu) {
    SurroundWithTryCatchAction surroundWithTryCatch= SurroundWithActionGroup.createSurroundWithTryCatchAction(editor);
    SurroundWithTryMultiCatchAction surroundWithTryMultiCatch= SurroundWithActionGroup.createSurroundWithTryMultiCatchAction(editor);
    SurroundWithTemplateMenuAction.fillMenu(menu, editor, surroundWithTryCatch, surroundWithTryMultiCatch);
  }
}.createMenu();
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private SearchPatternData tryIfPropertyFileSelected(IFile file) {
  IType accessorType= getAccessorType(file);
  return (accessorType != null) ? new SearchPatternData(accessorType, file) : null;
}
origin: org.eclipse/org.eclipse.jdt.ui

public static ICompilationUnit getInputAsCompilationUnit(JavaEditor editor) {
  Object editorInput= SelectionConverter.getInput(editor);
  if (editorInput instanceof ICompilationUnit)
    return (ICompilationUnit)editorInput;
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private IJavaElement getJavaElementFromEditor() throws JavaModelException {
  IJavaElement[] elements= SelectionConverter.codeResolve(fEditor);
  if (elements == null || elements.length != 1)
    return null;
  return elements[0];
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Returns the formatted resource string associated with the given key in the resource bundle.
 * <code>MessageFormat</code> is used to format the message. If there isn't  any value
 * under the given key, the key is returned.
 *
 * @param key the resource key
 * @param arg the message argument
 * @return the string
 */
public static String getFormattedString(String key, Object arg) {
  return getFormattedString(key, new Object[] { arg });
}
origin: org.eclipse/org.eclipse.jdt.ui

public static IClassFile getInputAsClassFile(JavaEditor editor) {
  Object editorInput= SelectionConverter.getInput(editor);
  if (editorInput instanceof IClassFile)
    return (IClassFile)editorInput;
  return null;
}
org.eclipse.jdt.internal.ui.actions

Most used classes

  • SelectionConverter
  • ActionUtil
  • OpenBrowserUtil
  • WorkbenchRunnableAdapter
    An IRunnableWithProgress that adapts an IWorkspaceRunnable so that is can be executed inside an IRun
  • AbstractToggleLinkingAction
    This is an action template for actions that toggle whether it links its selection to the active edit
  • AddTaskAction,
  • AllCleanUpsAction,
  • BlockCommentAction$Edit$EditFactory,
  • BlockCommentAction$Edit,
  • BlockCommentAction,
  • CategoryFilterActionGroup$CategoryFilter,
  • CategoryFilterActionGroup$CategoryFilterAction,
  • CategoryFilterActionGroup$CategoryFilterMenuAction,
  • CategoryFilterActionGroup$CategoryFilterSelectionDialog,
  • CategoryFilterActionGroup$FilterUncategorizedMembersAction,
  • CategoryFilterActionGroup$IResultCollector,
  • CategoryFilterActionGroup,
  • CleanUpAction,
  • CompositeActionGroup
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now