Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

        org.eclipse.jface.window.Window.IExceptionHandler
    • 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
      • Fields inherited from class org.eclipse.jface.window.Window

        CANCEL, OK, resizeHasOccurred
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ViewMigrationDialog

        public ViewMigrationDialog​(org.eclipse.swt.widgets.Shell parentShell)
        Constructor.
        Parameters:
        parentShell - the parent shell of this dialog
    • Method Detail

      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell newShell)
        Overrides:
        configureShell in class org.eclipse.jface.window.Window
        See Also:
        Window.configureShell(org.eclipse.swt.widgets.Shell)
      • create

        public void create()
        Overrides:
        create in class org.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 class org.eclipse.jface.dialogs.TitleAreaDialog
        See Also:
        Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)
      • isHelpAvailable

        public boolean isHelpAvailable()
        Overrides:
        isHelpAvailable in class org.eclipse.jface.dialogs.TrayDialog
        See Also:
        TrayDialog.isHelpAvailable()
      • isResizable

        protected boolean isResizable()
        Overrides:
        isResizable in class org.eclipse.jface.dialogs.Dialog
        See Also:
        Dialog.isResizable()
      • okPressed

        protected void okPressed()
        Overrides:
        okPressed in class org.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