public interface IJavaRefactorings
This interface provides refactoring ids for refactorings offered by the JDT
tooling. Refactoring instances corresponding to such an id may be
instantiated by the refactoring framework using
RefactoringCore.getRefactoringContribution(String)
. The resulting
refactoring instance may be executed on the workspace with a
PerformRefactoringOperation
.
Clients may obtain customizable refactoring descriptors for a certain
refactoring by calling
RefactoringCore.getRefactoringContribution(String)
with the
appropriate refactoring id and then calling
RefactoringContribution.createDescriptor()
to obtain a customizable
refactoring descriptor. The concrete subtype of refactoring descriptors is
dependent from the id
argument.
Note: this interface is not intended to be implemented by clients.
Modifier and Type | Field and Description |
---|---|
static String |
CHANGE_METHOD_SIGNATURE
Refactoring id of the 'Change Method Signature' refactoring (value:
org.eclipse.jdt.ui.change.method.signature ). |
static String |
CONVERT_ANONYMOUS
Refactoring id of the 'Convert Anonymous To Nested' refactoring (value:
org.eclipse.jdt.ui.convert.anonymous ). |
static String |
CONVERT_LOCAL_VARIABLE
Refactoring id of the 'Convert Local Variable to Field' refactoring
(value:
org.eclipse.jdt.ui.promote.temp ). |
static String |
CONVERT_MEMBER_TYPE
Refactoring id of the 'Convert Member Type to Top Level' refactoring
(value:
org.eclipse.jdt.ui.move.inner ). |
static String |
COPY
Refactoring id of the 'Copy' refactoring (value:
org.eclipse.jdt.ui.copy ). |
static String |
DELETE
Refactoring id of the 'Delete' refactoring (value:
org.eclipse.jdt.ui.delete ). |
static String |
ENCAPSULATE_FIELD
Refactoring id of the 'Encapsulate Field' refactoring (value:
org.eclipse.jdt.ui.self.encapsulate ). |
static String |
EXTRACT_CLASS
Refactoring id of the 'Extract Class' refactoring (value:
"org.eclipse.jdt.ui.extract.class ). |
static String |
EXTRACT_CONSTANT
Refactoring id of the 'Extract Constant' refactoring (value:
org.eclipse.jdt.ui.extract.constant ). |
static String |
EXTRACT_INTERFACE
Refactoring id of the 'Extract Interface' refactoring (value:
org.eclipse.jdt.ui.extract.interface ). |
static String |
EXTRACT_LOCAL_VARIABLE
Refactoring id of the 'Extract Local Variable' refactoring (value:
org.eclipse.jdt.ui.extract.temp ). |
static String |
EXTRACT_METHOD
Refactoring id of the 'Extract Method' refactoring (value:
org.eclipse.jdt.ui.extract.method ). |
static String |
EXTRACT_SUPERCLASS
Refactoring id of the 'Extract Superclass' refactoring (value:
org.eclipse.jdt.ui.extract.superclass ). |
static String |
GENERALIZE_TYPE
Refactoring id of the 'Generalize Declared Type' refactoring (value:
org.eclipse.jdt.ui.change.type ). |
static String |
INFER_TYPE_ARGUMENTS
Refactoring id of the 'Infer Type Arguments' refactoring (value:
org.eclipse.jdt.ui.infer.typearguments ). |
static String |
INLINE_CONSTANT
Refactoring id of the 'Inline Constant' refactoring (value:
org.eclipse.jdt.ui.inline.constant ). |
static String |
INLINE_LOCAL_VARIABLE
Refactoring id of the 'Inline Local Variable' refactoring (value:
org.eclipse.jdt.ui.inline.temp ). |
static String |
INLINE_METHOD
Refactoring id of the 'Inline Method' refactoring (value:
org.eclipse.jdt.ui.inline.method ). |
static String |
INTRODUCE_FACTORY
Refactoring id of the 'Introduce Factory' refactoring (value:
org.eclipse.jdt.ui.introduce.factory ). |
static String |
INTRODUCE_INDIRECTION
Refactoring id of the 'Introduce Indirection' refactoring (value:
org.eclipse.jdt.ui.introduce.indirection ). |
static String |
INTRODUCE_PARAMETER
Refactoring id of the 'Introduce Parameter' refactoring (value:
org.eclipse.jdt.ui.introduce.parameter ). |
static String |
INTRODUCE_PARAMETER_OBJECT
Refactoring id of the 'Introduce Parameter Object' refactoring (value:
org.eclipse.jdt.ui.introduce.parameter.object ). |
static String |
MOVE
Refactoring id of the 'Move' refactoring (value:
org.eclipse.jdt.ui.move ). |
static String |
MOVE_METHOD
Refactoring id of the 'Move Method' refactoring (value:
org.eclipse.jdt.ui.move.method ). |
static String |
MOVE_STATIC_MEMBERS
Refactoring id of the 'Move Static Members' refactoring (value:
org.eclipse.jdt.ui.move.static ). |
static String |
PULL_UP
Refactoring id of the 'Pull Up' refactoring (value:
org.eclipse.jdt.ui.pull.up ). |
static String |
PUSH_DOWN
Refactoring id of the 'Push Down' refactoring (value:
org.eclipse.jdt.ui.push.down ). |
static String |
RENAME_COMPILATION_UNIT
Refactoring id of the 'Rename Compilation Unit' refactoring (value:
org.eclipse.jdt.ui.rename.compilationunit ). |
static String |
RENAME_ENUM_CONSTANT
Refactoring id of the 'Rename Enum Constant' refactoring (value:
org.eclipse.jdt.ui.rename.enum.constant ). |
static String |
RENAME_FIELD
Refactoring id of the 'Rename Field' refactoring (value:
org.eclipse.jdt.ui.rename.field ). |
static String |
RENAME_JAVA_PROJECT
Refactoring id of the 'Rename Java Project' refactoring (value:
org.eclipse.jdt.ui.rename.java.project ). |
static String |
RENAME_LOCAL_VARIABLE
Refactoring id of the 'Rename Local Variable' refactoring (value:
org.eclipse.jdt.ui.rename.local.variable ). |
static String |
RENAME_METHOD
Refactoring id of the 'Rename Method' refactoring (value:
org.eclipse.jdt.ui.rename.method ). |
static String |
RENAME_PACKAGE
Refactoring id of the 'Rename Package' refactoring (value:
org.eclipse.jdt.ui.rename.package ). |
static String |
RENAME_RESOURCE
Deprecated.
Since 1.2. Use
RenameResourceDescriptor.ID instead. |
static String |
RENAME_SOURCE_FOLDER
Refactoring id of the 'Rename Source Folder' refactoring (value:
org.eclipse.jdt.ui.rename.source.folder ). |
static String |
RENAME_TYPE
Refactoring id of the 'Rename Type' refactoring (value:
org.eclipse.jdt.ui.rename.type ). |
static String |
RENAME_TYPE_PARAMETER
Refactoring id of the 'Rename Type Parameter' refactoring (value:
org.eclipse.jdt.ui.rename.type.parameter ). |
static String |
USE_SUPER_TYPE
Refactoring id of the 'Use Supertype Where Possible' refactoring (value:
org.eclipse.jdt.ui.use.supertype ). |
static final String CHANGE_METHOD_SIGNATURE
org.eclipse.jdt.ui.change.method.signature
).
Clients may safely cast the obtained refactoring descriptor to
ChangeMethodSignatureDescriptor
.
static final String CONVERT_ANONYMOUS
org.eclipse.jdt.ui.convert.anonymous
).
Clients may safely cast the obtained refactoring descriptor to
ConvertAnonymousDescriptor
.
static final String CONVERT_LOCAL_VARIABLE
org.eclipse.jdt.ui.promote.temp
).
Clients may safely cast the obtained refactoring descriptor to
ConvertLocalVariableDescriptor
.
static final String CONVERT_MEMBER_TYPE
org.eclipse.jdt.ui.move.inner
).
Clients may safely cast the obtained refactoring descriptor to
ConvertMemberTypeDescriptor
.
static final String COPY
org.eclipse.jdt.ui.copy
).
Clients may safely cast the obtained refactoring descriptor to
CopyDescriptor
.
static final String DELETE
org.eclipse.jdt.ui.delete
).
Clients may safely cast the obtained refactoring descriptor to
DeleteDescriptor
.
static final String ENCAPSULATE_FIELD
org.eclipse.jdt.ui.self.encapsulate
).
Clients may safely cast the obtained refactoring descriptor to
EncapsulateFieldDescriptor
.
static final String EXTRACT_CLASS
"org.eclipse.jdt.ui.extract.class
).
Clients may safely cast the obtained refactoring descriptor to
ExtractClassDescriptor
.
static final String EXTRACT_CONSTANT
org.eclipse.jdt.ui.extract.constant
).
Clients may safely cast the obtained refactoring descriptor to
ExtractConstantDescriptor
.
static final String EXTRACT_INTERFACE
org.eclipse.jdt.ui.extract.interface
).
Clients may safely cast the obtained refactoring descriptor to
ExtractInterfaceDescriptor
.
static final String EXTRACT_LOCAL_VARIABLE
org.eclipse.jdt.ui.extract.temp
).
Clients may safely cast the obtained refactoring descriptor to
ExtractLocalDescriptor
.
static final String EXTRACT_METHOD
org.eclipse.jdt.ui.extract.method
).
Clients may safely cast the obtained refactoring descriptor to
ExtractMethodDescriptor
.
static final String EXTRACT_SUPERCLASS
org.eclipse.jdt.ui.extract.superclass
).
Clients may safely cast the obtained refactoring descriptor to
ExtractSuperclassDescriptor
.
static final String GENERALIZE_TYPE
org.eclipse.jdt.ui.change.type
).
Clients may safely cast the obtained refactoring descriptor to
GeneralizeTypeDescriptor
.
static final String INFER_TYPE_ARGUMENTS
org.eclipse.jdt.ui.infer.typearguments
).
Clients may safely cast the obtained refactoring descriptor to
InferTypeArgumentsDescriptor
.
static final String INLINE_CONSTANT
org.eclipse.jdt.ui.inline.constant
).
Clients may safely cast the obtained refactoring descriptor to
InlineConstantDescriptor
.
static final String INLINE_LOCAL_VARIABLE
org.eclipse.jdt.ui.inline.temp
).
Clients may safely cast the obtained refactoring descriptor to
InlineLocalVariableDescriptor
.
static final String INLINE_METHOD
org.eclipse.jdt.ui.inline.method
).
Clients may safely cast the obtained refactoring descriptor to
InlineMethodDescriptor
.
static final String INTRODUCE_FACTORY
org.eclipse.jdt.ui.introduce.factory
).
Clients may safely cast the obtained refactoring descriptor to
IntroduceFactoryDescriptor
.
static final String INTRODUCE_INDIRECTION
org.eclipse.jdt.ui.introduce.indirection
).
Clients may safely cast the obtained refactoring descriptor to
IntroduceIndirectionDescriptor
.
static final String INTRODUCE_PARAMETER
org.eclipse.jdt.ui.introduce.parameter
).
Clients may safely cast the obtained refactoring descriptor to
IntroduceParameterDescriptor
.
static final String INTRODUCE_PARAMETER_OBJECT
org.eclipse.jdt.ui.introduce.parameter.object
).
Clients may safely cast the obtained refactoring descriptor to
IntroduceParameterObjectDescriptor
.
static final String MOVE
org.eclipse.jdt.ui.move
).
Clients may safely cast the obtained refactoring descriptor to
MoveDescriptor
.
static final String MOVE_METHOD
org.eclipse.jdt.ui.move.method
).
Clients may safely cast the obtained refactoring descriptor to
MoveMethodDescriptor
.
static final String MOVE_STATIC_MEMBERS
org.eclipse.jdt.ui.move.static
).
Clients may safely cast the obtained refactoring descriptor to
MoveStaticMembersDescriptor
.
static final String PULL_UP
org.eclipse.jdt.ui.pull.up
).
Clients may safely cast the obtained refactoring descriptor to
PullUpDescriptor
.
static final String PUSH_DOWN
org.eclipse.jdt.ui.push.down
).
Clients may safely cast the obtained refactoring descriptor to
PushDownDescriptor
.
static final String RENAME_COMPILATION_UNIT
org.eclipse.jdt.ui.rename.compilationunit
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_ENUM_CONSTANT
org.eclipse.jdt.ui.rename.enum.constant
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_FIELD
org.eclipse.jdt.ui.rename.field
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_JAVA_PROJECT
org.eclipse.jdt.ui.rename.java.project
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_LOCAL_VARIABLE
org.eclipse.jdt.ui.rename.local.variable
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_METHOD
org.eclipse.jdt.ui.rename.method
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_PACKAGE
org.eclipse.jdt.ui.rename.package
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_RESOURCE
RenameResourceDescriptor.ID
instead.org.eclipse.jdt.ui.rename.resource
).
Clients may safely cast the obtained refactoring descriptor to
RenameResourceDescriptor
.
static final String RENAME_SOURCE_FOLDER
org.eclipse.jdt.ui.rename.source.folder
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_TYPE
org.eclipse.jdt.ui.rename.type
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String RENAME_TYPE_PARAMETER
org.eclipse.jdt.ui.rename.type.parameter
).
Clients may safely cast the obtained refactoring descriptor to
RenameJavaElementDescriptor
.
static final String USE_SUPER_TYPE
org.eclipse.jdt.ui.use.supertype
).
Clients may safely cast the obtained refactoring descriptor to
UseSupertypeDescriptor
.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.