public class EPackageNodeUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
EPackageNodeUtil.IProcessor |
Modifier and Type | Method and Description |
---|---|
static void |
checkOrUncheckEqualNodes(ContainerCheckedTreeViewer viewer,
ChooserNode[] roots,
ChooserNode element,
boolean checked)
Checks or unchecks all the nodes equal to the element if it is an EPackageNode
Recursively processes all the element's children as the viewer does not call
a selection event on them
|
static ChooserNode[] |
collectEqualNodes(ChooserNode[] roots,
String packUri)
Collects nodes of the same package as
template |
static Set<String> |
getMetamodelIds(Object[] checked) |
static boolean |
walkNodes(ChooserNode[] roots,
EPackageNodeUtil.IProcessor processor) |
public static ChooserNode[] collectEqualNodes(ChooserNode[] roots, String packUri)
template
root
- - tree node to start withnodes
- - collection to put equal elements intotemplate
- - the element which is comared with otherspublic static boolean walkNodes(ChooserNode[] roots, EPackageNodeUtil.IProcessor processor)
public static void checkOrUncheckEqualNodes(ContainerCheckedTreeViewer viewer, ChooserNode[] roots, ChooserNode element, boolean checked)
viewer
- - tree viewer containing the elementelement
- - the node being processeschecked
- - checked state of the element
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.