Go to declaration in XML files
It seems that the "Go to declaration" action is active when editing XML files. In particular on Ant files, one can use it to navigate to a particular target from the target name stated in the "depends" attribute of another target.
Is it possible to get a custom behavior on other XML file types, maybe by implementing a plugin? For instance in XSLT it would be nice to be able to navigate to the file stated in <xsl:import href="myfile.xsl"/> by running the "Go to declaration" action with the caret on "myfile.xsl".
Alex
请先登录再写评论。
You may override our Go to Declaration action by regestering your own. Your
action can handle such cases and delgate the rest to the standard one.
--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"
"Alessandro Vernet" <avernet@scdi.org> wrote in message
news:27957977.1059435620143.JavaMail.itn@is.intellij.net...
files. In particular on Ant files, one can use it to navigate to a
particular target from the target name stated in the "depends" attribute of
another target.
>
implementing a plugin? For instance in XSLT it would be nice to be able to
navigate to the file stated in <xsl:import href="myfile.xsl"/> by running
the "Go to declaration" action with the caret on "myfile.xsl".
>
>
Ok, sounds good. I will just do that. I guess there will just be a problem if 2 or more plugins do this at the same time.
Alex