Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-05-30 19:00:34 +0000
committeratikhomirov2006-05-30 19:00:34 +0000
commit98aba75f45d01d8670c9a802be9af873bf2867fc (patch)
treeb34d0545d72417a331c71fa26483c3cd05d254ad /plugins/org.eclipse.gmf.graphdef.codegen
parentefaddf1a381c8021a2261628a97fb1ff44433f9e (diff)
downloadorg.eclipse.gmf-tooling-98aba75f45d01d8670c9a802be9af873bf2867fc.tar.gz
org.eclipse.gmf-tooling-98aba75f45d01d8670c9a802be9af873bf2867fc.tar.xz
org.eclipse.gmf-tooling-98aba75f45d01d8670c9a802be9af873bf2867fc.zip
need to provide dependencies
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/internal/graphdef/codegen/CanvasProcessor.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/internal/graphdef/codegen/CanvasProcessor.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/internal/graphdef/codegen/CanvasProcessor.java
index 87b53d43d..f00f66e95 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/internal/graphdef/codegen/CanvasProcessor.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/internal/graphdef/codegen/CanvasProcessor.java
@@ -11,6 +11,8 @@
*/
package org.eclipse.gmf.internal.graphdef.codegen;
+import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
@@ -28,6 +30,7 @@ import org.eclipse.gmf.gmfgraph.FigureGallery;
import org.eclipse.gmf.gmfgraph.GMFGraphFactory;
import org.eclipse.gmf.gmfgraph.GMFGraphPackage;
import org.eclipse.gmf.gmfgraph.Node;
+import org.eclipse.gmf.gmfgraph.util.FigureQualifiedNameSwitch;
import org.eclipse.gmf.graphdef.codegen.NamingStrategy;
import org.eclipse.gmf.graphdef.codegen.StandaloneGenerator.Config;
import org.eclipse.gmf.graphdef.codegen.StandaloneGenerator.Processor;
@@ -78,6 +81,15 @@ public class CanvasProcessor extends Processor {
myCallback = null;
}
+ public String[] getRequiredBundles(FigureQualifiedNameSwitch fqnSwitch) {
+ ArrayList/*<String>*/ rv = new ArrayList();
+ for (Iterator galleries = myInput.getFigures().iterator(); galleries.hasNext();) {
+ FigureGallery next = (FigureGallery) galleries.next();
+ rv.addAll(Arrays.asList(fqnSwitch.getDependencies(next)));
+ }
+ return (String[]) rv.toArray(new String[rv.size()]);
+ }
+
private void handleNodes() throws InterruptedException {
for (Iterator it = myInput.getNodes().iterator(); it.hasNext();) {
Node next = (Node) it.next();

Back to the top