Package org.eclipse.ltk.ui.refactoring
Class RefactoringUI
java.lang.Object
org.eclipse.ltk.ui.refactoring.RefactoringUI
Central access point to access resources managed by the refactoring UI
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Dialog
createLightWeightStatusDialog
(RefactoringStatus status, Shell parent, String windowTitle) Creates a light-weight dialog to present aRefactoringStatus
to the user.static Composite
createRefactoringHistoryControl
(Composite parent, RefactoringHistoryControlConfiguration configuration) Creates a control capable of presenting a refactoring history.static Dialog
createRefactoringStatusDialog
(RefactoringStatus status, Shell parent, String windowTitle, boolean backButton) Creates a dialog to present aRefactoringStatus
to the user.static Composite
createSortableRefactoringHistoryControl
(Composite parent, RefactoringHistoryControlConfiguration configuration) Creates a control capable of presenting a refactoring history.static PerformChangeOperation
createUIAwareChangeOperation
(Change change) Deprecated.
-
Method Details
-
createLightWeightStatusDialog
public static Dialog createLightWeightStatusDialog(RefactoringStatus status, Shell parent, String windowTitle) Creates a light-weight dialog to present aRefactoringStatus
to the user. The following values are returned from the dialogs open method:IDialogConstants#OK_ID
: if the user has pressed the continue button.IDialogConstants#CANCEL_ID
: if the user has pressed the cancel button.IDialogConstants#BACK_ID
: if the user has pressed the back button.
- Parameters:
status
- the status to presentparent
- the parent shell of the dialog. May benull
if the dialog is a top-level dialogwindowTitle
- the dialog's window title- Returns:
- a dialog to present a refactoring status.
- Since:
- 3.2
-
createRefactoringHistoryControl
public static Composite createRefactoringHistoryControl(Composite parent, RefactoringHistoryControlConfiguration configuration) Creates a control capable of presenting a refactoring history. Clients of this method can assume that the returned composite is an instance ofIRefactoringHistoryControl
.- Parameters:
parent
- the parent controlconfiguration
- the refactoring history control configuration- Returns:
- the refactoring history control
- Since:
- 3.2
-
createRefactoringStatusDialog
public static Dialog createRefactoringStatusDialog(RefactoringStatus status, Shell parent, String windowTitle, boolean backButton) Creates a dialog to present aRefactoringStatus
to the user. The following values are returned from the dialogs open method:IDialogConstants#OK_ID
: if the user has pressed the continue button.IDialogConstants#CANCEL_ID
: if the user has pressed the cancel button.IDialogConstants#BACK_ID
: if the user has pressed the back button.
- Parameters:
status
- the status to presentparent
- the parent shell of the dialog. May benull
if the dialog is a top-level dialogwindowTitle
- the dialog's window titlebackButton
- iftrue
the dialog will contain a back button; otherwise no back button will be present.- Returns:
- a dialog to present a refactoring status.
-
createSortableRefactoringHistoryControl
public static Composite createSortableRefactoringHistoryControl(Composite parent, RefactoringHistoryControlConfiguration configuration) Creates a control capable of presenting a refactoring history. Clients of this method can assume that the returned composite is an instance ofISortableRefactoringHistoryControl
.- Parameters:
parent
- the parent controlconfiguration
- the refactoring history control configuration- Returns:
- the refactoring history control
- Since:
- 3.3
-
createUIAwareChangeOperation
Deprecated.usePerformChangeOperation(Change)
. Since 3.1, undo batching is implemented inTextChange
.Creates a special perform change operations that knows how to batch undo operations in open editors into one undo object. The operation batches the undo operations for those editors that implement the interfaceIRewriteTarget
.- Parameters:
change
- the change to perform- Returns:
- a special perform change operation that knows how to batch undo
operations for open editors if they implement
IRewriteTarget
-
PerformChangeOperation(Change)
.