EGF Engine
Release 0.1.0

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

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.AbstractPatternLibrarySequenceWizardPage
All Implemented Interfaces:
IListViewerObserver
Direct Known Subclasses:
PatternLibraryProductionSequenceWizardPage, PatternLibraryRuntimeSequenceWizardPage

public abstract class AbstractPatternLibrarySequenceWizardPage
extends AbstractModelElementWizardPage
implements IListViewerObserver

Base class to implement the pattern library wizard page that allows the end-user to select production orchestration
and the runtime orchestration.


Constructor Summary
protected AbstractPatternLibrarySequenceWizardPage(String pageName_p)
          Constructor.
  AbstractPatternLibrarySequenceWizardPage(String pageName_p, String title_p, ImageDescriptor titleImage_p)
          Constructor.
 
Method Summary
protected  OrderedListViewer createOrderedViewer(Composite parent_p)
          Create the ordered viewer.
protected  void createPageArea(Composite parent_p)
          Create the page content.
 void elementAdded(List<Object> elements_p)
          Called when elements are added in a ListViewer.
 void elementRemoved(List<Object> elements_p)
          Called when elements are removed from a ListViewer.
protected  boolean getCompleteStatus()
          Check conditions to get the page completed
protected  List<Object> getFilteredPatternElements()
          Return the filtered pattern elements when adding a new one from the 'add' button.
protected abstract  String getOrchestrationValue()
          Return the orchestration value.
protected  List<AbstractPatternElement> getPatternElements()
          Get pattern elements for handled pattern library.
protected abstract  List<Object> getPatternElements(String orchestrationValue_p)
          Return the list of pattern element for given orchestration value.
protected  List<Object> getPatternElementsOrder()
          Return the list of AbstractPatternElement ordered as defined by the end-user.
protected  PatternLibrary getPatternLibrary()
          Get the handled pattern library.
protected  void initializeOrderedViewer(StructuredViewer decoratedViewer)
           
 
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, 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
 
Methods inherited from interface org.eclipse.egf.core.ui.internal.observable.IListViewerObserver
elementUpdated
 

Constructor Detail

AbstractPatternLibrarySequenceWizardPage

protected AbstractPatternLibrarySequenceWizardPage(String pageName_p)
Constructor.

Parameters:
pageName_p -

AbstractPatternLibrarySequenceWizardPage

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

Parameters:
pageName_p -
title_p -
titleImage_p -
Method Detail

getFilteredPatternElements

protected List<Object> getFilteredPatternElements()
Return the filtered pattern elements when adding a new one from the 'add' button.
Default implementation returns an empty list.

Returns:
a not null List.

createOrderedViewer

protected OrderedListViewer createOrderedViewer(Composite parent_p)
Create the ordered viewer.

Parameters:
parent_p -
Returns:
a not null OrderedListViewer instance.

initializeOrderedViewer

protected void initializeOrderedViewer(StructuredViewer decoratedViewer)

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)

getPatternElementsOrder

protected List<Object> getPatternElementsOrder()
Return the list of AbstractPatternElement ordered as defined by the end-user.

Returns:

getOrchestrationValue

protected abstract String getOrchestrationValue()
Return the orchestration value.

Returns:

getPatternElements

protected abstract List<Object> getPatternElements(String orchestrationValue_p)
Return the list of pattern element for given orchestration value.

Parameters:
orchestrationValue_p - a not null string.
Returns:
a not null list.

elementAdded

public void elementAdded(List<Object> elements_p)
Description copied from interface: IListViewerObserver
Called when elements are added in a ListViewer.

Specified by:
elementAdded in interface IListViewerObserver
Parameters:
elements_p - the list of added elements.
See Also:
IListViewerObserver.elementAdded(java.util.List)

elementRemoved

public void elementRemoved(List<Object> elements_p)
Description copied from interface: IListViewerObserver
Called when elements are removed from a ListViewer.

Specified by:
elementRemoved in interface IListViewerObserver
Parameters:
elements_p - the list of removed elements.
See Also:
IListViewerObserver.elementRemoved(java.util.List)

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

getPatternElements

protected List<AbstractPatternElement> getPatternElements()
Get pattern elements for handled pattern library.

Returns:

getPatternLibrary

protected PatternLibrary getPatternLibrary()
Get the handled pattern library.

Returns:

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.