Examples of PluginProvidedJSFLibrary


Examples of org.eclipse.jst.jsf.core.internal.jsflibraryregistry.PluginProvidedJSFLibrary

        Object result = caseJSFLibrary(jsfLibrary);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case JSFLibraryRegistryPackage.PLUGIN_PROVIDED_JSF_LIBRARY: {
        PluginProvidedJSFLibrary pluginProvidedJSFLibrary = (PluginProvidedJSFLibrary)theEObject;
        Object result = casePluginProvidedJSFLibrary(pluginProvidedJSFLibrary);
        if (result == null) result = caseJSFLibrary(pluginProvidedJSFLibrary);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.jsflibraryregistry.PluginProvidedJSFLibrary

   * @return the working copy
   * <!-- end-user-doc -->
   * @generated NOT
   */
  public JSFLibrary getWorkingCopy() {
    PluginProvidedJSFLibrary workingCopyLib = JSFLibraryRegistryFactory.eINSTANCE.createPluginProvidedJSFLibrary();
//    workingCopyLib.setID(getID());
    workingCopyLib.setName(getName());
    if (label != null) workingCopyLib.setLabel(getLabel());
    workingCopyLib.setJSFVersion(getJSFVersion());
    workingCopyLib.setDeployed(isDeployed());
    workingCopyLib.setImplementation(isImplementation());
    workingCopyLib.setPluginID(getPluginID());
    Iterator itArchiveFiles = getArchiveFiles().iterator();
    while (itArchiveFiles.hasNext()) {
      ArchiveFile srcArchiveFile = (ArchiveFile)itArchiveFiles.next();
      ArchiveFile destArchiveFile = JSFLibraryRegistryFactory.eINSTANCE.createArchiveFile();
      destArchiveFile.setRelativeToWorkspace(srcArchiveFile.isRelativeToWorkspace());
      destArchiveFile.setSourceLocation(srcArchiveFile.getSourceLocation());
      destArchiveFile.setRelativeDestLocation(srcArchiveFile.getRelativeDestLocation());
      workingCopyLib.getArchiveFiles().add(destArchiveFile);
    }
    return workingCopyLib;
  }
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.jsflibraryregistry.PluginProvidedJSFLibrary

   * Creates a new PluginProvidedJSFLibrary from the JSFLibrary extension point.
   *
   * @return PluginProvidedJSFLibrary instance.
   */
  public JSFLibrary create(){
    PluginProvidedJSFLibrary newLib = JSFLibraryRegistryFactory.eINSTANCE.createPluginProvidedJSFLibrary();
//    newLib.setID(getLibID());
    newLib.setPluginID(getPluginID());
    newLib.setName(config_element.getAttribute(NAME));
    newLib.setImplementation(config_element.getAttribute(IS_IMPL).equals("true") ? true : false); //$NON-NLS-1$   
    newLib.setJSFVersion(JSFVersion.getJSFVersion(config_element.getAttribute(VERSION)));
   
    try {
      addArchives(newLib);     
      return newLib;
    } catch (Exception e) {
      JSFCorePlugin.log(
          e,
          NLS.bind(
              Messages.PluginProvidedJSFLibraryCreationHelper_ErrorCreating,
              newLib.getName()));
    }
    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.