|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.tools.ToolUtilities
Utilities for Tools
.
Constructor Summary | |
ToolUtilities()
|
Method Summary | |
static void |
filterEditPartsUnderstanding(List list,
Request request)
Filters the given list of EditParts so that the list only contains the EditParts that understand the given request (i.e. return true from
EditPart.understandsRequest(Request) when passed the given request). |
static List |
getSelectionWithoutDependants(EditPartViewer viewer)
Returns a list containing the top level selected edit parts based on the viewer's selection. |
static List |
getSelectionWithoutDependants(List selectedParts)
Returns a list containing the top level selected edit parts based on the passed in list of selection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ToolUtilities()
Method Detail |
public static List getSelectionWithoutDependants(EditPartViewer viewer)
viewer
- the viewer
public static List getSelectionWithoutDependants(List selectedParts)
selectedParts
- the complete selection
public static void filterEditPartsUnderstanding(List list, Request request)
true
from
EditPart.understandsRequest(Request)
when passed the given request).
list
- the list of edit parts to filterrequest
- the request
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |