Package org.eclipse.core.runtime.internal.adaptor

Examples of org.eclipse.core.runtime.internal.adaptor.BasicLocation


    // get the parent location based on the system property. This will have been set on the
    // way in either by the caller/user or by main.  There will be no parent location if we are not
    // cascaded.
    URL parentLocation = computeSharedConfigurationLocation();
    if (parentLocation != null && !parentLocation.equals(configurationLocation.getURL())) {
      Location parent = new BasicLocation(null, parentLocation, true);
      ((BasicLocation) configurationLocation).setParent(parent);
    }
    initializeDerivedConfigurationLocations();
  }
View Full Code Here


    String userReadOnlySetting = FrameworkProperties.getProperty(property + READ_ONLY_AREA_SUFFIX);
    boolean readOnly = (userReadOnlySetting == null ? readOnlyDefault : Boolean.valueOf(userReadOnlySetting).booleanValue());
    // if the instance location is not set, predict where the workspace will be and
    // put the instance area inside the workspace meta area.
    if (location == null)
      return new BasicLocation(property, defaultLocation, readOnly);
    String trimmedLocation = location.trim();
    if (trimmedLocation.equalsIgnoreCase(NONE))
      return null;
    if (trimmedLocation.equalsIgnoreCase(NO_DEFAULT))
      return new BasicLocation(property, null, readOnly);
    if (trimmedLocation.startsWith(USER_HOME)) {
      String base = substituteVar(location, USER_HOME, PROP_USER_HOME);
      location = new File(base, userDefaultAppendage).getAbsolutePath();
    } else if (trimmedLocation.startsWith(USER_DIR)) {
      String base = substituteVar(location, USER_DIR, PROP_USER_DIR);
      location = new File(base, userDefaultAppendage).getAbsolutePath();
    }
    URL url = buildURL(location, true);
    BasicLocation result = null;
    if (url != null) {
      result = new BasicLocation(property, null, readOnly);
      result.setURL(url, false);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.internal.adaptor.BasicLocation

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.