Examples of OptionHandler


Examples of org.eclim.plugin.adt.preference.OptionHandler

    super.initialize(name);

    // force loading of the Sdk
    Sdk.getCurrent();

    Preferences.addOptionHandler("com.android.ide.eclipse.adt", new OptionHandler());
    ProjectNatureFactory.addNature("android", NATURE);
    ProjectManagement.addProjectManager(NATURE, new AndroidProjectManager());

    Preferences preferences = Preferences.getInstance();
    Option option = new Option();
View Full Code Here

Examples of org.eclim.plugin.jdt.preference.OptionHandler

    // initialize variables.
    initializeJreSrc();
    initializeVars(VARIABLES);

    Preferences.addOptionHandler("org.eclipse.jdt", new OptionHandler());
    ProjectNatureFactory.addNature("java", NATURE);
    ProjectManagement.addProjectManager(NATURE, new JavaProjectManager());

    PreferenceFactory.addPreferences(NATURE,
      "JDT org.eclim.java.logging.impl commons-logging " +
View Full Code Here

Examples of org.eclim.plugin.pdt.preference.OptionHandler

    super.initialize(name);

    ProjectNatureFactory.addNature("php", PHPNature.ID);
    ProjectManagement.addProjectManager(PHPNature.ID, new PhpProjectManager());

    Preferences.addOptionHandler("org.eclipse.php", new OptionHandler());
    PreferenceFactory.addOptions("org.eclipse.php.core.PHPNature",
      "PDT org.eclipse.php.core.phpVersion (?i)php(?:4|5|5_3)"
    );

    try{
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

     *
     * @param setter the setter for the type
     * @param a the Argument
     */
    public void addArgument(Setter setter, Argument a) {
        OptionHandler h = createOptionHandler(new OptionDef(a,setter.isMultiValued()),setter);
      int index = a.index();
      // make sure the argument will fit in the list
      while (index >= arguments.size()) {
        arguments.add(null);
      }
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

        }
        return true;
    }

    private OptionHandler findOptionHandler(String name) {
    OptionHandler handler = findOptionByName(name);
    if (handler==null) {
      // Have not found by its name, maybe its a property?
      // Search for parts of the name (=prefix) - most specific first
      for (int i=name.length(); i>1; i--) {
        String prefix = name.substring(0, i);
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

        else
            return new FieldSetter(bean,f);
    }

    private void addArgument(Setter setter, Argument a) {
        OptionHandler h = createOptionHandler(new OptionDef(a,setter.isMultiValued()),setter);
      int index = a.index();
      // make sure the argument will fit in the list
      while (index >= arguments.size()) {
        arguments.add(null);
      }
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

        }
      arguments.set(index,h);
    }

    private void addOption(Setter setter, Option o) {
        OptionHandler h = createOptionHandler(new NamedOptionDef(o,setter.isMultiValued()),setter);
        checkOptionNotInMap(o.name());
        for (String alias : o.aliases()) {
          checkOptionNotInMap(alias);
        }
        options.add(h);
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

            if(handler.option.required() && !present.contains(handler))
                throw new CmdLineException(this, Messages.REQUIRED_ARGUMENT_MISSING.format(handler.option.toString()));
    }
   
  private OptionHandler findOptionHandler(String name) {
    OptionHandler handler = findOptionByName(name);
    if (handler==null) {
      // Have not found by its name, maybe its a property?
      // Search for parts of the name (=prefix) - most specific first
      for (int i=name.length(); i>1; i--) {
        String prefix = name.substring(0, i);
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

     *
     * @param setter the setter for the type
     * @param a the Argument
     */
    public void addArgument(Setter setter, Argument a) {
        OptionHandler h = createOptionHandler(new OptionDef(a,setter.isMultiValued()),setter);
      int index = a.index();
      // make sure the argument will fit in the list
      while (index >= arguments.size()) {
        arguments.add(null);
      }
View Full Code Here

Examples of org.kohsuke.args4j.spi.OptionHandler

            if(handler.option.required() && !present.contains(handler))
                throw new CmdLineException(this, Messages.REQUIRED_ARGUMENT_MISSING.format(handler.option.toString()));
    }

  private OptionHandler findOptionHandler(String name) {
    OptionHandler handler = findOptionByName(name);
    if (handler==null) {
      // Have not found by its name, maybe its a property?
      // Search for parts of the name (=prefix) - most specific first
      for (int i=name.length(); i>1; i--) {
        String prefix = name.substring(0, i);
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.