Examples of ILibInfo


Examples of org.davinci.ajaxLibrary.ILibInfo

    }
    protected String[] getAttributeNames() {
        return new String[] { "id", "name", "version", "virtualRoot", "base", "required" };
    }
  protected String getAttributeValue(String attribute, Object object) {
      ILibInfo libInfo = (ILibInfo) object;
      if(attribute.equalsIgnoreCase("id")){
        return libInfo.getId();
      }
      if(attribute.equalsIgnoreCase("name")){
        return libInfo.getName();
      }
      if(attribute.equalsIgnoreCase("version")){
        return libInfo.getVersion();
      }
      if(attribute.equalsIgnoreCase("virtualRoot")){
        return libInfo.getVirtualRoot();
      }
      if(attribute.equalsIgnoreCase("base")){
        return null;
      }
      if(attribute.equalsIgnoreCase("required")){
        return libInfo.getRequired();
      }
     
    return null;
 
  }
View Full Code Here

Examples of org.davinci.ajaxLibrary.ILibInfo

          base = attributeValues[i];
        if(attributeNames[i].equalsIgnoreCase("required"))
          required = attributeValues[i];
      }
     
      ILibInfo link = new LibInfo(id,name,version,virtualRoot, required);
        return link;
    }
View Full Code Here

Examples of org.davinci.ajaxLibrary.ILibInfo

    allLibs.addAll(Arrays.asList(this.getLibSettings(base).allLibs()));
   
    /* need to make sure we're not already mapping librarys with the same ID and Version in the workspace.  If so, remove them and let the
     * library from the finder take precidence.
     */
    ILibInfo extendLibs[] = this.getExtendedSettings(base);
    for(int z=0;z<allLibs.size();z++){
      ILibInfo library = allLibs.get(z);
      for(int f=0;f<extendLibs.length;f++){
        if(library.getId().equals(extendLibs[f].getId()) && library.getVersion().equals(extendLibs[f].getVersion()) ){
          allLibs.remove(z);
        }
      }
    }
   
View Full Code Here

Examples of org.davinci.ajaxLibrary.ILibInfo

     * and version for now its going to be the default, but this will allow
     * to remap/move etc..
     */
    ILibInfo[] mappedLibs = this.getLibs(base);
    for (int i = 0; i < mappedLibs.length; i++) {
      ILibInfo library = mappedLibs[i];
      if (library.getId().equals(id)
          && library.getVersion().equals(version)) {
        return library.getVirtualRoot();
      }
    }

    return null;
  }
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.