I would probably prefer having a context menu that works on any kind of node below a Console Configuration node that would get me there.
Something like a submenu with dynamically generated content depending on the node.
So e.g. on a "Console Configuration" node (or children) with both hibernate.properties and hibernate.cfg.xml i would have:
Code:
Quick navigate >
hibernate.properties
hibernate.cfg.xml
with only a hibernate.cfg.xml:
Code:
Quick navigate >
hibernate.cfg.xml
and the "advanced" next step is to have the following on a entity node:
Code:
Quick navigate >
Find entity mapping
hibernate.cfg.xml
Where "Find entity mapping" will locate it based on heuristics (since we actually don't know where it is coming from at the moment - we should add that in the future).
The heuristics will be to assume that the file is in the source path under the <package.name>.<fullclassname>.hbm.xml
/max