Package org.eclipse.gef.util
Class EditPartUtilities
java.lang.Object
org.eclipse.gef.util.EditPartUtilities
Utility class comprising functions related to
EditPart
s- Since:
- 3.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedHashSet<? extends GraphicalEditPart>
getAllChildren
(GraphicalEditPart parentEditPart) Returns the transitive child edit part set of the given parentGraphicalEditPart
.static HashSet
getAllNestedConnectionEditParts
(GraphicalEditPart graphicalEditPart) Returns the transitive nested connection edit parts.static HashSet
getNestedConnectionEditParts
(GraphicalEditPart graphicalEditPart) Returns the set ofConnectionEditPart
s that are linked to the child edit parts of the givenGraphicalEditPart
.
-
Method Details
-
getAllChildren
public static LinkedHashSet<? extends GraphicalEditPart> getAllChildren(GraphicalEditPart parentEditPart) Returns the transitive child edit part set of the given parentGraphicalEditPart
.- Parameters:
parentEditPart
- the parent graphical edit part for which to retrieve the transitive child edit part set.- Returns:
- the transitive child edit part set
-
getAllNestedConnectionEditParts
Returns the transitive nested connection edit parts.- Parameters:
graphicalEditPart
- the graphical edit part- Returns:
- the transitive nested connection edit parts
-
getNestedConnectionEditParts
Returns the set ofConnectionEditPart
s that are linked to the child edit parts of the givenGraphicalEditPart
.- Parameters:
graphicalEditPart
- the graphical edit part- Returns:
- the set of child
ConnectionEditPart
s for the givenGraphicalEditPart
-