wlu: practice guidance tree implementation
diff --git a/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeItemProvider.java b/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeItemProvider.java
index b273040..78964b6 100644
--- a/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeItemProvider.java
+++ b/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeItemProvider.java
@@ -82,7 +82,7 @@
ret.addAll(subgroupChildren);
} else {
PracticeSubgroupItemProvider sub = new PracticeSubgroupItemProvider(
- getAdapterFactory(), key, getImageObject(key));
+ getAdapterFactory(), key, getImageObject(key), subgroupChildren);
ret.add(sub);
}
}
diff --git a/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeSubgroupItemProvider.java b/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeSubgroupItemProvider.java
index 38c46be..48d828a 100644
--- a/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeSubgroupItemProvider.java
+++ b/1.5/plugins/org.eclipse.epf.library.edit/src/org/eclipse/epf/library/edit/configuration/PracticeSubgroupItemProvider.java
@@ -12,6 +12,7 @@
import java.util.Collection;
import java.util.Collections;
+import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.ecore.EObject;
@@ -36,6 +37,8 @@
private String label;
private Object parent;
+
+ private List children;
protected IFilter filter;
@@ -45,10 +48,11 @@
* Creates a new instance.
*/
public PracticeSubgroupItemProvider(AdapterFactory adapterFactory,
- String name, Object image) {
+ String name, Object image, List children) {
super(adapterFactory);
label = name;
this.image = image;
+ this.children = children;
}
/*
@@ -57,7 +61,7 @@
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#getChildren(java.lang.Object)
*/
public Collection getChildren(Object object) {
- return Collections.EMPTY_LIST;
+ return children == null ? Collections.EMPTY_LIST : children;
}
/*