Class ViewMigrationDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- org.eclipse.emf.ecp.ide.internal.migration.ViewMigrationDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class ViewMigrationDialog extends org.eclipse.jface.dialogs.TitleAreaDialog
A dialog that enables the migration of view model files.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
-
-
Constructor Summary
Constructors Constructor Description ViewMigrationDialog(org.eclipse.swt.widgets.Shell parentShell)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureShell(org.eclipse.swt.widgets.Shell newShell)
void
create()
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
java.lang.String
getNewNamespaceFragment()
Returns the new namespace fragments with which to replace the old ones.java.lang.String
getOldNamespaceFragment()
Returns the namespace fragments to be replaced.boolean
isHelpAvailable()
protected boolean
isResizable()
protected void
okPressed()
boolean
shouldShowWarning()
Whether to show migration warnings.-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Method Detail
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShell
in classorg.eclipse.jface.window.Window
- See Also:
Window.configureShell(org.eclipse.swt.widgets.Shell)
-
create
public void create()
- Overrides:
create
in classorg.eclipse.jface.dialogs.Dialog
- See Also:
Dialog.create()
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.TitleAreaDialog
- See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)
-
isHelpAvailable
public boolean isHelpAvailable()
- Overrides:
isHelpAvailable
in classorg.eclipse.jface.dialogs.TrayDialog
- See Also:
TrayDialog.isHelpAvailable()
-
isResizable
protected boolean isResizable()
- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
- See Also:
Dialog.isResizable()
-
okPressed
protected void okPressed()
- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
- See Also:
Dialog.okPressed()
-
getOldNamespaceFragment
public java.lang.String getOldNamespaceFragment()
Returns the namespace fragments to be replaced.- Returns:
- the namespace fragments to be replaced
-
getNewNamespaceFragment
public java.lang.String getNewNamespaceFragment()
Returns the new namespace fragments with which to replace the old ones.- Returns:
- the new namespace fragments
-
shouldShowWarning
public boolean shouldShowWarning()
Whether to show migration warnings.- Returns:
true
, if migration warnings are to be shown
-
-