# 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` .

Interface Summary
IJavaEditorActionDefinitionIds: Defines the definition IDs for the Java editor actions.

Class Summary
AbstractOpenWizardAction: Abstract base classed used for the open wizard actions.
AddDelegateMethodsAction: Creates delegate methods for a type's fields.
AddGetterSetterAction: Creates getter and setter methods for a type's fields.
AddJavaDocStubAction: Create Javadoc comment stubs for the selected members.
AddToClasspathAction: Action to add a JAR to the classpath of its parent project.
AddUnimplementedConstructorsAction: Creates unimplemented constructors for a type.
BuildActionGroup: Contributes all build related actions to the context menu and installs handlers for the corresponding global menu actions.
CCPActionGroup: 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.
ChangeTypeAction: Action to generalize the type of a local or field declaration or the return type of a method declaration.
ConvertAnonymousToNestedAction: Action to convert an anonymous inner class to a nested class.
ConvertingSelectionProvider: A converting selection provider is a special selection provider which converts a selection before notifying any listeners.
ConvertLocalToFieldAction: Action to convert a local variable to a field.
ConvertNestedToTopAction: Action to convert a nested class to a top level class.
CustomFiltersActionGroup: Action group to add the filter action to a view part's tool bar menu.
DeclarationsSearchGroup: Action group that adds the search for declarations actions to a context menu and the global menu bar.
ExternalizeStringsAction: Externalizes the strings of a compilation unit or find all strings in a package or project that are not externalized yet.
ExtractClassAction: Extracts selected fields into a new class and replaces the fields with a new field to the new class
ExtractConstantAction: Extracts an expression into a constant field and replaces all occurrences of the expression with the new constant.
ExtractInterfaceAction: Extract a new interface from a class and tries to use the interface instead of the concrete class where possible.
ExtractMethodAction: Extracts the code selected inside a compilation unit editor into a new method.
ExtractTempAction: Extracts an expression into a new local variable and replaces all occurrences of the expression with the local variable.
FindAction: Abstract class for Java search actions.
FindBreakContinueTargetOccurrencesAction: Action to find all break/continue targets for a given break or continue statement.
FindDeclarationsAction: Finds declarations of the selected element in the workspace.
FindDeclarationsInHierarchyAction: Finds declarations of the selected element in its hierarchy.
FindDeclarationsInProjectAction: Finds declarations of the selected element in the enclosing project of the selected element.
FindDeclarationsInWorkingSetAction: Finds declarations of the selected element in working sets.
FindExceptionOccurrencesAction: Action to find all originators of a exception (e.g. method invocations, class casts, ...) for a given exception.
FindImplementOccurrencesAction: Action to find all implement occurrences of an extended class or an implemented interface.
FindImplementorsAction: Finds implementors of the selected element in the workspace.
FindImplementorsInProjectAction: Finds implementors of the selected element in the enclosing project.
FindImplementorsInWorkingSetAction: Finds implementors of the selected element in working sets.
FindMethodExitOccurrencesAction: Action to find all method exits for a given method.
FindOccurrencesInFileAction: Action to find all occurrences of a compilation unit member (e.g.
FindReadReferencesAction: Finds field read accesses of the selected element in the workspace.
FindReadReferencesInHierarchyAction: Finds field read accesses of the selected element in its hierarchy.
FindReadReferencesInProjectAction: Finds field read accesses of the selected element in the enclosing project.
FindReadReferencesInWorkingSetAction: Finds field read accesses of the selected element in working sets.
FindReferencesAction: Finds references of the selected element in the workspace.
FindReferencesInHierarchyAction: Finds references of the selected element in its hierarchy.
FindReferencesInProjectAction: Finds references to the selected element in the enclosing project of the selected element.
FindReferencesInWorkingSetAction: Finds references of the selected element in working sets.
FindStringsToExternalizeAction: Deprecated. use `ExternalizeStringsAction` instead
FindWriteReferencesAction: Finds field write accesses of the selected element in the workspace.
FindWriteReferencesInHierarchyAction: Finds field write accesses of the selected element in its hierarchy.
FindWriteReferencesInProjectAction: Finds field write accesses of the selected element in the enclosing project.
FindWriteReferencesInWorkingSetAction: Finds field write accesses of the selected element in working sets.
FormatAllAction: Formats the code of the compilation units contained in the selection.
FormatAllAction.ObjectDelegate
GenerateActionGroup: Action group that adds the source and generate actions to a part's context menu and installs handlers for the corresponding global menu actions.
GenerateHashCodeEqualsAction: Adds method implementations for ``Object.equals(java.lang.Object)`` and ``Object.hashCode()``.
GenerateNewConstructorUsingFieldsAction: Creates constructors for a type based on existing fields.
GenerateToStringAction: Adds method implementations for ``Object.toString()`` The action opens a dialog from which the user can choose the fields and methods to be considered.
ImplementorsSearchGroup: Action group that adds the search for implementors actions to a context menu and the global menu bar.
ImportActionGroup: Action group to add the Import and Export action to a view part's context menu.
InferTypeArgumentsAction: Infers type arguments for raw references to generic types.
InlineAction: Inlines a method, local variable or a static final field.
InlineTempAction: Inlines the value of a local variable at all places where a read reference is used.
IntroduceFactoryAction: Action that encapsulates the a constructor call with a factory method.
IntroduceIndirectionAction: Action that introduces an indirection for a certain method.
IntroduceParameterAction: Introduces a new method parameter from a selected expression.
JavaSearchActionGroup: Action group that adds the Java search actions to a context menu and the global menu bar.
JdtActionConstants: Action ids for standard actions, for groups in the menu bar, and for actions in context menus of JDT views.
MemberFilterActionGroup: Action Group that contributes filter buttons for a view parts showing methods and fields.
ModifyParametersAction: Action to start the modify parameters refactoring.
MoveAction: This action moves Java elements to a new location.
NavigateActionGroup: Action group that adds the open and show actions to a context menu and the action bar's navigate menu.
OccurrencesSearchGroup: Action group that adds the occurrences in file actions to a context menu and the global menu bar.
OpenAction: This action opens a Java editor on a Java element or file.
OpenAttachedJavadocAction: This action opens the selected element's Javadoc in a browser as defined by the preferences.
OpenEditorActionGroup: Action group that adds the actions opening a new editor to the context menu and the action bar's navigate menu.
OpenExternalJavadocAction: Deprecated. As of 3.6, replaced by `OpenAttachedJavadocAction`
OpenImplementationAction: The action allows to open the implementation for a method or a type in its hierarchy.
OpenJavaBrowsingPerspectiveAction: Action to programmatically open a Java perspective.
OpenJavaPerspectiveAction: Action to programmatically open a Java perspective.
OpenNewAnnotationWizardAction: Action that opens the new annotation wizard.The action initialized the wizard with either the selection as configured by `AbstractOpenWizardAction.setSelection(IStructuredSelection)` or takes a preconfigured new annotation wizard page, see `OpenNewAnnotationWizardAction.setConfiguredWizardPage(NewAnnotationWizardPage)`.
OpenNewClassWizardAction: Action that opens the new class wizard.
OpenNewEnumWizardAction: Action that opens the new enum wizard.
OpenNewInterfaceWizardAction: Action that opens the new interface wizard.
OpenNewJavaProjectWizardAction: Action that opens the new Java project wizard.
OpenNewPackageWizardAction: Action that opens the new package wizard.
OpenNewSourceFolderWizardAction: Action that opens the new source folder wizard.
OpenProjectAction: Action to open a closed project.
OpenSuperImplementationAction: The action opens a Java editor on the selected method's super implementation.
OpenTypeHierarchyAction: This action opens a type hierarchy on the selected type.
OpenViewActionGroup: 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.
OrganizeImportsAction: Organizes the imports of a compilation unit.
OrganizeImportsAction.ObjectDelegate
OverrideMethodsAction: Adds unimplemented methods of a type.
ProjectActionGroup: Adds actions to open and close a project to the global menu bar.
PullUpAction: Action to pull up method and fields into a superclass.
PushDownAction: Action to push down methods and fields into subclasses.
ReadReferencesSearchGroup: Action group that adds the search for read references actions to a context menu and the global menu bar.
RefactorActionGroup: Action group that adds refactor actions (for example 'Rename', 'Move') to a context menu and the global menu bar.
ReferencesSearchGroup: Action group that adds the search for references actions to a context menu and the global menu bar.
RefreshAction: Action for refreshing the workspace from the local file system for the selected resources and all of their descendants.
RemoveFromClasspathAction: Action to remove package fragment roots from the classpath of its parent project.
RenameAction: Renames a Java element or workbench resource.
ReplaceInvocationsAction: Action that replaces method invocations.
SelectionDispatchAction: Action that dispatches the `IAction#run()` and the `ISelectionChangedListener#selectionChanged` according to the type of the selection.
SelfEncapsulateFieldAction: Action to run the self encapsulate field refactoring.
ShowActionGroup: Deprecated. As of 3.5, got replaced by generic Navigate > Show In >
ShowInNavigatorViewAction: Deprecated. As of 3.5, got replaced by generic Navigate > Show In >
ShowInPackageViewAction: Deprecated. As of 3.5, got replaced by generic Navigate > Show In >
SortMembersAction: Sorts the members of a compilation unit with the sort order as specified in the Sort Order preference page.
SurroundWithTryCatchAction: Action to surround a set of statements with a try/catch block.
SurroundWithTryMultiCatchAction: Action to surround a set of statements with a try/multi-catch block.
UseSupertypeAction: Tries to use a super type of a class where possible.
WorkingSetFindAction: Wraps a `JavaElementSearchActions` to find its results in the specified working set.
WriteReferencesSearchGroup: Action group that adds the search for write references actions to a context menu and the global menu bar.