EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.editor.page
Class PatternInheritancePage.ParentsButtonHandler

java.lang.Object
  extended by org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler
      extended by org.eclipse.egf.pattern.ui.editor.page.PatternInheritancePage.ParentsButtonHandler
Enclosing class:
PatternInheritancePage

protected class PatternInheritancePage.ParentsButtonHandler
extends org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler

Buttons handler.
Decide if add and remove button should be enabled or disabled, depending on current selection and an extra external condition.


Constructor Summary
protected PatternInheritancePage.ParentsButtonHandler()
           
 
Method Summary
protected  boolean doHandleSelection(ISelection selection_p)
          Handle selection to enable or disable the managed controls.
protected  boolean postCondition()
          Possible post condition implementation.
 
Methods inherited from class org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler
addControl, handleSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternInheritancePage.ParentsButtonHandler

protected PatternInheritancePage.ParentsButtonHandler()
Method Detail

doHandleSelection

protected boolean doHandleSelection(ISelection selection_p)
Description copied from class: org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler
Handle selection to enable or disable the managed controls.

Specified by:
doHandleSelection in class org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler
Parameters:
selection_p - The selection.
Returns:
True means enable, false means disable.
See Also:
org.eclipse.egf.common.ui.toolkit.widgets.handler.SelectionChangedHandler#doHandleSelection(org.eclipse.jface.viewers.ISelection)

postCondition

protected boolean postCondition()
Possible post condition implementation.
If false, overall selection is discarded, else decision is up to doHandleSelection(ISelection).

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.