Changeset 990


Ignore:
Timestamp:
01/19/16 12:45:36 (8 years ago)
Author:
bln4
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r987 r990  
    4545import org.expeditee.items.Item;
    4646import org.expeditee.items.ItemUtils;
     47import org.expeditee.items.Text;
    4748import org.expeditee.reflection.PackageLoader;
    4849import org.expeditee.simple.SString;
     
    426427                //      if this is not the name of a method, it may be the name of an agent
    427428                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);
    429433                        return null;
    430434                }
     
    9981002         */
    9991003        private static String getName(String command) {
    1000                 command = command.trim();
    10011004                if (command.startsWith("@"))
    10021005                        command = command.substring(1);
     1006                command = command.trim();
    10031007                if (command.indexOf(" ") < 0)
    10041008                        return command;
Note: See TracChangeset for help on using the changeset viewer.