Package SpecificationThe 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
Interface Summary Interface Description IJavaEditorActionDefinitionIdsDefines the definition IDs for the Java editor actions.
Class Summary Class Description AbstractOpenWizardActionAbstract base classed used for the open wizard actions. AddDelegateMethodsActionCreates delegate methods for a type's fields. AddGetterSetterActionCreates getter and setter methods for a type's fields. AddJavaDocStubActionCreate Javadoc comment stubs for the selected members. AddToClasspathActionAction to add a JAR to the classpath of its parent project. AddUnimplementedConstructorsActionCreates unimplemented constructors for a type. BuildActionGroupContributes all build related actions to the context menu and installs handlers for the corresponding global menu actions. CCPActionGroupAction 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. ChangeTypeActionAction to generalize the type of a local or field declaration or the return type of a method declaration. ConvertAnonymousToNestedActionAction to convert an anonymous inner class to a nested class. ConvertingSelectionProviderA converting selection provider is a special selection provider which converts a selection before notifying any listeners. ConvertLocalToFieldActionAction to convert a local variable to a field. ConvertNestedToTopActionAction to convert a nested class to a top level class. CustomFiltersActionGroupAction group to add the filter action to a view part's tool bar menu. DeclarationsSearchGroupAction group that adds the search for declarations actions to a context menu and the global menu bar. ExternalizeStringsActionExternalizes the strings of a compilation unit or find all strings in a package or project that are not externalized yet. ExtractClassActionExtracts selected fields into a new class and replaces the fields with a new field to the new class ExtractConstantActionExtracts an expression into a constant field and replaces all occurrences of the expression with the new constant. ExtractInterfaceActionExtract a new interface from a class and tries to use the interface instead of the concrete class where possible. ExtractMethodActionExtracts the code selected inside a compilation unit editor into a new method. ExtractTempActionExtracts an expression into a new local variable and replaces all occurrences of the expression with the local variable. FindActionAbstract class for Java search actions. FindBreakContinueTargetOccurrencesActionAction to find all break/continue targets for a given break or continue statement. FindDeclarationsActionFinds declarations of the selected element in the workspace. FindDeclarationsInHierarchyActionFinds declarations of the selected element in its hierarchy. FindDeclarationsInProjectActionFinds declarations of the selected element in the enclosing project of the selected element. FindDeclarationsInWorkingSetActionFinds declarations of the selected element in working sets. FindExceptionOccurrencesActionAction to find all originators of a exception (e.g. method invocations, class casts, ...) for a given exception. FindImplementOccurrencesActionAction to find all implement occurrences of an extended class or an implemented interface. FindImplementorsActionFinds implementors of the selected element in the workspace. FindImplementorsInProjectActionFinds implementors of the selected element in the enclosing project. FindImplementorsInWorkingSetActionFinds implementors of the selected element in working sets. FindMethodExitOccurrencesActionAction to find all method exits for a given method. FindOccurrencesInFileActionAction to find all occurrences of a compilation unit member (e.g. FindReadReferencesActionFinds field read accesses of the selected element in the workspace. FindReadReferencesInHierarchyActionFinds field read accesses of the selected element in its hierarchy. FindReadReferencesInProjectActionFinds field read accesses of the selected element in the enclosing project. FindReadReferencesInWorkingSetActionFinds field read accesses of the selected element in working sets. FindReferencesActionFinds references of the selected element in the workspace. FindReferencesInHierarchyActionFinds references of the selected element in its hierarchy. FindReferencesInProjectActionFinds references to the selected element in the enclosing project of the selected element. FindReferencesInWorkingSetActionFinds references of the selected element in working sets. FindStringsToExternalizeAction Deprecated.use
FindWriteReferencesActionFinds field write accesses of the selected element in the workspace. FindWriteReferencesInHierarchyActionFinds field write accesses of the selected element in its hierarchy. FindWriteReferencesInProjectActionFinds field write accesses of the selected element in the enclosing project. FindWriteReferencesInWorkingSetActionFinds field write accesses of the selected element in working sets. FormatAllActionFormats the code of the compilation units contained in the selection. FormatAllAction.ObjectDelegate GenerateActionGroupAction group that adds the source and generate actions to a part's context menu and installs handlers for the corresponding global menu actions. GenerateHashCodeEqualsAction GenerateNewConstructorUsingFieldsActionCreates constructors for a type based on existing fields. GenerateToStringActionAdds method implementations for
The action opens a dialog from which the user can choose the fields and methods to be considered.
ImplementorsSearchGroupAction group that adds the search for implementors actions to a context menu and the global menu bar. ImportActionGroupAction group to add the Import and Export action to a view part's context menu. InferTypeArgumentsActionInfers type arguments for raw references to generic types. InlineActionInlines a method, local variable or a static final field. InlineTempActionInlines the value of a local variable at all places where a read reference is used. IntroduceFactoryActionAction that encapsulates the a constructor call with a factory method. IntroduceIndirectionActionAction that introduces an indirection for a certain method. IntroduceParameterActionIntroduces a new method parameter from a selected expression. JavaSearchActionGroupAction group that adds the Java search actions to a context menu and the global menu bar. JdtActionConstantsAction ids for standard actions, for groups in the menu bar, and for actions in context menus of JDT views. MemberFilterActionGroupAction Group that contributes filter buttons for a view parts showing methods and fields. ModifyParametersActionAction to start the modify parameters refactoring. MoveActionThis action moves Java elements to a new location. NavigateActionGroupAction group that adds the open and show actions to a context menu and the action bar's navigate menu. OccurrencesSearchGroupAction group that adds the occurrences in file actions to a context menu and the global menu bar. OpenActionThis action opens a Java editor on a Java element or file. OpenAttachedJavadocActionThis action opens the selected element's Javadoc in a browser as defined by the preferences. OpenEditorActionGroupAction 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
OpenImplementationActionThe action allows to open the implementation for a method or a type in its hierarchy. OpenJavaBrowsingPerspectiveActionAction to programmatically open a Java perspective. OpenJavaPerspectiveActionAction to programmatically open a Java perspective. OpenNewAnnotationWizardActionAction 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
OpenNewClassWizardActionAction that opens the new class wizard. OpenNewEnumWizardActionAction that opens the new enum wizard. OpenNewInterfaceWizardActionAction that opens the new interface wizard. OpenNewJavaProjectWizardActionAction that opens the new Java project wizard. OpenNewPackageWizardActionAction that opens the new package wizard. OpenNewSourceFolderWizardActionAction that opens the new source folder wizard. OpenProjectActionAction to open a closed project. OpenSuperImplementationActionThe action opens a Java editor on the selected method's super implementation. OpenTypeHierarchyActionThis action opens a type hierarchy on the selected type. OpenViewActionGroupAction group that adds actions to open a new JDT view part or an external viewer to a context menu and the global menu bar. OrganizeImportsActionOrganizes the imports of a compilation unit. OrganizeImportsAction.ObjectDelegate OverrideMethodsActionAdds unimplemented methods of a type. ProjectActionGroupAdds actions to open and close a project to the global menu bar. PullUpActionAction to pull up method and fields into a superclass. PushDownActionAction to push down methods and fields into subclasses. ReadReferencesSearchGroupAction group that adds the search for read references actions to a context menu and the global menu bar. RefactorActionGroupAction group that adds refactor actions (for example 'Rename', 'Move') to a context menu and the global menu bar. ReferencesSearchGroupAction group that adds the search for references actions to a context menu and the global menu bar. RefreshActionAction for refreshing the workspace from the local file system for the selected resources and all of their descendants. RemoveFromClasspathActionAction to remove package fragment roots from the classpath of its parent project. RenameActionRenames a Java element or workbench resource. ReplaceInvocationsActionAction that replaces method invocations. SelectionDispatchActionAction that dispatches the
ISelectionChangedListener#selectionChangedaccording to the type of the selection.
SelfEncapsulateFieldActionAction 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 > SortMembersActionSorts the members of a compilation unit with the sort order as specified in the Sort Order preference page. SurroundWithTryCatchActionAction to surround a set of statements with a try/catch block. SurroundWithTryMultiCatchActionAction to surround a set of statements with a try/multi-catch block. UseSupertypeActionTries to use a super type of a class where possible. WorkingSetFindActionWraps a
JavaElementSearchActionsto find its results in the specified working set.
WriteReferencesSearchGroupAction group that adds the search for write references actions to a context menu and the global menu bar.