Package org.jboss.ide.eclipse.freemarker.model

Examples of org.jboss.ide.eclipse.freemarker.model.MacroDirective


          }
          escape = doEscape;
        }
        if (endIndex > 0) {
          String sub = content.substring(startIndex, endIndex);
          MacroDirective macroDirective = new LibraryMacroDirective(
              null, namespace, sub, startIndex - 1, endIndex
                  - index + 2);
          macroDirectives.add(macroDirective);
          index = content.indexOf(startChar + HASH_MACRO_SPACE, endIndex);
          if (index >= 0)
View Full Code Here


          return new IHyperlink[]{new MacroHyperlink(instance, macroLibrary.getFile(), -1, -1)};
      }
      else {
        List<MacroDirective> macroDefinitions = instance.getItemSet().getMacroDefinitions();
        for (Iterator<MacroDirective> i=macroDefinitions.iterator(); i.hasNext(); ) {
          MacroDirective macroDefinition = i.next();
          if (macroDefinition.getName().equals(instance.getName())) {
            return new IHyperlink[]{new MacroHyperlink(
                instance, editor.getFile(),
                macroDefinition.getOffset(), macroDefinition.getLength())};
          }
        }
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.model.MacroDirective

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.