How to find related WorkItemEditor for contributed button presentation ?
Hello to the forum members,
I contributed a button presentation using the information from this link:
https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentations#Eclipse_UI
I would like to set enable\disable state of my button according to the dirty property of its parent WorkItemEditor. I'm looking for an API to find its parent WorkItemEditor. Looking on a more general Eclipse API, I found this link:
http://wiki.eclipse.org/FAQ_How_do_I_find_out_what_view_or_editor_is_selected%3F
However, following this workflow requires some extra work for storing a reference to the currently active editor, I'd be happy if it can be avoided. If you have other idea how to find the parent WorkItemEditor from the button, I'll be grateful if you could share.
Thanks,
Gidi
I contributed a button presentation using the information from this link:
https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentations#Eclipse_UI
I would like to set enable\disable state of my button according to the dirty property of its parent WorkItemEditor. I'm looking for an API to find its parent WorkItemEditor. Looking on a more general Eclipse API, I found this link:
http://wiki.eclipse.org/FAQ_How_do_I_find_out_what_view_or_editor_is_selected%3F
However, following this workflow requires some extra work for storing a reference to the currently active editor, I'd be happy if it can be avoided. If you have other idea how to find the parent WorkItemEditor from the button, I'll be grateful if you could share.
Thanks,
Gidi