Changeset 990
- Timestamp:
- 01/19/16 12:45:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r987 r990 45 45 import org.expeditee.items.Item; 46 46 import org.expeditee.items.ItemUtils; 47 import org.expeditee.items.Text; 47 48 import org.expeditee.reflection.PackageLoader; 48 49 import org.expeditee.simple.SString; … … 426 427 // if this is not the name of a method, it may be the name of an agent 427 428 if (firstCanditate == null) { 428 LaunchAgent(actionName, command, source, launcher); 429 String commandAgent = command.substring(actionName.length()).trim(); 430 if(commandAgent.length() == 0 && launcher instanceof Text && launcher.isFloating()) 431 commandAgent = launcher.getText(); 432 LaunchAgent(actionName, commandAgent, source, launcher); 429 433 return null; 430 434 } … … 998 1002 */ 999 1003 private static String getName(String command) { 1000 command = command.trim();1001 1004 if (command.startsWith("@")) 1002 1005 command = command.substring(1); 1006 command = command.trim(); 1003 1007 if (command.indexOf(" ") < 0) 1004 1008 return command;
Note:
See TracChangeset
for help on using the changeset viewer.