Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1 vote


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 457
× 369

Question asked: Jun 16 '14, 9:36 a.m.

Question was seen: 5,458 times

Last updated: Jul 08 '14, 1:46 p.m.

Confirmation Cancel Confirm