Package tk.eclipse.plugin.htmleditor.gefutils

Examples of tk.eclipse.plugin.htmleditor.gefutils.IJarVisitor


  private InputStream getTagFile(final String path){
    try {
      if(path.startsWith("/META-INF/tags")){
        // in JAR (or classpath?)
        return (InputStream)JarAcceptor.accept(project.getProject(),
            new IJarVisitor(){
          public Object visit(JarFile file, JarEntry entry) throws Exception {
            if(("/" + entry.getName()).equals(path)){
              return file.getInputStream(entry);
            }
            return null;
View Full Code Here


    return null;
  }
 
  /** Load from META-INF in the jar file */
  private static byte[] getTLDFromJars(File basedir,final String uri){
    return (byte[])JarAcceptor.accept(basedir, new IJarVisitor(){
      public Object visit(JarFile file, JarEntry entry) throws Exception {
        if(entry.getName().endsWith(".tld")){
          byte[] bytes = HTMLUtil.readStream(file.getInputStream(entry));
          try {
            FuzzyXMLDocument doc = new FuzzyXMLParser(false).parse(new ByteArrayInputStream(bytes));
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.htmleditor.gefutils.IJarVisitor

Copyright © 2018 www.massapicom. 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.