EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.actions
Class AbstractUiHandler

java.lang.Object
  extended by AbstractHandler
      extended by org.eclipse.egf.core.ui.actions.AbstractUiHandler
Direct Known Subclasses:
ConvertPlugin2FactoryComponentHandler

public abstract class AbstractUiHandler
extends AbstractHandler

This class extends the AbstractHandler implementation class to provide a method to get the selected elements matching an expected type.


Constructor Summary
AbstractUiHandler()
           
 
Method Summary
protected
<T> List<T>
getSelection(ExecutionEvent event_p, Class<T> expectedSelectionType_p)
          Return the selected objects in current selection matching given expected type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUiHandler

public AbstractUiHandler()
Method Detail

getSelection

protected <T> List<T> getSelection(ExecutionEvent event_p,
                                   Class<T> expectedSelectionType_p)
Return the selected objects in current selection matching given expected type.

Parameters:
event_p -
expectedSelectionType_p -
Returns:
an empty list if no object is found matching expected type.

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.