#5 cross-file "Go to Definition"

v0.9.4
closed
Editor (9)
5
2003-03-02
2003-02-13
Owen Nichols
No

I love the ability to right-click on a macro reference and
go to its definition. The problem is, I have my velocity
macros split into about two dozen file (all in the same
directory), so it would be really fantastic if Go to
Definition would search other .vm files in the same
directory, instead of giving up if it isn't defined in the
current file.

Discussion

  • Logged In: YES
    user_id=559460

    The outline of a Velocity template (directives, variables and
    macro definitions) is determined within the active Veloedit
    editor by using Velocity's internal parser. So the active editor
    only knows about the structure of the edited Velocity template
    file.

    Maybe it's possible to point Velocity's internal parser to the
    other templates in the same directory and let the parser follow
    the #include directives in the currently edited template file.

    I have to dig deeper...

     
    • milestone: --> v0.9.4
    • assigned_to: nobody --> tjuerge
    • summary: cross-file "Go to Definition" --> cross-file "Go to Definition"
     
    • summary: cross-file "Go to Definition" --> cross-file "Go to Definition"
    • status: open --> closed
     
  • Logged In: YES
    user_id=559460

    partly implemented in v1.0.0:
    - text hover with name of template where
    the macro is
    implemented
    - content assist propsals containing
    all macros which are
    part of the Velocimacro library (as defined in
    related
    preference page)

    Currently I don't know to open a file
    which is not part of an Eclipse project (outside of the Eclipse
    workspace)...

    So no F3 (Go to definition is supported now) :-(