Examples of OptionHandler


Examples of org.springframework.boot.cli.command.options.OptionHandler

*/
public class OptionParsingCommandTests {

  @Test
  public void optionHelp() {
    OptionHandler handler = new OptionHandler();
    handler.option("bar", "Bar");
    OptionParsingCommand command = new OptionParsingCommand("foo", "Foo", handler) {
    };
    assertThat(command.getHelp(), containsString("--bar"));
  }
View Full Code Here

Examples of weka.core.OptionHandler

          success = false;
        }
        if (!success) {
          // load options from serialized data  ('-l' is automatically erased!)
          XMLClassifier xmlserial = new XMLClassifier();
          OptionHandler cl = (OptionHandler) xmlserial.read(Utils.getOption('l', options));

          // merge options
          optionsTmp = new String[options.length + cl.getOptions().length];
          System.arraycopy(cl.getOptions(), 0, optionsTmp, 0, cl.getOptions().length);
          System.arraycopy(options, 0, optionsTmp, cl.getOptions().length, options.length);
          options = optionsTmp;
        }
      }

      noCrossValidation = Utils.getFlag("no-cv", options);
View Full Code Here

Examples of y.option.OptionHandler

    private IncrementalHierarchicLayoutModule createIncrementalHierarchicLayoutModule() {
        IncrementalHierarchicLayoutModule layoutModule = new IncrementalHierarchicLayoutModule();

        layoutModule.setBufferedMode(true);

        OptionHandler options = layoutModule.getOptionHandler();
        OptionItem item = options.getItem("GROUP_LAYERING_STRATEGY");
        item.setValue("RECURSIVE_LAYERING");
        item = options.getItem("SELECTED_ELEMENTS_INCREMENTALLY");
        item.setValue(true);

        return layoutModule;
    }
View Full Code Here

Examples of y.option.OptionHandler

    private SmartOrganicLayoutModule createSmartOrganicLayoutModule() {
        SmartOrganicLayoutModule layoutModule = new SmartOrganicLayoutModule();

        layoutModule.setBufferedMode(true);

        OptionHandler options = layoutModule.getOptionHandler();
        OptionItem item = options.getItem("AVOID_NODE_EDGE_OVERLAPS");
        item.setValue(true);

        item = options.getItem("MINIMAL_NODE_DISTANCE");
        item.setValue(30d);

        item = options.getItem("SCOPE");
        item.setValue("MAINLY_SUBSET");

        item = options.getItem("ACTIVATE_DETERMINISTIC_MODE");
        item.setValue(true);

        return layoutModule;
    }
View Full Code Here

Examples of y.option.OptionHandler

    /**
     * {@inheritDoc}
     */
    public void actionPerformed(ActionEvent arg0) {
        OptionHandler handler = fGraph.getLayoutModule().getOptionHandler();
        if (handler.showEditor()) {
            fGraph.updateLayoutModule(fGraph.getLayoutModule());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.