Skip to main content



      Home
Home » Newcomers » Newcomers » Sending information from a tree to a view...
Sending information from a tree to a view... [message #106481] Fri, 30 September 2005 16:50 Go to next message
Eclipse UserFriend
Originally posted by: aarbit.go-integral.com

I'm writing a plugin and I have a tree of data and I would like an instance
of a view to come up whith related data when one of the tree's leaves are
clicked.

So far I have been able to get a unique instance of the view to show up for
each tree leaf. However, I would like to modify the view's contents
depending on the leaf selected.

I'm currently creating the view by running this in the leaf's doSelected
method:

TrackerPlugin.getDefault().getWorkbench().getActiveWorkbench Window().getActivePage().showView( "org.gforge.gui.tracker.views.TrackerViewer" ,getParent().getParent().getLabel()+this.tracker.getTrackerN ame(),2);

How can I make the content of that view unique?

Thanks!
Re: Sending information from a tree to a view... [message #106709 is a reply to message #106481] Sun, 02 October 2005 15:59 Go to previous message
Eclipse UserFriend
A View is usually unique.
A View is identified either by its ID, or when you want to have multiple
instances of your view, additionally by the secondary ID.

So
TrackerPlugin.getDefault().getWorkbench().getActiveWorkbench Window().getActivePage().findView( "VIEW_ID");
always returns the same view.

Stefan

Eclipse schrieb:

> I'm writing a plugin and I have a tree of data and I would like an
instance of a view to come up whith related data when one of the tree's
leaves are clicked.
>
> So far I have been able to get a unique instance of the view to show
up for each tree leaf. However, I would like to modify the view's
contents depending on the leaf selected.
>
> I'm currently creating the view by running this in the leaf's
doSelected method:
>
>
TrackerPlugin.getDefault().getWorkbench().getActiveWorkbench Window().getActivePage().showView( "org.gforge.gui.tracker.views.TrackerViewer" ,getParent().getParent().getLabel()+this.tracker.getTrackerN ame(),2);
>
> How can I make the content of that view unique?
>
> Thanks!
>
Previous Topic:JComboBox
Next Topic:Recompiling examples
Goto Forum:
  


Current Time: Wed May 07 17:32:30 EDT 2025

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

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

Back to the top