summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-31 23:53:39 +0200
committerMichael Bien <[email protected]>2010-03-31 23:53:39 +0200
commit7d496e943b7428983216a286404aec5d640e2f7c (patch)
tree525e3eaca22d0f02cbb31a1ebb86a38142fa9840 /src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java
parentefd20749b7142798163be29253f01b9e914e1b15 (diff)
fixed generated imports rudimentary (not DRY).. cleanup in work.
Diffstat (limited to 'src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java')
-rw-r--r--src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java
index 9750c13df..54aa759da 100644
--- a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java
+++ b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java
@@ -43,6 +43,7 @@ import com.sun.gluegen.*;
import java.lang.reflect.*;
import java.io.*;
import java.util.*;
+import java.util.ArrayList;
public class BuildComposablePipeline {
@@ -348,22 +349,19 @@ public class BuildComposablePipeline {
clazzList.add(prologClassOpt);
}
- String[] importNames = new String[clazzList.size() + 2];
- {
- int i = 0;
- importNames[i++] = "java.io.*";
- importNames[i++] = "javax.media.opengl.*";
- for (Iterator<Class<?>> iter = clazzList.iterator(); iter.hasNext();) {
- importNames[i++] = iter.next().getName();
- }
+ ArrayList<String> imports = new ArrayList<String>();
+ imports.add("java.io.*");
+ imports.add("javax.media.opengl.*");
+ imports.add("com.jogamp.gluegen.runtime.*");
+ for (Class<?> clasS : clazzList) {
+ imports.add(clasS.getName());
}
CodeGenUtils.emitJavaHeaders(output,
outputPackage,
outputClassName,
- "com.jogamp.gluegen.runtime", // FIXME: should make configurable
true,
- importNames,
+ imports,
new String[]{"public"},
ifNames,
null,