Changeset 718
- Timestamp:
- 08/30/12 17:04:16 (12 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/.classpath
r482 r718 7 7 </attributes> 8 8 </classpathentry> 9 <classpathentry kind="src" path="src/main/resources"/> 9 10 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> 10 11 <attributes> -
trunk/java-utils/pom.xml
r529 r718 9 9 <url>https://quest.informatik.uni-goettingen.de/svn/quest/trunk/java-utils</url> 10 10 </scm> 11 <dependencies> 12 <dependency> 13 <groupId>org.apache.commons</groupId> 14 <artifactId>commons-io</artifactId> 15 <version>1.3.2</version> 16 </dependency> 17 <dependency> 18 <groupId>commons-lang</groupId> 19 <artifactId>commons-lang</artifactId> 20 <version>2.1</version> 21 </dependency> 22 </dependencies> 11 23 <build> 12 24 <plugins> -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java
r669 r718 155 155 * otherwise 156 156 */ 157 p rivateCommand loadCMD(String className) {157 public Command loadCMD(String className) { 158 158 Command cmd = null; 159 159 try { … … 171 171 catch (ClassCastException e) { 172 172 Console.traceln(Level.WARNING, className + "found, but does not implement Command"); 173 } 174 return cmd; 175 } 176 177 /** 178 * <p> 179 * Helper method that loads a class and tries to cast it to {@link Command}. 180 * </p> 181 * 182 * @param className 183 * qualified name of the class (including package name) 184 * @return if class is available and implement {@link Command} and instance of the class, null 185 * otherwise 186 */ 187 public Command getCMD(String commandName) { 188 Command cmd = null; 189 for (int i = 0; cmd == null && i < commandPackageList.size(); i++) { 190 cmd = loadCMD(commandPackageList.get(i) + "." + cmdPrefix + commandName); 191 } 192 if (cmd == null) { // check if command is available as default command 193 cmd = loadCMD(defaultPackage + "." + cmdPrefix + commandName); 173 194 } 174 195 return cmd; -
trunk/quest-ui-core/.classpath
r527 r718 13 13 </attributes> 14 14 </classpathentry> 15 <classpathentry kind="src" path="src/main/resources"/> 15 16 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> 16 17 <attributes>
Note: See TracChangeset
for help on using the changeset viewer.