Update/close a View [message #97830] |
Sat, 12 July 2008 08:29 |
Eclipse User |
|
|
|
Originally posted by: rglorius.web.de
Hello,
i've tried to actualize my Views. They extends from a ViewPart.
The refresh methods only worked on a TreeViewer or a TableViewer. But my
Views only based on the layoutmanagers with different data. I've used
actions the change the date at my backend. Now I want to actualize my
Views with the new data.
Is it also possible to close a View and to reopen it? Or is there amethod
to updat the hole View like the createPartControl?
thanks, Rob
|
|
|
Re: Update/close a View [message #98004 is a reply to message #97830] |
Mon, 14 July 2008 14:45 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Rob,
you may just extract and re-use the code that initially sets data on
the widgets.
For more complex scenario there is also JFace Data Binding available.
Re-creating all widgets or re-opening the view is certainly not a
good way. Among may downsides, just think of all the flickering.
Cheers,
Rüdiger
Rob wrote:
> Hello,
>
> i've tried to actualize my Views. They extends from a ViewPart.
>
> The refresh methods only worked on a TreeViewer or a TableViewer. But my
> Views only based on the layoutmanagers with different data. I've used
> actions the change the date at my backend. Now I want to actualize my
> Views with the new data.
> Is it also possible to close a View and to reopen it? Or is there
> amethod to updat the hole View like the createPartControl?
>
> thanks, Rob
|
|
|
Powered by
FUDForum. Page generated in 0.02886 seconds