EGF Engine
Release 0.1.0

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

java.lang.Object
  extended by org.eclipse.egf.pattern.ui.internal.editor.page.DefaultContentHandler
      extended by org.eclipse.egf.pattern.ui.editor.page.PatternImplementationPage.InternalMethodsHandler
All Implemented Interfaces:
IButtonClickedListener, IContentHandler
Enclosing class:
PatternImplementationPage

protected class PatternImplementationPage.InternalMethodsHandler
extends DefaultContentHandler
implements IButtonClickedListener

Internal methods handler.
Is responsible for the addition and the removal of methods to/from current pattern.


Constructor Summary
protected PatternImplementationPage.InternalMethodsHandler(PatternHandler.PatternData patternData_p, StructuredViewer viewer_p)
          Constructor.
 
Method Summary
 void buttonClicked(Button clickedButton_p, Object data_p)
          Sent when a button in AbstractViewerWithButtons is clicked.
protected  InternalMethodHandler createNewMethod()
          Create a new method.
protected  String getNewMethodName(Pattern pattern_p)
          Get next available correct method name.
protected  InternalMethodHandler getSelectedHandler()
          Get selected handler.
protected  void removeMethod(InternalMethodHandler handler_p)
          Remove method.
 
Methods inherited from class org.eclipse.egf.pattern.ui.internal.editor.page.DefaultContentHandler
addPropertyChangeListener, createNewElement, getPage, getPattern, getPatternData, notifyModification, removeElement, removePropertyChangeListener, setPatternData, setPatternPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternImplementationPage.InternalMethodsHandler

protected PatternImplementationPage.InternalMethodsHandler(PatternHandler.PatternData patternData_p,
                                                           StructuredViewer viewer_p)
Constructor.

Parameters:
patternData_p -
Method Detail

getNewMethodName

protected String getNewMethodName(Pattern pattern_p)
Get next available correct method name.

Parameters:
pattern_p -
Returns:

createNewMethod

protected InternalMethodHandler createNewMethod()
Create a new method.

Returns:

removeMethod

protected void removeMethod(InternalMethodHandler handler_p)
Remove method.

Parameters:
handler_p -

getSelectedHandler

protected InternalMethodHandler getSelectedHandler()
Get selected handler.

Returns:
null if no method handler is currently selected.

buttonClicked

public void buttonClicked(Button clickedButton_p,
                          Object data_p)
Description copied from interface: IButtonClickedListener
Sent when a button in AbstractViewerWithButtons is clicked.

Specified by:
buttonClicked in interface IButtonClickedListener
Parameters:
clickedButton_p - the clicked button.
data_p - the button's user data.
See Also:
org.eclipse.egf.common.ui.viewers.IButtonClickedListener#buttonClicked(org.eclipse.swt.widgets.Button, java.lang.Object)

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.