Sending information from a tree to a view... [message #106481] |
Fri, 30 September 2005 16:50  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
>
|
|
|
Powered by
FUDForum. Page generated in 0.07477 seconds