Package org.impalaframework.command.framework

Examples of org.impalaframework.command.framework.CommandInfo


  public CommandDefinition getCommandDefinition() {

    // note that globalOverrides is true, so that the user will not be
    // prompted for the module name if it already there
    CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
        "Please enter directory to use as current working directory.", null, null, false, false, true, false);

    CommandDefinition definition = new CommandDefinition("Changes working directory");
    definition.add(info);
    return definition;
View Full Code Here


    public CommandDefinition getCommandDefinition() {

        // note that globalOverrides is true, so that the user will not be
        // prompted for the module name if it already there
        CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
                "Please enter directory to use as current working directory.", null, null, false, false, true, false);

        CommandDefinition definition = new CommandDefinition("Changes working directory");
        definition.add(info);
        return definition;
View Full Code Here

        foundClasses = handler.foundFiles;
        return true;
    }

    public CommandDefinition getCommandDefinition() {
        CommandInfo commandInfo = new CommandInfo("class", "Type (class or interface)", "Please specify class search text",
                null, null, true, false, false, false) {

            @Override
            public String validate(String input) {
                String superValidate = super.validate(input);
View Full Code Here

    public void addTestListener(TestCommandListener listener) {
        this.listeners.add(listener);
    }
   
    public CommandDefinition getCommandDefinition() {
        CommandInfo commandInfo = new CommandInfo("commandText", "Command text", "Please enter your command text",
                null, null, false, false, false, false);

        CommandDefinition commandDefinititon = new CommandDefinition();
        commandDefinititon.add(commandInfo);
        return commandDefinititon; 
View Full Code Here

    public CommandDefinition getCommandDefinition() {

        // note that globalOverrides is true, so that the user will not be
        // prompted for the module name if it already there
        CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
                "Please enter directory to use as current working directory.", null, null, false, false, true, false);

        CommandDefinition definition = new CommandDefinition("Changes working directory");
        definition.add(info);
        return definition;
View Full Code Here

    public void addTestListener(TestCommandListener listener) {
        this.listeners.add(listener);
    }
   
    public CommandDefinition getCommandDefinition() {
        CommandInfo commandInfo = new CommandInfo("commandText", "Command text", "Please enter your command text",
                null, null, false, false, false, false);

        CommandDefinition commandDefinititon = new CommandDefinition();
        commandDefinititon.add(commandInfo);
        return commandDefinititon; 
View Full Code Here

        for (int i = 0; i < extraLines.length; i++) {
            extraLines[i] = (i + 1) + " " + alternatives[i];
        }

        CommandInfo ci1 = new CommandInfo("selection", "Selected value", "More than one alternative was found.\nPlease choose option by entering digit corresponding with selection",
                null,
                extraLines, true, false, false, false) {
            @Override
            public String validate(String input) {
                int selection = -1;
View Full Code Here

  public CommandDefinition getCommandDefinition() {

    // note that globalOverrides is true, so that the user will not be
    // prompted for the module name if it already there
    CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
        "Please enter directory to use as current working directory.", null, null, false, false, true, false);

    CommandDefinition definition = new CommandDefinition("Changes working directory");
    definition.add(info);
    return definition;
View Full Code Here

  public void addTestListener(TestCommandListener listener) {
    this.listeners.add(listener);
  }
 
  public CommandDefinition getCommandDefinition() {
    CommandInfo commandInfo = new CommandInfo("commandText", "Command text", "Please enter your command text",
        null, null, false, false, false, false);

    CommandDefinition commandDefinititon = new CommandDefinition();
    commandDefinititon.add(commandInfo);
    return commandDefinititon; 
View Full Code Here

    for (int i = 0; i < extraLines.length; i++) {
      extraLines[i] = (i + 1) + " " + alternatives[i];
    }

    CommandInfo ci1 = new CommandInfo("selection", "Selected value", "More than one alternative was found.\nPlease choose option by entering digit corresponding with selection",
        null,
        extraLines, true, false, false, false) {
      @Override
      public String validate(String input) {
        int selection = -1;
View Full Code Here

TOP

Related Classes of org.impalaframework.command.framework.CommandInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.