It's all about the answers!

Ask a question

How to find related WorkItemEditor for contributed button presentation ?

Gidi Gal (962058) | asked Jun 16 '14, 9:36 a.m.
edited Jul 08 '14, 1:46 p.m. by Tim Mok (6.6k38)
Hello to the forum members,

I contributed a button presentation using the information from this link:

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:

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.


Be the first one to answer this question!

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.