Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / core / src / net / sf / openrocket / plugin / example / ExampleMain.java
diff --git a/core/src/net/sf/openrocket/plugin/example/ExampleMain.java b/core/src/net/sf/openrocket/plugin/example/ExampleMain.java
new file mode 100644 (file)
index 0000000..aea94be
--- /dev/null
@@ -0,0 +1,21 @@
+package net.sf.openrocket.plugin.example;
+
+import net.sf.openrocket.plugin.framework.JSPFPluginFactory;
+import net.sf.openrocket.plugin.framework.PluginFactory;
+
+public class ExampleMain {
+       
+       
+       public static void main(String[] args) {
+               PluginFactory factory = new JSPFPluginFactory();
+               
+               System.out.println("Plugins:");
+               System.out.println("---------");
+               for (ExamplePluginInterface plugin : factory.getPlugins(ExamplePluginInterface.class)) {
+                       plugin.print();
+               }
+               System.out.println("---------");
+       }
+       
+       
+}