Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15168

Show only macro and function declarations in Freemarker outline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.1.0.Final
    • freemarker
    • None

      In the "FreeMarker IDE" Eclipse plugin, you should disable the outline view for now, as it's too broken to be useful, while it often slows template editing to crawl and is constantly flashing/redrawing as you type into the template, or even sometimes if you just move the cursor.

      Regarding why it's broken:

      • You show all the statements in it, which is way too much details and so it quickly becomes useless for overview and navigation. (Imagine if the Java outline did that, showing all if-s and for-s and assignments.) If should just list the macro and function declarations.
      • It treats FreeMarker tags that don't end with /> as element openings, and then puts everything after that inside that element. But FreeMarker tags that start with # and can't have a body are implicitly closed. They are like img in HTML; <img ...> is the same as <img .../>. Similarly, <#assign x = 1> is the same as <#assign x = 1 />.
      • It redraws the whole tree way to often. It slows things down, and the flashing it causes is annoying.

            ppalaga Peter Palaga
            ddekany Daniel Dekany (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: