EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.editor.page
Class PatternImplementationPage

java.lang.Object
  extended by FormPage
      extended by org.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage
          extended by org.eclipse.egf.pattern.ui.editor.page.PatternImplementationPage
All Implemented Interfaces:
IExternalSelectionHandler

public class PatternImplementationPage
extends AbstractPatternPage


Nested Class Summary
protected  class PatternImplementationPage.GenerateMethodBlock
          Unique public method block.
protected  class PatternImplementationPage.InternalMethodLinkListener
          Internal methods edition link listener.
protected  class PatternImplementationPage.InternalMethodsBlock
          Internal methods block.
protected  class PatternImplementationPage.InternalMethodsContentProvider
          Internal methods content provider.
protected  class PatternImplementationPage.InternalMethodsDetails
          Internal methods details.
protected  class PatternImplementationPage.InternalMethodsHandler
          Internal methods handler.
protected  class PatternImplementationPage.InternalMethodsViewer
          Pattern internal methods master viewer.
protected  class PatternImplementationPage.MethodNameValidator
          Method name validator.
 
Nested classes/interfaces inherited from class org.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage
AbstractPatternPage.TextValidator
 
Field Summary
protected  List<InternalMethodHandler> _handledMethods
          List of effectively handled internal methods.
protected  StructuredViewer _internalMethodsviewer
          Internal methods viewer.
protected  MethodPatternCodeViewer _publicMethodViewer
          Public method viewer.
protected static String HELP_CONTEXT_ID
          Help context id.
static String ID
          Page id.
 
Constructor Summary
PatternImplementationPage(FormEditor editor_p)
          Constructor.
 
Method Summary
protected  AbstractPatternBlock createPatternBlock()
          Get a new pattern block implementation, if this page has to use the master/details approach.
protected  void dataSaved()
          Data have been saved.
 void dispose()
           
protected  void doCreateFormContent(FormToolkit toolkit_p, Composite parent_p, PatternHandler.PatternData patternData_p, IManagedForm managedForm_p)
          Do create form content.
 void editorAboutToBeSaved()
          Editor is about to be saved.
 String getHelpContextId()
          Get help context id for current page.
 void handleSelection(Object firstSelectedObject_p, IStructuredSelection selection_p)
          Handle selection.
 
Methods inherited from class org.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage
clearErrors, createFormContent, editorSaved, getEditor, getExternalSelectionManager, getPatternData, getPatternHandler, hasErrors, isDirty, isEditable, reportError, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Page id.

See Also:
Constant Field Values

HELP_CONTEXT_ID

protected static final String HELP_CONTEXT_ID
Help context id.


_handledMethods

protected List<InternalMethodHandler> _handledMethods
List of effectively handled internal methods.


_internalMethodsviewer

protected StructuredViewer _internalMethodsviewer
Internal methods viewer.


_publicMethodViewer

protected MethodPatternCodeViewer _publicMethodViewer
Public method viewer.

Constructor Detail

PatternImplementationPage

public PatternImplementationPage(FormEditor editor_p)
Constructor.

Parameters:
editor_p -
Method Detail

dispose

public void dispose()
See Also:
org.eclipse.ui.forms.editor.FormPage#dispose()

handleSelection

public void handleSelection(Object firstSelectedObject_p,
                            IStructuredSelection selection_p)
Description copied from interface: IExternalSelectionHandler
Handle selection.

Specified by:
handleSelection in interface IExternalSelectionHandler
Overrides:
handleSelection in class AbstractPatternPage
Parameters:
firstSelectedObject_p - The first object selected in given structured selection.
selection_p - The whole selection.
See Also:
org.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage#handleSelection(java.lang.Object, org.eclipse.jface.viewers.IStructuredSelection)

doCreateFormContent

protected void doCreateFormContent(FormToolkit toolkit_p,
                                   Composite parent_p,
                                   PatternHandler.PatternData patternData_p,
                                   IManagedForm managedForm_p)
Description copied from class: AbstractPatternPage
Do create form content.
Should be overridden by page that were not created using a pattern block.

Overrides:
doCreateFormContent in class AbstractPatternPage
Parameters:
toolkit_p - Managed form toolkit.
parent_p - Managed form composite.
patternData_p - Pattern data for current pattern edition.
See Also:
org.eclipse.egf.pattern.ui.editor.page.AbstractPatternPage#doCreateFormContent(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite, org.eclipse.egf.pattern.ecore.PatternHandler.PatternData, org.eclipse.ui.forms.IManagedForm)

createPatternBlock

protected AbstractPatternBlock createPatternBlock()
Description copied from class: AbstractPatternPage
Get a new pattern block implementation, if this page has to use the master/details approach.
Returning null here implies overriding the #doCreateFormContent(FormToolkit, Composite, PatternData, IManagedForm) method entirely.

Specified by:
createPatternBlock in class AbstractPatternPage
Returns:
See Also:
AbstractPatternPage.createPatternBlock()

editorAboutToBeSaved

public void editorAboutToBeSaved()
Description copied from class: AbstractPatternPage
Editor is about to be saved.
Data are still valid.
The page is giving an opportunity to save its state, or its data.

Overrides:
editorAboutToBeSaved in class AbstractPatternPage
See Also:
AbstractPatternPage.editorAboutToBeSaved()

dataSaved

protected void dataSaved()
Description copied from class: AbstractPatternPage
Data have been saved.
Change page internal state accordingly.

Overrides:
dataSaved in class AbstractPatternPage
See Also:
AbstractPatternPage.dataSaved()

getHelpContextId

public String getHelpContextId()
Description copied from class: AbstractPatternPage
Get help context id for current page.
Must be prefixed by the page plug-in id.

Specified by:
getHelpContextId in class AbstractPatternPage
Returns:
See Also:
AbstractPatternPage.getHelpContextId()

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.