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

Discussion in 'Java' started by Jimmy, Mar 15, 2007.

  1. Jimmy

    Jimmy Guest

    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
     
    Jimmy, Mar 15, 2007
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.