Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Comunication Between Wizards and Views
Comunication Between Wizards and Views [message #298098] Tue, 24 January 2006 16:04 Go to next message
Eclipse UserFriend
I have a wizard that creates an object (not a file) that needs to be
added to a view holding a TableViewer or TreeViewer. Are there
listeners for this situation? I know they exist for files but I have
not found any for generic objects. Thanks all.
Re: Comunication Between Wizards and Views [message #298123 is a reply to message #298098] Wed, 25 January 2006 08:18 Go to previous messageGo to next message
Eclipse UserFriend
James Leotta wrote:
> I have a wizard that creates an object (not a file) that needs to be
> added to a view holding a TableViewer or TreeViewer. Are there
> listeners for this situation? I know they exist for files but I have
> not found any for generic objects. Thanks all.

Not listeners, perhaps, but you can get an IViewPart using
IWorkbenchPage#findView(*) ... then cast it to your view and call your
MyView#addContent(*) method :-)

Later,
PW
Re: Comunication Between Wizards and Views [message #298124 is a reply to message #298098] Wed, 25 January 2006 08:20 Go to previous messageGo to next message
Eclipse UserFriend
James Leotta wrote:

Forget this. I used IPropertyChangeListener. Thanks anyway.

> I have a wizard that creates an object (not a file) that needs to be
> added to a view holding a TableViewer or TreeViewer. Are there
> listeners for this situation? I know they exist for files but I have
> not found any for generic objects. Thanks all.
Re: Comunication Between Wizards and Views [message #298133 is a reply to message #298123] Wed, 25 January 2006 10:23 Go to previous message
Eclipse UserFriend
Yes this is a better method then adding all those listeners to my
actions. Thanks again Paul.

Paul Webster wrote:
> James Leotta wrote:
>> I have a wizard that creates an object (not a file) that needs to be
>> added to a view holding a TableViewer or TreeViewer. Are there
>> listeners for this situation? I know they exist for files but I have
>> not found any for generic objects. Thanks all.
>
> Not listeners, perhaps, but you can get an IViewPart using
> IWorkbenchPage#findView(*) ... then cast it to your view and call your
> MyView#addContent(*) method :-)
>
> Later,
> PW
Previous Topic:Beginner Question About creating a plugin, please help!
Next Topic:Cheat Sheet tutorial on developerWorks
Goto Forum:
  


Current Time: Wed Jul 16 23:55:56 EDT 2025

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

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

Back to the top