EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.wizard
Class AbstractPatternLibraryWizard

java.lang.Object
  extended by Wizard
      extended by org.eclipse.egf.core.ui.wizard.AbstractModelElementWizard
          extended by org.eclipse.egf.core.ui.wizard.AbstractPatternLibraryWizard
Direct Known Subclasses:
PatternLibraryWizard, RootPatternLibraryWizard

public abstract class AbstractPatternLibraryWizard
extends AbstractModelElementWizard

Base class to implement a wizard to create a pattern library.


Field Summary
static String PATTERN_LIBRARY_PRODUCTION_SEQUENCE_PAGE
          Constant used to identify the production orchestration wizard page.
static String PATTERN_LIBRARY_RUNTIME_SEQUENCE_PAGE
          Constant used to identify the runtime orchestration wizard page.
 
Constructor Summary
AbstractPatternLibraryWizard(EObject parent_p, NamedModelElementWithId modelElement_p, boolean readOnlyMode_p, boolean creationMode_p)
          Constructor.
 
Method Summary
 void addPages()
           
protected  NamedModelElementWithId doCreateModelElement()
          Create concrete model element.
protected  String getCreationDescription()
          Returns the description when this wizard creates the displayed object.
protected  String getEditDescription()
          Returns the description when this wizard modifies the displayed object.
 IWizardPage getPage(String name)
           
protected  PluginChangeWrapperCommand getPluginChangeCommand(EditingDomain editingDomain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Get the plugin change command.
protected  String getTitle()
          Returns the title message of this wizard.
protected  ImageDescriptor getWizardDefaultPageImageDescriptor()
          Get the wizard default image.
 boolean isInCreationMode()
          Is this wizard open to create a new pattern library or edit an existing one ?
 
Methods inherited from class org.eclipse.egf.core.ui.wizard.AbstractModelElementWizard
canFinish, containsChanges, endChangesRecording, getAddCommandForCreatedElement, getChangeDescription, getChangeRecorder, getDescription, getModelElement, getModifiedFeature, getParent, handleCanFinish, handleChangeDescription, isInReadOnlyMode, performCancel, performFinish, startChangesRecording
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN_LIBRARY_PRODUCTION_SEQUENCE_PAGE

public static final String PATTERN_LIBRARY_PRODUCTION_SEQUENCE_PAGE
Constant used to identify the production orchestration wizard page.

See Also:
Constant Field Values

PATTERN_LIBRARY_RUNTIME_SEQUENCE_PAGE

public static final String PATTERN_LIBRARY_RUNTIME_SEQUENCE_PAGE
Constant used to identify the runtime orchestration wizard page.

See Also:
Constant Field Values
Constructor Detail

AbstractPatternLibraryWizard

public AbstractPatternLibraryWizard(EObject parent_p,
                                    NamedModelElementWithId modelElement_p,
                                    boolean readOnlyMode_p,
                                    boolean creationMode_p)
Constructor.

Parameters:
parent_p -
modelElement_p -
readOnlyMode_p -
creationMode_p - true means this wizard is used to create a new pattern library.
Method Detail

addPages

public void addPages()
Overrides:
addPages in class AbstractModelElementWizard
See Also:
AbstractModelElementWizard.addPages()

getPage

public IWizardPage getPage(String name)
See Also:
org.eclipse.jface.wizard.Wizard#getPage(java.lang.String)

doCreateModelElement

protected NamedModelElementWithId doCreateModelElement()
Description copied from class: AbstractModelElementWizard
Create concrete model element.

Specified by:
doCreateModelElement in class AbstractModelElementWizard
Returns:
a not null NamedModelElementWithId object.
See Also:
AbstractModelElementWizard.doCreateModelElement()

getPluginChangeCommand

protected PluginChangeWrapperCommand getPluginChangeCommand(EditingDomain editingDomain_p,
                                                            EObject modelElement_p,
                                                            EStructuralFeature feature_p,
                                                            Object value_p)
Description copied from class: AbstractModelElementWizard
Get the plugin change command.

Specified by:
getPluginChangeCommand in class AbstractModelElementWizard
Returns:
See Also:
org.eclipse.egf.core.ui.wizard.AbstractModelElementWizard#getPluginChangeCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.lang.Object)

getCreationDescription

protected String getCreationDescription()
Description copied from class: AbstractModelElementWizard
Returns the description when this wizard creates the displayed object.

Specified by:
getCreationDescription in class AbstractModelElementWizard
Returns:
a not null String instance.
See Also:
AbstractModelElementWizard.getCreationDescription()

getEditDescription

protected String getEditDescription()
Description copied from class: AbstractModelElementWizard
Returns the description when this wizard modifies the displayed object.

Specified by:
getEditDescription in class AbstractModelElementWizard
Returns:
a not null String instance.
See Also:
AbstractModelElementWizard.getEditDescription()

getTitle

protected String getTitle()
Description copied from class: AbstractModelElementWizard
Returns the title message of this wizard.

Specified by:
getTitle in class AbstractModelElementWizard
Returns:
See Also:
AbstractModelElementWizard.getTitle()

isInCreationMode

public boolean isInCreationMode()
Is this wizard open to create a new pattern library or edit an existing one ?

Returns:

getWizardDefaultPageImageDescriptor

protected ImageDescriptor getWizardDefaultPageImageDescriptor()
Description copied from class: AbstractModelElementWizard
Get the wizard default image.
Recommended image size is 75x66.

Overrides:
getWizardDefaultPageImageDescriptor in class AbstractModelElementWizard
Returns:
null means no image set on the wizard.
See Also:
AbstractModelElementWizard.getWizardDefaultPageImageDescriptor()

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.