Home » Eclipse Projects » GEF » How to refresh the treelist of the TreeViewer ?
How to refresh the treelist of the TreeViewer ? [message #105672] |
Wed, 19 November 2003 07:46  |
Eclipse User |
|
|
|
Originally posted by: lizhih.cn.ibm.com
Hi all,
I'm a newer on GEF developing , I can show a tree in a TreeViewer , but now
I have a Graphical Editor, I want the Treeviewer to be refreshed , and show
different content list after I select another GEF Model in the Graphical
Editor. I have read the JDT source , the TypeHierarchyViewPart refresh the
method
viewer after the selected method changed, but the Method Viewer used
Tableviewer, so they used the Methods of Tableviewer:setInput () and
Refresh(),but I'm using a GEF TreeViewer, how to refresh the treelist to
according to different input?
Hope I'm lucky to get the answer from someone, any suggestion will be
helpful to me, thanks in advance.
|
|
|
Re: How to refresh the treelist of the TreeViewer ? [message #105743 is a reply to message #105672] |
Wed, 19 November 2003 10:54   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
viewer.setContents(theNewObject)???
"hellen" <lizhih@cn.ibm.com> wrote in message
news:bpfoff$vto$1@eclipse.org...
> Hi all,
> I'm a newer on GEF developing , I can show a tree in a TreeViewer , but
now
> I have a Graphical Editor, I want the Treeviewer to be refreshed , and
show
> different content list after I select another GEF Model in the Graphical
> Editor. I have read the JDT source , the TypeHierarchyViewPart refresh the
> method
> viewer after the selected method changed, but the Method Viewer used
> Tableviewer, so they used the Methods of Tableviewer:setInput () and
> Refresh(),but I'm using a GEF TreeViewer, how to refresh the treelist to
> according to different input?
> Hope I'm lucky to get the answer from someone, any suggestion will be
> helpful to me, thanks in advance.
>
>
|
|
|
Re: How to refresh the treelist of the TreeViewer ? [message #106719 is a reply to message #105743] |
Tue, 25 November 2003 08:10   |
Eclipse User |
|
|
|
Originally posted by: lizhih.cn.ibm.com
Thank you for your answer, but can I use the
viewer.setContents(theNewObject) from the graphical editor? if so, how to
get the selection changing event?
"Randy Hudson" <none@us.ibm.com> wrote in message
news:bpg3jp$g6b$1@eclipse.org...
> viewer.setContents(theNewObject)???
>
> "hellen" <lizhih@cn.ibm.com> wrote in message
> news:bpfoff$vto$1@eclipse.org...
> > Hi all,
> > I'm a newer on GEF developing , I can show a tree in a TreeViewer , but
> now
> > I have a Graphical Editor, I want the Treeviewer to be refreshed , and
> show
> > different content list after I select another GEF Model in the Graphical
> > Editor. I have read the JDT source , the TypeHierarchyViewPart refresh
the
> > method
> > viewer after the selected method changed, but the Method Viewer used
> > Tableviewer, so they used the Methods of Tableviewer:setInput () and
> > Refresh(),but I'm using a GEF TreeViewer, how to refresh the treelist to
> > according to different input?
> > Hope I'm lucky to get the answer from someone, any suggestion will be
> > helpful to me, thanks in advance.
> >
> >
>
>
|
|
|
Re: How to refresh the treelist of the TreeViewer ? [message #106814 is a reply to message #106719] |
Tue, 25 November 2003 10:45  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Listen to the Workbench's IPartService to find out what is selected
anywhere, including the editorpart.
Otherwise, you have to just write the code to do this yourself.
"hellen" <lizhih@cn.ibm.com> wrote in message
news:bpvk4n$7u6$1@eclipse.org...
> Thank you for your answer, but can I use the
> viewer.setContents(theNewObject) from the graphical editor? if so, how to
> get the selection changing event?
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:bpg3jp$g6b$1@eclipse.org...
> > viewer.setContents(theNewObject)???
> >
> > "hellen" <lizhih@cn.ibm.com> wrote in message
> > news:bpfoff$vto$1@eclipse.org...
> > > Hi all,
> > > I'm a newer on GEF developing , I can show a tree in a TreeViewer ,
but
> > now
> > > I have a Graphical Editor, I want the Treeviewer to be refreshed , and
> > show
> > > different content list after I select another GEF Model in the
Graphical
> > > Editor. I have read the JDT source , the TypeHierarchyViewPart refresh
> the
> > > method
> > > viewer after the selected method changed, but the Method Viewer used
> > > Tableviewer, so they used the Methods of Tableviewer:setInput () and
> > > Refresh(),but I'm using a GEF TreeViewer, how to refresh the treelist
to
> > > according to different input?
> > > Hope I'm lucky to get the answer from someone, any suggestion will be
> > > helpful to me, thanks in advance.
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Wed May 07 14:09:40 EDT 2025
Powered by FUDForum. Page generated in 0.03301 seconds
|