Examples of ITagDirRecord


Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

        IJarRecord record = (IJarRecord) reference;
        identifier = record.getLocation();
      }
        break;
      case (ITaglibRecord.TAGDIR) : {
        ITagDirRecord record = (ITagDirRecord) reference;
        identifier = record.getPath();
      }
        break;
      case (ITaglibRecord.URL) : {
        IURLRecord record = (IURLRecord) reference;
        identifier = record.getURL();
      }
        break;
      default :
        identifier = reference;
        break;
View Full Code Here

Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

                  addDependsOn(foundFilesForLocation[i]);
                }
              }
                break;
              case (ITaglibRecord.TAGDIR) : {
                ITagDirRecord record = (ITagDirRecord) reference;
                IPath path = record.getPath();
                IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(path, false);

                try {
                  found.accept(new IResourceVisitor() {
                    public boolean visit(IResource resource) throws CoreException {
                      if (resource.getType() == IResource.FILE) {
                        addDependsOn(resource);
                      }
                      return true;
                    }
                  });
                }
                catch (CoreException e) {
                  Logger.logException(e);
                }
              }
                break;
              case (ITaglibRecord.URL) : {
                IURLRecord record = (IURLRecord) reference;
                String baseLocation = record.getBaseLocation();
                if (baseLocation != null && baseLocation.indexOf("://") < 0) {
                  IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(baseLocation, false);
                  if (found != null) {
                    try {
                      found.accept(new IResourceVisitor() {
View Full Code Here

Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

          System.out.println("failure parsing " + record.getLocation()); //$NON-NLS-1$
        }
      }
        break;
      case (ITaglibRecord.TAGDIR) : {
        ITagDirRecord record = (ITagDirRecord) reference;
        document = buildCMDocumentFromFolder(record.getPath());
      }
        break;
      case (ITaglibRecord.URL) : {
        IURLRecord record = (IURLRecord) reference;
        URL url = record.getURL();
        InputStream urlContents = JarUtilities.getInputStream(url);
        if (urlContents != null) {
          document = (CMDocumentImpl) buildCMDocument(record.getBaseLocation(), urlContents);
          String urlString = url.toString();
          document.setLocationString(urlString);
          if (document.getSmallIcon() != null) {
            String iconPath = URIHelper.normalize(((TLDDocument) document).getSmallIcon(), urlString, "/"); //$NON-NLS-1$
            document.setProperty(JSP12TLDNames.SMALL_ICON, iconPath);
View Full Code Here

Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

          System.out.println("failure parsing " + record.getLocation()); //$NON-NLS-1$
        }
      }
        break;
      case (ITaglibRecord.TAGDIR) : {
        ITagDirRecord record = (ITagDirRecord) reference;
        document = buildCMDocumentFromFolder(record.getPath());
      }
        break;
      case (ITaglibRecord.URL) : {
        IURLRecord record = (IURLRecord) reference;
        URL url = record.getURL();
        InputStream urlContents = JarUtilities.getInputStream(url);
        if (urlContents != null) {
          document = (CMDocumentImpl) buildCMDocument(record.getBaseLocation(), urlContents);
          String urlString = url.toString();
          document.setLocationString(urlString);
          if (document.getSmallIcon() != null) {
            String iconPath = URIHelper.normalize(((TLDDocument) document).getSmallIcon(), urlString, "/"); //$NON-NLS-1$
            document.setProperty(JSP12TLDNames.SMALL_ICON, iconPath);
View Full Code Here

Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

        IJarRecord record = (IJarRecord) reference;
        identifier = record.getLocation();
      }
        break;
      case (ITaglibRecord.TAGDIR) : {
        ITagDirRecord record = (ITagDirRecord) reference;
        identifier = record.getPath();
      }
        break;
      case (ITaglibRecord.URL) : {
        IURLRecord record = (IURLRecord) reference;
        identifier = record.getURL();
      }
        break;
      default :
        identifier = reference;
        break;
View Full Code Here

Examples of org.eclipse.jst.jsp.core.taglib.ITagDirRecord

                  addDependsOn(foundFilesForLocation[i]);
                }
              }
                break;
              case (ITaglibRecord.TAGDIR) : {
                ITagDirRecord record = (ITagDirRecord) reference;
                IPath path = record.getPath();
                IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(path, false);

                try {
                  found.accept(new IResourceVisitor() {
                    public boolean visit(IResource resource) throws CoreException {
                      if (resource.getType() == IResource.FILE) {
                        addDependsOn(resource);
                      }
                      return true;
                    }
                  });
                }
                catch (CoreException e) {
                  Logger.logException(e);
                }
              }
                break;
              case (ITaglibRecord.URL) : {
                IURLRecord record = (IURLRecord) reference;
                String baseLocation = record.getBaseLocation();
                if (baseLocation != null && baseLocation.indexOf("://") < 0) {
                  IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(baseLocation, false);
                  if (found != null) {
                    try {
                      found.accept(new IResourceVisitor() {
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.