Skip to main content



      Home
Home » Eclipse Projects » GEF » How to reload an editor
How to reload an editor [message #106169] Fri, 21 November 2003 04:16
Eclipse UserFriend
Originally posted by: arnaud.siminski.infotel.com

I am currently working on a editor that displays a file content.
Everything works fine except that the file is share between processes and
so the content of the file could change from time to time. The goal is to
reload the editor content for it to be synchronized with the file content.

I tried to implement a ResourceTracker like it was done in the Logic
Example, and caught the IResourceDelta.CHANGED status. When my file is
saved by someone else, the event is caught by the ResourceTracker but I
have got a hard time to refresh the editor... Basically, I refresh the
editor's data model, then fire a structure change and ask for a resfresh
of the rootEditPart but the changes are not dispayed...

Do you know if there is a simple method to do that ?

Arnaud
Previous Topic:Switch to default tool in palette
Next Topic:Contents Edit Part with 2 Layers
Goto Forum:
  


Current Time: Wed Jul 02 20:50:03 EDT 2025

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

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

Back to the top