|XML editor embedded in a MultiPageEditor [message #1730843]
||Fri, 29 April 2016 07:40
| Mehdi Alouache
Registered: April 2016
I'm working on a plugin designed to assist the user when he's editing XML files. The current project works """fine""" but I'm using a "StructuredTextEditor" as main component. It implies two things :
- Opening a new file implies opening a new editor every time
- I can't get notified properly when the user activates another page (here, an other instance of the editor)
Moreover, I'm applying listeners on the editor. And as I can't get notified when the user activates another page, I cannot remove my listeners from all the open editors ===> Each action on an editor triggers an event on ALL editors. This makes the plugin really slow to work.
I saw an object called "MultiPageEditorPart", with a method "addPageChangedListener". I think this could be the key to solve my issue, but I cannot integrate it correctly.
If you already faced that kind of problem, if you know how a MPE works or if you see another solution to my problem, I would be glad to read your responses.
Thanks for reading.
[Updated on: Fri, 29 April 2016 12:51]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02257 seconds