Getting reference of eclipse plugin view or its component from another eclipse plugin view?

J

Jimmy

How can an eclipse view get a reference of another view (e.g. view's
action)?
I've extended the "ViewPart" which contained a "TreeViewer" and tried
the following sample from the URL ...

http://wiki.eclipse.org/index.php/F...respond_to_selection_changes_in_another_view?

However, "((IStructuredSelection) selection).getFirstElement()" gives
me the "Tree" but not the action button that I pressed. I know it may
be ugly to get a reference of another view/page ... so if you eclipse-
plugin-experts out there have a clue, please offer some pointers.

Thanks,
Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top