views:

31

answers:

0

Hi,

I am looking for a way to link from a comment inside a .java file to another file somewhere in the project folder (like CMD-clicking a Java Type links to the Type declaration). In my case I am working on a (Spring Roo backed) web application, so I have controllers and view files.

What I have in mind may look like this (Javadoc-oriented but of course not parsed but used directly as a link):

public String orderlist(ModelMap modelMap){

    modelMap.addAttribute("orders", Order.findAllOrders());

    // @link("/WEB-INF/views/order/list.jspx")
    return "order/list";
}

I want to CMD-click on the comment link to open the file.

I am heavily using Working Sets, filters and of course CMD+SHIFT+R ("Open Resource"), which are all great, but this might come in handy working on a controller and the corresponding view (especially in a team). Is this possible somehow, a basic feature that I missed completely so far or even total nonsense for some reason? I realize that those links should be considered when, for example, refactor|move the view file.

Wolfram