Changeset 186 for trunk/JavaHelperLib/src/de/ugoe/cs/util/console
- Timestamp:
- 09/23/11 03:44:15 (13 years ago)
- Location:
- trunk/JavaHelperLib/src/de/ugoe/cs/util/console
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/CommandExecuter.java
r175 r186 108 108 */ 109 109 public void exec(String command) { 110 Console.commandNotification(command); 110 111 Command cmd = null; 111 112 CommandParser parser = new CommandParser(); -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/Console.java
r175 r186 214 214 } 215 215 216 /** 217 * <p> 218 * Called by {@link CommandExecuter#exec(String)}. 219 * </p> 220 * 221 * @param command 222 * command that is executed 223 */ 224 static void commandNotification(String command) { 225 if (theInstance == null) { 226 getInstance(); 227 } 228 for (ConsoleObserver observer : theInstance.observers) { 229 observer.commandNotification(command); 230 } 231 } 232 216 233 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/ConsoleObserver.java
r185 r186 60 60 * string of the command. 61 61 */ 62 public void command Executed(String command);62 public void commandNotification(String command); 63 63 64 64 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/TextConsole.java
r185 r186 123 123 * </p> 124 124 * 125 * @see de.ugoe.cs.util.console.ConsoleObserver#command Executed(java.lang.String)125 * @see de.ugoe.cs.util.console.ConsoleObserver#commandNotification(java.lang.String) 126 126 */ 127 127 @Override 128 public void command Executed(String command) {128 public void commandNotification(String command) { 129 129 // ignores the notification 130 130 }
Note: See TracChangeset
for help on using the changeset viewer.