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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?B?bW9vcJk=?=

    GCJ and its Eclipse plugin

    =?iso-8859-1?B?bW9vcJk=?=, Mar 1, 2006, in forum: Java
    Replies:
    3
    Views:
    571
    IchBin
    Mar 1, 2006
  2. Replies:
    1
    Views:
    731
  3. thunk
    Replies:
    1
    Views:
    315
    thunk
    Mar 30, 2010
  4. thunk
    Replies:
    0
    Views:
    488
    thunk
    Apr 1, 2010
  5. thunk
    Replies:
    14
    Views:
    627
    thunk
    Apr 3, 2010
Loading...

Share This Page