|customizing getDoubleClickStrategy for XML editor [message #1091002]
||Tue, 20 August 2013 23:47
| antony chiu
Registered: August 2013
I am working on customizing the XML Editor to suit my personal development needs. Here is my problem: when I'm viewing a XML file using the Eclipse XML Editor, I want to change the behaviour of double clicking on certain parts of the code. For instance, if I have an XML attribute value value="abc.example" and I double click on the text "example", the editor would highlight the entire text "abc.example", but instead, I simply want it to highlight the text "example".
In essence, the problem boils down to adding periods (.) as a delimiter during double clicking. After researching in the Eclipse FAQ and fiddling around in the source codes, I was able to narrow the problem down to 1. Adding my own getDoubleClickStrategy OR 2. Modifying schema/editorconfiguration.exsd
And here I'm stuck... I'm not sure what's my next step. I have been testing various things under editorconfiguration.exsd and nothing seems to work.
If anyone point me to the right direction, that would be much appreciated!
Powered by FUDForum
. Page generated in 0.02823 seconds