Examples of ArchiveFile


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

      JSFLibrary aJSFLib) {
    if (aJSFLib == null)
      return OK_STATUS;
   
    for (Iterator it=aJSFLib.getArchiveFiles().iterator();it.hasNext();){
      ArchiveFile jar = (ArchiveFile)it.next();
      if (jars.contains(jar.getResolvedSourceLocation())){
        return createErrorStatus(NLS.bind(Messages.JSFFacetInstallDataModelProvider_DupeJarValidation,jar.getResolvedSourceLocation()));       
      }
            jars.add(jar.getResolvedSourceLocation());
    }
    return OK_STATUS;
  }
View Full Code Here

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

         */
        public final IPath[] getJARPathforJSFLib(JSFLibrary jsfLib, boolean logMissingJar) {       
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = archiveFiles.size();
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            for (int i= 0; i < numJars; i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() && logMissingJar ) {
                    logErroronMissingJAR(jsfLib, ar);
                }
                elements[i] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
            }
            return elements;
View Full Code Here

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

        }  
       
        private int numberofValidJar(EList archiveFiles) {
            int total = 0;
            final Iterator it = archiveFiles.iterator();
            ArchiveFile ar = null;
            while(it.hasNext()) {
                ar = (ArchiveFile) it.next();
                if (ar.exists()) {
                    total++;
                }
            }
            return total;
        }
View Full Code Here

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

         */
        public final IPath[] getJARPathforJSFLibwFilterMissingJars(JSFLibrary jsfLib, boolean logMissingJar) {
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = numberofValidJar(archiveFiles);
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            int idxValidJar = 0;
            for (int i= 0; i < archiveFiles.size(); i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() ) {
                    if (logMissingJar) {
                        logErroronMissingJAR(jsfLib, ar);
                    }
                } else {
                    elements[idxValidJar] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
View Full Code Here

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

         */
        public final IPath[] getJARPathforJSFLib(JSFLibrary jsfLib, boolean logMissingJar) {       
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = archiveFiles.size();
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            for (int i= 0; i < numJars; i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() && logMissingJar ) {
                    logErroronMissingJAR(jsfLib, ar);
                }
                elements[i] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
            }
            return elements;
View Full Code Here

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

        }  
       
        private int numberofValidJar(EList archiveFiles) {
            int total = 0;
            final Iterator it = archiveFiles.iterator();
            ArchiveFile ar = null;
            while(it.hasNext()) {
                ar = (ArchiveFile) it.next();
                if (ar.exists()) {
                    total++;
                }
            }
            return total;
        }
View Full Code Here

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

         */
        public final IPath[] getJARPathforJSFLibwFilterMissingJars(JSFLibrary jsfLib, boolean logMissingJar) {
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = numberofValidJar(archiveFiles);
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            int idxValidJar = 0;
            for (int i= 0; i < archiveFiles.size(); i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() ) {
                    if (logMissingJar) {
                        logErroronMissingJAR(jsfLib, ar);
                    }
                } else {
                    elements[idxValidJar] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
View Full Code Here

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

        if (result == null) result = caseJSFLibrary(pluginProvidedJSFLibrary);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case JSFLibraryRegistryPackage.ARCHIVE_FILE: {
        ArchiveFile archiveFile = (ArchiveFile)theEObject;
        Object result = caseArchiveFile(archiveFile);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      default: return defaultCase(theEObject);
View Full Code Here

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

    }
    return false;
  }

  private boolean isAnyArchiveFileChanged(final EList source, EList target) {   
    ArchiveFile arSrc = null;
    Iterator it = source.iterator();
    while (it.hasNext()) {
      arSrc = (ArchiveFile) it.next();
      if (!findMatchedArchive(arSrc, target)) {
        return true;
View Full Code Here

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

    }
    return false;
  }
 
  private boolean findMatchedArchive(ArchiveFile source, EList list) {
    ArchiveFile target = null;
    Iterator it = list.iterator();
    while (it.hasNext()) {
      target = (ArchiveFile) it.next();
      if (target.equals(source)) {
        return true;
      }
    }
    return false;
  }
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.