Changeset 533 for trunk/quest-runner/src/main/java
- Timestamp:
- 08/08/12 10:20:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-runner/src/main/java/de/ugoe/cs/quest/ui/Runner.java
r526 r533 1 1 package de.ugoe.cs.quest.ui; 2 2 3 import java.io.File; 3 4 import java.io.IOException; 4 5 import java.util.List; … … 9 10 import joptsimple.OptionSpec; 10 11 import de.ugoe.cs.quest.log4j.Log4JLogger; 12 import de.ugoe.cs.quest.plugin.PluginLoader; 13 import de.ugoe.cs.quest.plugin.QuestPlugin; 11 14 import de.ugoe.cs.quest.ui.swt.MainWindow; 12 15 import de.ugoe.cs.util.console.CommandExecuter; … … 46 49 */ 47 50 public static void main(String[] args) { 51 48 52 CommandExecuter.getInstance().addCommandPackage( 49 53 "de.ugoe.cs.quest.ui.commands"); 50 54 CommandExecuter.getInstance().addCommandPackage( 51 55 "de.ugoe.cs.quest.ui.swt.commands"); 56 57 // The following four command packages are added automatically, once the 58 // plugin-mechanism works correctly. Hence, these calls should be 59 // removed then. 52 60 CommandExecuter.getInstance().addCommandPackage( 53 61 "de.ugoe.cs.quest.plugin.mfc.commands"); … … 58 66 CommandExecuter.getInstance().addCommandPackage( 59 67 "de.ugoe.cs.quest.plugin.jfc.commands"); 68 69 /* 70 * Code for loading plugins. Should be uncommented once the 71 * plugin-mechanism works correctly. 72 * 73 * PluginLoader pluginLoader = new PluginLoader(new File("plugins")); 74 * pluginLoader.load(); 75 * 76 * for( QuestPlugin plugin : pluginLoader.getPlugins()) { for( String 77 * commandPackage : plugin.getCommandPackages()) { 78 * CommandExecuter.getInstance().addCommandPackage(commandPackage); } } 79 */ 60 80 61 81 OptionParser parser = new OptionParser();
Note: See TracChangeset
for help on using the changeset viewer.