|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.ui.editor.page.ExternalSelectionManager
public class ExternalSelectionManager
A default implementation of an external selection manager.
Handlers are registered to the type of the first selected object.
It is assumed that every other object in the selection is of the same type.
Thus handlers registering to this manager are most likely to deal with the first selected object only (although that is not mandatory).
Constructor Summary | |
---|---|
ExternalSelectionManager()
|
Method Summary | |
---|---|
void |
addExternalHandlerFor(Class selectedObjectType_p,
IExternalSelectionHandler handler_p)
Add a new handler for given type. |
void |
dispose()
Dispose. |
void |
fireExternalSelection(Object firstSelectedObject_p,
IStructuredSelection selection_p)
Fire an external selection. |
void |
removeExternalHandler(IExternalSelectionHandler handler_p)
Remove given handler from all possible registrations. |
void |
removeExternalHandler(IExternalSelectionHandler handler_p,
Class type_p)
Remove given handler for given type. |
void |
removeHandlersForType(Class type_p)
Remove all handlers for given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalSelectionManager()
Method Detail |
---|
public void dispose()
public void addExternalHandlerFor(Class selectedObjectType_p, IExternalSelectionHandler handler_p)
selectedObjectType_p
- The selected object type, must be not null.handler_p
- The new handler, must be not null.public void removeHandlersForType(Class type_p)
type_p
- The type of the selected object.public void removeExternalHandler(IExternalSelectionHandler handler_p)
handler_p
- The handler to remove, must be not null.public void removeExternalHandler(IExternalSelectionHandler handler_p, Class type_p)
handler_p
- The handler to remove, must be not null.type_p
- The type the handler is to be removed for. If null, the handler is removed for all types. This is strictly equivalent to calling
removeExternalHandler(IExternalSelectionHandler)
then.public void fireExternalSelection(Object firstSelectedObject_p, IStructuredSelection selection_p)
IExternalSelectionProvider
fireExternalSelection
in interface IExternalSelectionProvider
firstSelectedObject_p
- The first selected object of the selection.selection_p
- The whole selection.org.eclipse.egf.pattern.ui.editor.page.IExternalSelectionProvider#fireExternalSelection(java.lang.Object,
org.eclipse.jface.viewers.IStructuredSelection)
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.