Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Communication between viewers in a perspective
Communication between viewers in a perspective [message #436418] Thu, 08 September 2005 01:19 Go to next message
Eclipse UserFriend
Originally posted by: mcheng.cisco.com

Hi,

I created two viewers in a perspective. First one is a tree viewer and
second one is a table viewer. After user clicking on tree viewer, I want
to update the content by calling setInput() method in the table viewer.
Since table viewer is created by calling layout.addView(), I couldn't get
the table viewer object to call setInput().

What are the solutions to this problem?

Regards,
Mike
Re: Communication between viewers in a perspective [message #436419 is a reply to message #436418] Thu, 08 September 2005 01:55 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
Get the view object and cast it down to the implementation class and add
on method on the view to set the input.

HTH,

PaScaL

mike cheng wrote:
> Hi,
>
> I created two viewers in a perspective. First one is a tree viewer and
> second one is a table viewer. After user clicking on tree viewer, I want
> to update the content by calling setInput() method in the table viewer.
> Since table viewer is created by calling layout.addView(), I couldn't get
> the table viewer object to call setInput().
>
> What are the solutions to this problem?
>
> Regards,
> Mike
>
>
Re: Communication between viewers in a perspective [message #436437 is a reply to message #436418] Thu, 08 September 2005 13:02 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

mike cheng wrote:
> Hi,
>
> I created two viewers in a perspective. First one is a tree viewer and
> second one is a table viewer. After user clicking on tree viewer, I want
> to update the content by calling setInput() method in the table viewer.
> Since table viewer is created by calling layout.addView(), I couldn't get
> the table viewer object to call setInput().

So you need your table view? You can use IWorkbenchPage#findView("table
view id") to get your IViewPart, and then cast it to MyTableView.

Later,
PW


Previous Topic:How to make independent plugins ?
Next Topic:Drag and Drop Between 2 View
Goto Forum:
  


Current Time: Thu Dec 05 17:13:38 GMT 2024

Powered by FUDForum. Page generated in 0.03089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top