org.eclipse.ocl.examples.xtext.oclinecore.ui.wizards
Class EcoreWithOCLFileNewWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.ocl.examples.xtext.base.ui.wizards.AbstractFileNewWizard
          extended by org.eclipse.ocl.examples.xtext.oclinecore.ui.wizards.AbstractOCLinEcoreFileNewWizard
              extended by org.eclipse.ocl.examples.xtext.oclinecore.ui.wizards.EcoreWithOCLFileNewWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class EcoreWithOCLFileNewWizard
extends AbstractOCLinEcoreFileNewWizard

Wizard allowing the user to create a new OCLinEcore file.


Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
EcoreWithOCLFileNewWizard()
           
 
Method Summary
protected  EcoreWithOCLFileDialog createDialog(AbstractFileNewWizardPage wizardPage, org.eclipse.core.resources.IResource initialSelection)
           
 java.lang.String getInitialContentsAsString(org.eclipse.core.resources.IFile newFile, AbstractFileDialog dialog)
          Returns a string containing the initial contents to be given to new complete OCL file resource instances.
 java.lang.String getNewFileExtension()
          Returns the extension to display in the file name specification visual component group.
 java.lang.String getNewFileLabel()
          Returns the label to display in the file name specification visual component group.
 java.lang.String getPageDescription()
          Return the long description to appear in the dialog.
 java.lang.String getPageSummary()
          Return the short description to appear in the dialog.
 java.lang.String getPageTitle()
          Return the text to appear as the title in the window manager frame.
 
Methods inherited from class org.eclipse.ocl.examples.xtext.oclinecore.ui.wizards.AbstractOCLinEcoreFileNewWizard
appendImports, getEditorId, getNewFileName
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.ui.wizards.AbstractFileNewWizard
createNewWizardPage, init, performFinish
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.wizard.IWizard
addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Constructor Detail

EcoreWithOCLFileNewWizard

public EcoreWithOCLFileNewWizard()
Method Detail

createDialog

@NonNull
protected EcoreWithOCLFileDialog createDialog(@NonNull
                                                      AbstractFileNewWizardPage wizardPage,
                                                      @Nullable
                                                      org.eclipse.core.resources.IResource initialSelection)
Specified by:
createDialog in class AbstractFileNewWizard

getInitialContentsAsString

@NonNull
public java.lang.String getInitialContentsAsString(@NonNull
                                                           org.eclipse.core.resources.IFile newFile,
                                                           @NonNull
                                                           AbstractFileDialog dialog)
Description copied from class: AbstractFileNewWizard
Returns a string containing the initial contents to be given to new complete OCL file resource instances.

Overrides:
getInitialContentsAsString in class AbstractOCLinEcoreFileNewWizard
Returns:
contents to be given to new complete OCL file resource instances

getNewFileExtension

@NonNull
public java.lang.String getNewFileExtension()
Description copied from class: AbstractFileNewWizard
Returns the extension to display in the file name specification visual component group.

Specified by:
getNewFileExtension in class AbstractFileNewWizard
Returns:
the extension to display in the file name specification visual component group

getNewFileLabel

@NonNull
public java.lang.String getNewFileLabel()
Description copied from class: AbstractFileNewWizard
Returns the label to display in the file name specification visual component group.

Specified by:
getNewFileLabel in class AbstractFileNewWizard
Returns:
the label to display in the file name specification visual component group

getPageDescription

@NonNull
public java.lang.String getPageDescription()
Description copied from class: AbstractFileNewWizard
Return the long description to appear in the dialog.

Specified by:
getPageDescription in class AbstractFileNewWizard

getPageSummary

@NonNull
public java.lang.String getPageSummary()
Description copied from class: AbstractFileNewWizard
Return the short description to appear in the dialog.

Specified by:
getPageSummary in class AbstractFileNewWizard

getPageTitle

@NonNull
public java.lang.String getPageTitle()
Description copied from class: AbstractFileNewWizard
Return the text to appear as the title in the window manager frame.

Specified by:
getPageTitle in class AbstractFileNewWizard