|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWizardPage
org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage
org.eclipse.egf.core.ui.wizard.page.AbstractModelElementWizardPage
public abstract class AbstractModelElementWizardPage
Base class to implement wizard pages for EGF model element objects.
| Constructor Summary | |
|---|---|
AbstractModelElementWizardPage(String pageName_p)
Constructor. |
|
AbstractModelElementWizardPage(String pageName_p,
String title_p,
ImageDescriptor titleImage_p)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
bindTextToAttribute(Text text_p,
EAttribute feature_p,
NamedModelElementWithId modelElement_p,
UpdateWizardPage featureValueChangeListener_p)
Create a data binding between given Text control and a given attribute for given model element. |
protected void |
bindTextToAttribute(Text text_p,
String propertyName_p,
Object modelElement_p,
UpdateWizardPage featureValueChangeListener_p)
Create a data binding between given Text control and a given property name for given model element. |
protected AdapterFactory |
getAdapterFactory()
Return the adapter factory to use in EMF-based label and content provider. |
protected Bundle |
getHostingBundle()
Return the bundle of the hosting project #getBundle(). |
protected String |
getHostingPluginId()
Return the id of the plug-in that hosts model element parent object. |
protected IJavaProject |
getHostingProject()
Return the project that hosts model element parent object. |
protected ClassLoader |
getHostingProjectClassLoader()
Return the class loader of the hosting project getHostingProject(). |
protected NamedModelElementWithId |
getModelElement()
Get the model element object displayed in this page. |
protected AbstractModelElementWizard |
getModelElementWizard()
Return the wizard that contains this page as an AbstractModelElementWizard instance. |
protected String |
getPageDescription()
Get the page description. |
protected NamedModelElementWithId |
getParent()
Get the parent object of the handled model element. |
protected boolean |
handleFieldEditorValidation(org.eclipse.egf.common.ui.toolkit.fields.IFieldEditor[] fieldEditors_p)
Validate given field editors |
protected boolean |
isReadOnly()
Handle page read only mode. |
protected void |
showErrorMessage(org.eclipse.egf.common.ui.toolkit.fields.CStringFieldEditor fieldEditor_p,
String errorMessage_p)
Set and show an error for given CStringFieldEditor instance. |
| Methods inherited from class org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage |
|---|
createControl, createPageArea, getCompleteStatus, getContentNumColumn, getHelpContextId, getPageTitle, handlePageLayout, initialize, isPageComplete, performHelp, updateButtons |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractModelElementWizardPage(String pageName_p)
pageName_p - modelElement_p -
public AbstractModelElementWizardPage(String pageName_p,
String title_p,
ImageDescriptor titleImage_p)
pageName_p - title_p - titleImage_p - modelElement_p - | Method Detail |
|---|
protected NamedModelElementWithId getModelElement()
protected NamedModelElementWithId getParent()
protected AbstractModelElementWizard getModelElementWizard()
AbstractModelElementWizard instance.
protected boolean isReadOnly()
AbstractWizardPage
isReadOnly in class AbstractWizardPageAbstractWizardPage.isReadOnly()protected boolean handleFieldEditorValidation(org.eclipse.egf.common.ui.toolkit.fields.IFieldEditor[] fieldEditors_p)
fieldEditors_p -
protected String getPageDescription()
AbstractWizardPage
getPageDescription in class AbstractWizardPageAbstractWizardPage.getPageDescription()
protected void showErrorMessage(org.eclipse.egf.common.ui.toolkit.fields.CStringFieldEditor fieldEditor_p,
String errorMessage_p)
CStringFieldEditor instance.
fieldEditor_p - errorMessage_p -
protected void bindTextToAttribute(Text text_p,
EAttribute feature_p,
NamedModelElementWithId modelElement_p,
UpdateWizardPage featureValueChangeListener_p)
text_p - the control.event_p - event type to register for change events.feature_p - the observed feature.modelElement_p - the object.featureValueChangeListener_p - if provided, it is registered to the created IObservableValue object based on feature_p.
protected void bindTextToAttribute(Text text_p,
String propertyName_p,
Object modelElement_p,
UpdateWizardPage featureValueChangeListener_p)
text_p - the control.event_p - event type to register for change eventspropertyName_p - the observed property name.modelObject_p - the object.featureValueChangeListener_p - if provided, it is registered to the created IObservableValue object based on feature_p.protected IJavaProject getHostingProject()
protected String getHostingPluginId()
protected ClassLoader getHostingProjectClassLoader()
getHostingProject().
protected Bundle getHostingBundle()
#getBundle().
protected AdapterFactory getAdapterFactory()
AdapterFactory instance.
|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.