Package org.eclipse.jdt.ui.actions
package org.eclipse.jdt.ui.actions
Application programming interfaces for Eclipse Java User Interface specific
actions.
Package Specification
The package provides actions and action groups to populate tool bars, global menu bars and context menus with JDT specific functionality.It is recommended that clients use action groups to populate menus and tool bars instead of adding actions directly.
Clients are allowed to instantiate classes from this package. The classes are
not intended to be subclassed. All actions and groups require that the selection
provided by the site, view part or page passed to the action's or group's constructor
is of type org.eclipse.jface.viewers.IStructuredSelection
.
-
ClassDescriptionAbstract base classed used for the open wizard actions.Creates delegate methods for a type's fields.Creates getter and setter methods for a type's fields.Create Javadoc comment stubs for the selected members.Action to add a JAR to the classpath of its parent project.Creates unimplemented constructors for a type.Contributes all build related actions to the context menu and installs handlers for the corresponding global menu actions.Action group that adds copy, cut, paste, and delete actions to a view part's context menu and installs handlers for the corresponding global menu actions.Action to generalize the type of a local or field declaration or the return type of a method declaration.Action to convert an anonymous inner class to a nested class.A converting selection provider is a special selection provider which converts a selection before notifying any listeners.Action to convert a local variable to a field.Action to convert a nested class to a top level class.Action group to add the filter action to a view part's tool bar menu.Action group that adds the search for declarations actions to a context menu and the global menu bar.Externalizes the strings of a compilation unit or find all strings in a package or project that are not externalized yet.Extracts selected fields into a new class and replaces the fields with a new field to the new classExtracts an expression into a constant field and replaces all occurrences of the expression with the new constant.Extract a new interface from a class and tries to use the interface instead of the concrete class where possible.Extracts the code selected inside a compilation unit editor into a new method.Extracts an expression into a new local variable and replaces all occurrences of the expression with the local variable.Abstract class for Java search actions.Action to find all break/continue targets for a given break or continue statement.Finds declarations of the selected element in the workspace.Finds declarations of the selected element in its hierarchy.Finds declarations of the selected element in the enclosing project of the selected element.Finds declarations of the selected element in working sets.Action to find all originators of a exception (e.g. method invocations, class casts, ...) for a given exception.Action to find all implement occurrences of an extended class or an implemented interface.Finds implementors of the selected element in the workspace.Finds implementors of the selected element in the enclosing project.Finds implementors of the selected element in working sets.Action to find all method exits for a given method.Action to find all occurrences of a compilation unit member (e.g.Finds field read accesses of the selected element in the workspace.Finds field read accesses of the selected element in its hierarchy.Finds field read accesses of the selected element in the enclosing project.Finds field read accesses of the selected element in working sets.Finds references of the selected element in the workspace.Finds references of the selected element in its hierarchy.Finds references to the selected element in the enclosing project of the selected element.Finds references of the selected element in working sets.Deprecated.Finds field write accesses of the selected element in the workspace.Finds field write accesses of the selected element in its hierarchy.Finds field write accesses of the selected element in the enclosing project.Finds field write accesses of the selected element in working sets.Formats the code of the compilation units contained in the selection.Action group that adds the source and generate actions to a part's context menu and installs handlers for the corresponding global menu actions.Adds method implementations for
andObject.equals(java.lang.Object)
.Object.hashCode()
Creates constructors for a type based on existing fields.Adds method implementations for
The action opens a dialog from which the user can choose the fields and methods to be considered.Object.toString()
Defines the definition IDs for the Java editor actions.Action group that adds the search for implementors actions to a context menu and the global menu bar.Action group to add the Import and Export action to a view part's context menu.Infers type arguments for raw references to generic types.Inlines a method, local variable or a static final field.Inlines the value of a local variable at all places where a read reference is used.Action that encapsulates the a constructor call with a factory method.Action that introduces an indirection for a certain method.Introduces a new method parameter from a selected expression.Action group that adds the Java search actions to a context menu and the global menu bar.Action ids for standard actions, for groups in the menu bar, and for actions in context menus of JDT views.Extracts an expression into a constant field and replaces all occurrences of the expression with the new constant.Action Group that contributes filter buttons for a view parts showing methods and fields.Action to start the modify parameters refactoring.This action moves Java elements to a new location.Action group that adds the open and show actions to a context menu and the action bar's navigate menu.Action group that adds the occurrences in file actions to a context menu and the global menu bar.This action opens a Java editor on a Java element or file.This action opens the selected element's Javadoc in a browser as defined by the preferences.Action group that adds the actions opening a new editor to the context menu and the action bar's navigate menu.Deprecated.As of 3.6, replaced byOpenAttachedJavadocAction
The action allows to open the implementation for a method or a type in its hierarchy.Action to programmatically open a Java perspective.Action to programmatically open a Java perspective.Action that opens the new annotation wizard.The action initialized the wizard with either the selection as configured byAbstractOpenWizardAction.setSelection(IStructuredSelection)
or takes a preconfigured new annotation wizard page, seeOpenNewAnnotationWizardAction.setConfiguredWizardPage(NewAnnotationWizardPage)
.Action that opens the new class wizard.Action that opens the new enum wizard.Action that opens the new interface wizard.Action that opens the new Java project wizard.Action that opens the new package wizard.Action that opens the new enum wizard.Action that opens the new source folder wizard.Action to open a closed project.The action opens a Java editor on the selected method's super implementation.This action opens a type hierarchy on the selected type.Action group that adds actions to open a new JDT view part or an external viewer to a context menu and the global menu bar.Organizes the imports of a compilation unit.Adds unimplemented methods of a type.Adds actions to open and close a project to the global menu bar.Action to pull up method and fields into a superclass.Action to push down methods and fields into subclasses.Action group that adds the search for read references actions to a context menu and the global menu bar.Action group that adds refactor actions (for example 'Rename', 'Move') to a context menu and the global menu bar.Action group that adds the search for references actions to a context menu and the global menu bar.Action for refreshing the workspace from the local file system for the selected resources and all of their descendants.Action to remove package fragment roots from the classpath of its parent project.Renames a Java element or workbench resource.Action that replaces method invocations.Action that dispatches theIAction#run()
and theISelectionChangedListener#selectionChanged
according to the type of the selection.Action to run the self encapsulate field refactoring.Deprecated.As of 3.5, got replaced by generic Navigate > Show In >Deprecated.As of 3.5, got replaced by generic Navigate > Show In >Sorts the members of a compilation unit with the sort order as specified in the Sort Order preference page.Action to surround a set of statements with a try/catch block.Action to surround a set of statements with a try/multi-catch block.Action to surround a set of statements with a try-with-resources/catch block.Tries to use a super type of a class where possible.Wraps aJavaElementSearchActions
to find its results in the specified working set.Action group that adds the search for write references actions to a context menu and the global menu bar.
ExternalizeStringsAction
instead