Package org.eclipse.ltk.core.refactoring
Class RefactoringCore
java.lang.Object
org.eclipse.ltk.core.refactoring.RefactoringCore
Central access point to access resources managed by the refactoring
core plug-in.
Note: this class is not intended to be extended by clients.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
When condition checking is performed for a refactoring then the condition check is interpreted as failed if the refactoring status severity return from the condition checking operation is equal or greater than the value returned by this method.static IRefactoringHistoryService
Returns the singleton refactoring history service.Returns the query factory.static RefactoringContribution
Returns the refactoring contribution with the specified unique id.static IUndoManager
Returns the singleton undo manager for the refactoring undo stack.static void
An internal method to set the query factory.
-
Field Details
-
ID_PLUGIN
The id of the Refactoring plug-in (value"org.eclipse.ltk.core.refactoring"
).- Since:
- 3.2
- See Also:
-
-
Method Details
-
getUndoManager
Returns the singleton undo manager for the refactoring undo stack.- Returns:
- the refactoring undo manager.
-
getHistoryService
Returns the singleton refactoring history service.- Returns:
- the refactoring history service
- Since:
- 3.2
-
getRefactoringContribution
Returns the refactoring contribution with the specified unique id.- Parameters:
id
- the unique id of the contribution- Returns:
- the refactoring contribution, or
null
if in contribution is registered with for this id - Since:
- 3.2
-
getConditionCheckingFailedSeverity
public static int getConditionCheckingFailedSeverity()When condition checking is performed for a refactoring then the condition check is interpreted as failed if the refactoring status severity return from the condition checking operation is equal or greater than the value returned by this method.- Returns:
- the condition checking failed severity
-
getQueryFactory
Returns the query factory.- Returns:
- the query factory
- Since:
- 3.1
-
internalSetQueryFactory
An internal method to set the query factory.This method is NOT official API. It is a special method for the refactoring UI plug-in to set a dialog based query factory.
- Parameters:
factory
- the factory to set ornull
- Since:
- 3.1
- Restriction:
- This method is not intended to be referenced by clients.
-