|
Eclipse GEF 3.8.1.201208200205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.tools.ToolUtilities
public class ToolUtilities
Utilities for Tools
.
Constructor Summary | |
---|---|
ToolUtilities()
|
Method Summary | |
---|---|
static void |
filterEditPartsUnderstanding(java.util.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 EditPart |
findCommonAncestor(EditPart ll,
EditPart rr)
Returns the common parent editpart for given pair of EditParts. |
static java.util.List |
getSelectionWithoutDependants(EditPartViewer viewer)
Returns a list containing the top level selected edit parts based on the viewer's selection. |
static java.util.List |
getSelectionWithoutDependants(java.util.List selectedParts)
Returns a list containing the top level selected edit parts based on the passed in list of selection. |
static boolean |
isAncestorContainedIn(java.util.Collection c,
EditPart ep)
Checks if collection contains any ancestor of editpart ep |
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 java.util.List getSelectionWithoutDependants(EditPartViewer viewer)
viewer
- the viewer
public static java.util.List getSelectionWithoutDependants(java.util.List selectedParts)
selectedParts
- the complete selection
public static void filterEditPartsUnderstanding(java.util.List list, Request request)
true
from EditPart.understandsRequest(Request)
when
passed the given request).
list
- the list of edit parts to filterrequest
- the requestpublic static boolean isAncestorContainedIn(java.util.Collection c, EditPart ep)
ep
c
- - collection of editpartsep
- - the editparts to check ancestors for
true
if collection contains any ancestor(s) of the
editpart ep
public static EditPart findCommonAncestor(EditPart ll, EditPart rr)
ll
- the first editpartrr
- the second editpart
|
Eclipse GEF 3.8.1.201208200205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |