EGF Engine
Release 0.1.0

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

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.ContextElementReferenceWizardPage

public class ContextElementReferenceWizardPage
extends AbstractModelElementWizardPage

Implements the context element reference wizard page.


Field Summary
protected static Logger __logger
          Log4j reference logger.
protected  org.eclipse.egf.common.ui.toolkit.viewers.AbstractTransferViewer _treeTransferViewer
          TransferViewer used to select referenced contract elements.
 
Constructor Summary
ContextElementReferenceWizardPage(String pageName_p)
          Constructor.
ContextElementReferenceWizardPage(String pageName_p, String title_p, ImageDescriptor titleImage_p)
          Constructor.
 
Method Summary
 boolean canFlipToNextPage()
           
protected  void createPageArea(Composite parent_p)
          Create the page content.
protected  boolean getCompleteStatus()
          Check conditions to get the page completed
protected  ContextElement getContextElement()
          Return the handled context element.
protected  String getHelpContextId()
          Return the Help context id if any.
 IWizardPage getNextPage()
           
protected  String getPageTitle()
          Get the page title.
protected  IContentProvider handleLeftViewerInitialization(Collection<ContractElement> referencedContractElementList_p)
          Handle the left viewer initialization.
protected  ContractElement handleRightViewerInitialization()
          Handle the right viewer initialization.
protected  void initializeHandlers(org.eclipse.egf.common.ui.toolkit.viewers.AbstractTransferViewer transferViewer_p)
          Initialize handlers on given
 
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, getContentNumColumn, 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

__logger

protected static final Logger __logger
Log4j reference logger.


_treeTransferViewer

protected org.eclipse.egf.common.ui.toolkit.viewers.AbstractTransferViewer _treeTransferViewer
TransferViewer used to select referenced contract elements.

Constructor Detail

ContextElementReferenceWizardPage

public ContextElementReferenceWizardPage(String pageName_p)
Constructor.

Parameters:
pageName_p -

ContextElementReferenceWizardPage

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

Parameters:
pageName_p -
title_p -
titleImage_p -
Method Detail

createPageArea

protected void createPageArea(Composite parent_p)
Description copied from class: AbstractWizardPage
Create the page content.

Specified by:
createPageArea in class AbstractWizardPage
See Also:
org.eclipse.egf.core.ui.wizard.page.AbstractModelElementWizardPage#createPageArea(org.eclipse.swt.widgets.Composite)

initializeHandlers

protected void initializeHandlers(org.eclipse.egf.common.ui.toolkit.viewers.AbstractTransferViewer transferViewer_p)
Initialize handlers on given

Parameters:
treeTransferViewer_p -

handleLeftViewerInitialization

protected IContentProvider handleLeftViewerInitialization(Collection<ContractElement> referencedContractElementList_p)
Handle the left viewer initialization.

Returns:

handleRightViewerInitialization

protected ContractElement handleRightViewerInitialization()
Handle the right viewer initialization.


getCompleteStatus

protected boolean getCompleteStatus()
Description copied from class: AbstractWizardPage
Check conditions to get the page completed

Specified by:
getCompleteStatus in class AbstractWizardPage
Returns:
true the page is complete; false otherwise.
See Also:
AbstractWizardPage.getCompleteStatus()

getPageTitle

protected String getPageTitle()
Description copied from class: AbstractWizardPage
Get the page title.

Specified by:
getPageTitle in class AbstractWizardPage
Returns:
See Also:
AbstractWizardPage.getPageTitle()

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()

getContextElement

protected ContextElement getContextElement()
Return the handled context element.

Returns:

canFlipToNextPage

public boolean canFlipToNextPage()
See Also:
org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()

getNextPage

public IWizardPage getNextPage()
See Also:
org.eclipse.jface.wizard.WizardPage#getNextPage()

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.