public class RefactoringUI extends Object
Note: this class is not intended to be extended by clients.
Modifier and Type | Method and Description |
---|---|
static Dialog |
createLightWeightStatusDialog(RefactoringStatus status,
Shell parent,
String windowTitle)
Creates a light-weight dialog to present a
RefactoringStatus 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 a
RefactoringStatus 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.
use
PerformChangeOperation.PerformChangeOperation(Change) .
Since 3.1, undo batching is implemented in TextChange . |
public static Dialog createLightWeightStatusDialog(RefactoringStatus status, Shell parent, String windowTitle)
RefactoringStatus
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.status
- the status to presentparent
- the parent shell of the dialog. May be null
if
the dialog is a top-level dialogwindowTitle
- the dialog's window titlepublic static Composite createRefactoringHistoryControl(Composite parent, RefactoringHistoryControlConfiguration configuration)
IRefactoringHistoryControl
.parent
- the parent controlconfiguration
- the refactoring history control configurationpublic static Dialog createRefactoringStatusDialog(RefactoringStatus status, Shell parent, String windowTitle, boolean backButton)
RefactoringStatus
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.status
- the status to presentparent
- the parent shell of the dialog. May be null
if
the dialog is a top-level dialogwindowTitle
- the dialog's window titlebackButton
- if true
the dialog will contain a back button;
otherwise no back button will be present.public static Composite createSortableRefactoringHistoryControl(Composite parent, RefactoringHistoryControlConfiguration configuration)
ISortableRefactoringHistoryControl
.parent
- the parent controlconfiguration
- the refactoring history control configurationpublic static PerformChangeOperation createUIAwareChangeOperation(Change change)
PerformChangeOperation.PerformChangeOperation(Change)
.
Since 3.1, undo batching is implemented in TextChange
.IRewriteTarget
.change
- the change to performIRewriteTarget
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.