Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 12:46 Go to next message
Eclipse UserFriend
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 15:54 Go to previous messageGo to next message
Eclipse UserFriend
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 13:10 Go to previous messageGo to next message
Eclipse UserFriend
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 15:45 Go to previous message
Eclipse UserFriend
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.
> > >
> > >
> >
> >
>
>
Previous Topic:Who frames UnexecutableCommand in flow example
Next Topic:How to go about designing my attached example image?
Goto Forum:
  


Current Time: Sun Oct 06 11:55:15 GMT 2024

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

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

Back to the top