Changeset 929
- Timestamp:
- 10/17/12 11:54:37 (12 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-core-test/src/test/java/de/ugoe/cs/autoquest/plugin/PluginLoaderTest.java
r927 r929 25 25 import de.ugoe.cs.autoquest.plugin.PluginLoader; 26 26 import de.ugoe.cs.autoquest.plugin.PluginLoaderException; 27 import de.ugoe.cs.autoquest.plugin. QuestPlugin;27 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 28 28 import static org.junit.Assert.*; 29 29 … … 182 182 loader.load(); 183 183 184 Collection< QuestPlugin> plugins = loader.getPlugins();184 Collection<AutoQUESTPlugin> plugins = loader.getPlugins(); 185 185 186 186 assertEquals(1, plugins.size()); 187 QuestPlugin plugin = plugins.iterator().next();187 AutoQUESTPlugin plugin = plugins.iterator().next(); 188 188 assertNotNull(plugin); 189 189 assertEquals("Mock Plugin", plugin.getTitle()); … … 198 198 loader.load(); 199 199 } catch(PluginLoaderException e) { 200 e.getMessage().endsWith("not instance of QuestPlugin");200 e.getMessage().endsWith("not instance of AutoQUESTPlugin"); 201 201 } 202 202 } -
trunk/autoquest-plugin-core/src/main/java/de/ugoe/cs/autoquest/plugin/AutoQUESTPlugin.java
r927 r929 19 19 /** 20 20 * <p> 21 * Interface for QUEST plug-ins.21 * Interface for AutoQUEST plug-ins. 22 22 * </p> 23 23 * … … 25 25 * @version 1.0 26 26 */ 27 public interface QuestPlugin {27 public interface AutoQUESTPlugin { 28 28 29 29 /** -
trunk/autoquest-plugin-core/src/main/java/de/ugoe/cs/autoquest/plugin/PluginLoader.java
r927 r929 33 33 /** 34 34 * <p> 35 * This class provides the functionality to load QUEST plug-ins from a35 * This class provides the functionality to load AutoQUEST plug-ins from a 36 36 * pre-defined folder. 37 37 * </p> … … 54 54 * </p> 55 55 */ 56 private final Collection< QuestPlugin> plugins;56 private final Collection<AutoQUESTPlugin> plugins; 57 57 58 58 /** … … 77 77 } 78 78 this.pluginDir = pluginDir; 79 plugins = new LinkedList< QuestPlugin>();79 plugins = new LinkedList<AutoQUESTPlugin>(); 80 80 } 81 81 … … 112 112 } 113 113 try { 114 QuestPlugin pluginObject = (QuestPlugin) pluginClass114 AutoQUESTPlugin pluginObject = (AutoQUESTPlugin) pluginClass 115 115 .newInstance(); 116 116 plugins.add(pluginObject); … … 123 123 } catch (ClassCastException e) { 124 124 throw new PluginLoaderException("Class " + pluginClassName 125 + " not instance of QuestPlugin");125 + " not instance of AutoQUESTPlugin"); 126 126 } 127 127 } … … 232 232 /** 233 233 * <p> 234 * Checks if the name of a file indicates that it defines a QUEST plug-in.234 * Checks if the name of a file indicates that it defines a AutoQUEST plug-in. 235 235 * The structure of valid plug-in filenames is 236 236 * <code>quest-plugin-%PLUGIN_NAME%-version.jar</code>, where … … 241 241 * @param filename 242 242 * filename that is checked 243 * @return true if filename matches pattern of QUEST plug-in; false243 * @return true if filename matches pattern of AutoQUEST plug-in; false 244 244 * otherwise 245 245 */ … … 254 254 } 255 255 256 public Collection< QuestPlugin> getPlugins() {256 public Collection<AutoQUESTPlugin> getPlugins() { 257 257 return Collections.unmodifiableCollection(plugins); 258 258 } -
trunk/autoquest-plugin-core/src/main/java/de/ugoe/cs/autoquest/plugin/PluginLoaderException.java
r927 r929 18 18 * <p> 19 19 * This exception is thrown in case there is an error during the loading of 20 * QUEST plugins. Note that the failures during the loading may result in an20 * AutoQUEST plugins. Note that the failures during the loading may result in an 21 21 * invalid classpath and this exception should, therefore, be treated with 22 22 * appropriate care. -
trunk/autoquest-plugin-guitar/src/main/java/de/ugoe/cs/autoquest/plugin/guitar/GUITARPlugin.java
r927 r929 19 19 import java.util.List; 20 20 21 import de.ugoe.cs.autoquest.plugin. QuestPlugin;21 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 22 22 23 23 /** 24 24 * <p> 25 * Identifier class for the QUEST GUITAR plug-in.25 * Identifier class for the AutoQUEST GUITAR plug-in. 26 26 * </p> 27 27 * … … 29 29 * @version 1.0 30 30 */ 31 public class GUITARPlugin implements QuestPlugin {31 public class GUITARPlugin implements AutoQUESTPlugin { 32 32 33 33 /** … … 41 41 * (non-Javadoc) 42 42 * 43 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getTitle()43 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getTitle() 44 44 */ 45 45 @Override … … 51 51 * (non-Javadoc) 52 52 * 53 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getCommandPackages()53 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getCommandPackages() 54 54 */ 55 55 @Override -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCPlugin.java
r927 r929 19 19 import java.util.List; 20 20 21 import de.ugoe.cs.autoquest.plugin. QuestPlugin;21 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 22 22 23 23 /** 24 24 * <p> 25 * Identifier class for the QUEST JFC plug-in.25 * Identifier class for the AutoQUEST JFC plug-in. 26 26 * </p> 27 27 * … … 29 29 * @version 1.0 30 30 */ 31 public class JFCPlugin implements QuestPlugin {31 public class JFCPlugin implements AutoQUESTPlugin { 32 32 33 33 /** … … 42 42 * (non-Javadoc) 43 43 * 44 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getTitle()44 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getTitle() 45 45 */ 46 46 @Override … … 52 52 * (non-Javadoc) 53 53 * 54 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getCommandPackages()54 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getCommandPackages() 55 55 */ 56 56 @Override -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/EventGenerator.java
r927 r929 46 46 * <p> 47 47 * Translates sequences of windows messages into {@link Event}s that can be used by the 48 * QUEST core libraries.48 * AutoQUEST core libraries. 49 49 * </p> 50 50 * -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/MFCPlugin.java
r927 r929 19 19 import java.util.List; 20 20 21 import de.ugoe.cs.autoquest.plugin. QuestPlugin;21 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 22 22 23 23 /** 24 24 * <p> 25 * Identifier class for the QUEST MFC plug-in.25 * Identifier class for the AutoQUEST MFC plug-in. 26 26 * </p> 27 27 * … … 29 29 * @version 1.0 30 30 */ 31 public class MFCPlugin implements QuestPlugin {31 public class MFCPlugin implements AutoQUESTPlugin { 32 32 33 33 /** … … 41 41 * (non-Javadoc) 42 42 * 43 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getTitle()43 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getTitle() 44 44 */ 45 45 @Override … … 51 51 * (non-Javadoc) 52 52 * 53 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getCommandPackages()53 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getCommandPackages() 54 54 */ 55 55 @Override -
trunk/autoquest-plugin-php/src/main/java/de/ugoe/cs/autoquest/plugin/php/PHPPlugin.java
r927 r929 19 19 import java.util.List; 20 20 21 import de.ugoe.cs.autoquest.plugin. QuestPlugin;21 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 22 22 23 23 /** 24 24 * <p> 25 * Identifier class for the QUEST PHP plug-in.25 * Identifier class for the AutoQUEST PHP plug-in. 26 26 * </p> 27 27 * … … 29 29 * @version 1.0 30 30 */ 31 public class PHPPlugin implements QuestPlugin {31 public class PHPPlugin implements AutoQUESTPlugin { 32 32 33 33 /** … … 41 41 * (non-Javadoc) 42 42 * 43 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getTitle()43 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getTitle() 44 44 */ 45 45 @Override … … 51 51 * (non-Javadoc) 52 52 * 53 * @see de.ugoe.cs.autoquest.plugin. QuestPlugin#getCommandPackages()53 * @see de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin#getCommandPackages() 54 54 */ 55 55 @Override -
trunk/autoquest-runner/src/main/java/de/ugoe/cs/autoquest/ui/Runner.java
r927 r929 26 26 import de.ugoe.cs.autoquest.log4j.Log4JLogger; 27 27 import de.ugoe.cs.autoquest.plugin.PluginLoader; 28 import de.ugoe.cs.autoquest.plugin. QuestPlugin;28 import de.ugoe.cs.autoquest.plugin.AutoQUESTPlugin; 29 29 import de.ugoe.cs.autoquest.ui.swt.MainWindow; 30 30 import de.ugoe.cs.util.console.CommandExecuter; … … 100 100 pluginLoader.load(); 101 101 102 for ( QuestPlugin plugin : pluginLoader.getPlugins()) {102 for (AutoQUESTPlugin plugin : pluginLoader.getPlugins()) { 103 103 for (String commandPackage : plugin.getCommandPackages()) { 104 104 CommandExecuter.getInstance().addCommandPackage(commandPackage);
Note: See TracChangeset
for help on using the changeset viewer.