EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.wizard.page
Class AbstractDomainWizardPage

java.lang.Object
  extended by WizardPage
      extended by org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage
          extended by org.eclipse.egf.core.ui.wizard.page.AbstractModelElementWizardPage
              extended by org.eclipse.egf.core.ui.wizard.page.AbstractDomainWizardPage
Direct Known Subclasses:
EditDomainWizardPage, NewDomainWizardPage

public abstract class AbstractDomainWizardPage
extends AbstractModelElementWizardPage

Base class to implement Domain wizard pages.


Field Summary
protected static String DEFAULT_DOMAIN_FILE_NAME
          Relative file path for the domain ecore file.
protected static String DOMAIN_RELATIVE_FOLDER_PATH
          Relative domain folder path where domain files are located.
 
Constructor Summary
AbstractDomainWizardPage(String pageName_p)
          Constructor.
AbstractDomainWizardPage(String pageName_p, String title_p, ImageDescriptor titleImage_p)
          Constructor.
 
Method Summary
protected  void createDomainFileFieldEditor(Composite parent_p)
          Create the field editor to enter the domain file name.
protected  String getDefaultDomainFilePath()
          Return the default domain file path.
protected  org.eclipse.egf.common.ui.toolkit.fields.IFieldEditor getDomainFileNameFieldEditor()
          Return the domain field editor.
protected  String getHelpContextId()
          Return the Help context id if any.
protected  boolean isDomainSelectedExist()
          Return whether or not the selected Domain file exists.
 
Methods inherited from class org.eclipse.egf.core.ui.wizard.page.AbstractModelElementWizardPage
bindTextToAttribute, bindTextToAttribute, getAdapterFactory, getHostingBundle, getHostingPluginId, getHostingProject, getHostingProjectClassLoader, getModelElement, getModelElementWizard, getPageDescription, getParent, handleFieldEditorValidation, isReadOnly, showErrorMessage
 
Methods inherited from class org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage
createControl, createPageArea, getCompleteStatus, getContentNumColumn, getPageTitle, handlePageLayout, initialize, isPageComplete, performHelp, updateButtons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DOMAIN_FILE_NAME

protected static final String DEFAULT_DOMAIN_FILE_NAME
Relative file path for the domain ecore file.

See Also:
Constant Field Values

DOMAIN_RELATIVE_FOLDER_PATH

protected static final String DOMAIN_RELATIVE_FOLDER_PATH
Relative domain folder path where domain files are located.

See Also:
Constant Field Values
Constructor Detail

AbstractDomainWizardPage

public AbstractDomainWizardPage(String pageName_p)
Constructor.

Parameters:
pageName_p -

AbstractDomainWizardPage

public AbstractDomainWizardPage(String pageName_p,
                                String title_p,
                                ImageDescriptor titleImage_p)
Constructor.

Parameters:
pageName_p -
title_p -
titleImage_p -
Method Detail

getDefaultDomainFilePath

protected String getDefaultDomainFilePath()
Return the default domain file path.
The default domain file is located within the hosting project under model/domain/domain.ecore.

Returns:

createDomainFileFieldEditor

protected void createDomainFileFieldEditor(Composite parent_p)
Create the field editor to enter the domain file name.

Parameters:
parent_p -

isDomainSelectedExist

protected boolean isDomainSelectedExist()
Return whether or not the selected Domain file exists.

Returns:

getHelpContextId

protected String getHelpContextId()
Description copied from class: AbstractWizardPage
Return the Help context id if any.
Default implementation returns null.

Overrides:
getHelpContextId in class AbstractWizardPage
Returns:
null or an help context id.
See Also:
AbstractWizardPage.getHelpContextId()

getDomainFileNameFieldEditor

protected org.eclipse.egf.common.ui.toolkit.fields.IFieldEditor getDomainFileNameFieldEditor()
Return the domain field editor.

Returns:
the domainFileNameFieldEditor

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.