Exemple #1
0
  /**
   * This constructor is called to create a resource configuration defined by an extension point in
   * a plugin manifest file, or returned by a dynamic element provider
   *
   * @param parent The IConfiguration parent of this resource configuration
   * @param element The resource configuration definition from the manifest file or a dynamic
   *     element provider
   */
  public ResourceConfiguration(
      IConfiguration parent, IManagedConfigElement element, String managedBuildRevision) {
    super(parent, element, true);
    isExtensionResourceConfig = true;

    // setup for resolving
    resolved = false;

    setManagedBuildRevision(managedBuildRevision);
    loadFromManifest(element);

    // Hook me up to the Managed Build Manager
    ManagedBuildManager.addExtensionResourceConfiguration(this);

    // Load the tool children
    IManagedConfigElement[] tools = element.getChildren(ITool.TOOL_ELEMENT_NAME);
    for (int n = 0; n < tools.length; ++n) {
      Tool toolChild = new Tool(this, tools[n], getManagedBuildRevision());
      getToolList().add(toolChild);
      getToolMap().put(toolChild.getId(), toolChild);
    }

    setDirty(false);
  }