Examples of loadDefault()


Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

                IvySettings ivySettings = new IvySettings();
                if (javaProject != null) {
                    ivySettings.setBaseDir(javaProject.getProject().getLocation().toFile());
                }
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed (" + this.toString()
                                    + ")", e);
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

        if (settingsPath == null || settingsPath.trim().length() == 0) {
            // no settings specified, so take the default one
            if (ivy == null) {
                IvySettings ivySettings = createIvySettings();
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed: " + e.getMessage(),
                            e);
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

                    s.load(new URL(settingsFile));
                } else {
                    s.load(new File(settingsFile));
                }
            } else {
                s.loadDefault();
            }
        } catch (ParseException e) {
            throw new IvySettingsFileReadException(settingsFile, module.getName(), e);
        } catch (IOException e) {
            throw new IvySettingsFileReadException(settingsFile, module.getName(), e);
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

        if (settingsPath == null || settingsPath.trim().length() == 0) {
            // no settings specified, so take the default one
            if (ivy == null) {
                IvySettings ivySettings = createIvySettings();
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed: "
                                + e.getMessage(), e);
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

                }
                if (ivyConf != null) {
                    ivySettings.load(new File(ivyConf.getIvyConfPath()));
                    LOGGER.log(Level.INFO,"Configured Ivy using custom settings " + ivyConf.getIvyConfPath());
                } else {
                    ivySettings.loadDefault();
                    LOGGER.log(Level.INFO,"Configured Ivy using default 2.1 settings");
                }
                return Ivy.newInstance(ivySettings);
            }
            catch (Exception e) {
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()

                if (settingsLoc != null) {
                    ivySettings.load(settingsLoc);
                    if (verbose)
                        logger.println("Configured Ivy using custom settings " + settingsLoc.getAbsolutePath());
                } else {
                    ivySettings.loadDefault();
                    if (verbose)
                        logger.println("Configured Ivy using default 2.1 settings");
                }
                if (ivyBranch != null) {
                    ivySettings.setDefaultBranch(ivyBranch);
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor.loadDefault()

    @Override
    void setValue(T value, E tabElements) {
      FieldEditor fieldEditor = getFieldEditor(tabElements);
      fieldType.setStoreDefaultValue(fieldEditor.getPreferenceStore(),
          fieldEditor.getPreferenceName(), value);
      fieldEditor.loadDefault();
    }

    @Override
    T getValue(E tabElements) {
      FieldEditor fieldEditor = getFieldEditor(tabElements);
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor.loadDefault()

    for (Iterator<FieldEditor> i = this.fieldEditors.iterator(); i.hasNext();) {
      FieldEditor fieldEditor = (FieldEditor) i.next();
      if (fieldEditor != null) {
        fieldEditor.setPreferenceStore(this.store);
        if (isDefautLoaded) {
          fieldEditor.loadDefault();
        }
        else {
          fieldEditor.load();
        }
      }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor.loadDefault()

    for (Iterator<Object[]> i = this.fields.iterator(); i.hasNext();) {
      Object[] object = i.next();
      FieldEditor fieldEditor = (FieldEditor) object[0];
      fieldEditor.setPreferenceStore(this.store);
      if (isDefautLoaded) {
        fieldEditor.loadDefault();
      }
      else {
        fieldEditor.load();
      }
    }
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.