org.eclipse.emf.ecp.view.template.internal.tooling.util
Class DMRCreationWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.emf.ecp.view.template.internal.tooling.util.DMRCreationWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class DMRCreationWizard
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard

Wizard for creating a VFeaturePathDomainModelReference for a DomainModelReferenceSelector.

Author:
Eugen Neufeld

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
DMRCreationWizard()
           
 
Method Summary
 void addPages()
          The framework calls this to create the contents of the wizard.
 boolean canFinish()
          
 org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
          
 org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage page)
          
 org.eclipse.core.resources.IFile getSelectedEcore()
           
 org.eclipse.emf.ecore.EStructuralFeature getSelectedEStructuralFeature()
           
 org.eclipse.jface.wizard.IWizardPage getStartingPage()
          
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          This just records the information.
 boolean performFinish()
           
 void setSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getShell, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.wizard.IWizard
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Constructor Detail

DMRCreationWizard

public DMRCreationWizard()
Method Detail

setSelection

public void setSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Parameters:
selection - the selection to set

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
This just records the information.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard

addPages

public void addPages()
The framework calls this to create the contents of the wizard.

Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

getStartingPage

public org.eclipse.jface.wizard.IWizardPage getStartingPage()

Specified by:
getStartingPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getStartingPage in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.getStartingPage()

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)

Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getNextPage in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.getNextPage(org.eclipse.jface.wizard.IWizardPage)

getPreviousPage

public org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage page)

Specified by:
getPreviousPage in interface org.eclipse.jface.wizard.IWizard
Overrides:
getPreviousPage in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.getPreviousPage(org.eclipse.jface.wizard.IWizardPage)

canFinish

public boolean canFinish()

Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish in class org.eclipse.jface.wizard.Wizard
See Also:
Wizard.canFinish()

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard

getSelectedEcore

public org.eclipse.core.resources.IFile getSelectedEcore()

getSelectedEStructuralFeature

public org.eclipse.emf.ecore.EStructuralFeature getSelectedEStructuralFeature()


Copyright © 2015. All Rights Reserved.