Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » refresh a View from another View
refresh a View from another View [message #438481] Fri, 25 June 2004 13:47 Go to next message
Mathias Buchallik is currently offline Mathias BuchallikFriend
Messages: 10
Registered: July 2009
Junior Member
Hello,

I've created in "eclipse3.0M9" the SampleTreeView. In the
"createContentProvider" Part I've let him load the Data from a ".txt" file.

In a other view which is in the same "perspective" I edit the ".txt" file.
My Problem is, that I no idea how to refresh the SampleView.

I've tried this with "ViewerName.refresh();" the prob was that he cannot
resolve the "ViewerName" or I can't find the "ViewerName" in the
"SampleTreeView" folder and I've declared the Viewer already as a
field-Variable.

thx in advance
Re: refresh a View from another View [message #438488 is a reply to message #438481] Fri, 25 June 2004 16:50 Go to previous message
Eclipse UserFriend
Originally posted by: wohlgemuth.mpimp-golm.mpg.de

you must add some listener, so take a look on

http://www.eclipse.org/articles/index.html

and you also can access a view by the view name, this method provides the
workbench.. something like getViewSite().getWorkbench(),

or the best way is look on the java doc, provided by eclipse. There stands
all what you need.

cheers,

gert

"Mathias" <Killahcub_Mathias@web.de> wrote in message
news:cbhadp$eoj$1@eclipse.org...
> Hello,
>
> I've created in "eclipse3.0M9" the SampleTreeView. In the
> "createContentProvider" Part I've let him load the Data from a ".txt"
file.
>
> In a other view which is in the same "perspective" I edit the ".txt" file.
> My Problem is, that I no idea how to refresh the SampleView.
>
> I've tried this with "ViewerName.refresh();" the prob was that he cannot
> resolve the "ViewerName" or I can't find the "ViewerName" in the
> "SampleTreeView" folder and I've declared the Viewer already as a
> field-Variable.
>
> thx in advance
>
>
Previous Topic:how to getLocation/getBounds relative to screen, not parent?
Next Topic:TableViewer sort
Goto Forum:
  


Current Time: Thu Apr 25 12:11:19 GMT 2024

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

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

Back to the top