EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.internal.editor.page.wizard
Class AbstractPatternWizardPage

java.lang.Object
  extended by WizardPage
      extended by org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage
          extended by org.eclipse.egf.pattern.ui.internal.editor.page.wizard.AbstractPatternWizardPage
Direct Known Subclasses:
AbstractPatternCodeWizardPage, ParameterTypeSelectionPage

public abstract class AbstractPatternWizardPage
extends AbstractWizardPage

Abstract pattern wizard page.
Allows for the creation of a unique structured viewer, that displays the page element selection.


Constructor Summary
AbstractPatternWizardPage(String pageId_p)
          Constructor.
 
Method Summary
protected  void createPageArea(Composite parent_p)
          Create the page content.
protected abstract  StructuredViewer createViewer(Composite parent_p)
          Create and initialize the viewer.
protected abstract  boolean delegateSelectionChanged(Object selectedElement_p)
          Delegate selection changed.
protected  void endPageAreaCreation(StructuredViewer viewer_p)
          Give the viewer creator back the opportunity to change the viewer representation after/if it has been adapted.
protected  boolean getCompleteStatus()
          Check conditions to get the page completed
protected  FormToolkit getToolkit()
           
protected  boolean isReadOnly()
          Handle page read only mode.
 void selectionChanged(SelectionChangedEvent event_p)
           
 
Methods inherited from class org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage
createControl, getContentNumColumn, getHelpContextId, getPageDescription, 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

AbstractPatternWizardPage

public AbstractPatternWizardPage(String pageId_p)
Constructor.

Parameters:
pageId_p -
Method Detail

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

createViewer

protected abstract StructuredViewer createViewer(Composite parent_p)
Create and initialize the viewer.

Returns:
A not null viewer reference.

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.common.ui.wizard.page.AbstractWizardPage#createPageArea(org.eclipse.swt.widgets.Composite)

getToolkit

protected FormToolkit getToolkit()

endPageAreaCreation

protected void endPageAreaCreation(StructuredViewer viewer_p)
Give the viewer creator back the opportunity to change the viewer representation after/if it has been adapted.

Parameters:
viewer_p -

isReadOnly

protected boolean isReadOnly()
Description copied from class: AbstractWizardPage
Handle page read only mode.

Specified by:
isReadOnly in class AbstractWizardPage
See Also:
org.eclipse.egf.common.ui.wizard.page.AbstractWizardPage#handlePageContentEnablement(org.eclipse.swt.widgets.Composite)

selectionChanged

public void selectionChanged(SelectionChangedEvent event_p)
See Also:
org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)

delegateSelectionChanged

protected abstract boolean delegateSelectionChanged(Object selectedElement_p)
Delegate selection changed.
Given selected element might be null.

Parameters:
selectedElement_p -
Returns:
true if selection completes the page, false otherwise.

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.