Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » How synchronize file resource and editor view
How synchronize file resource and editor view [message #590617] Wed, 19 February 2003 23:54
Eclipse UserFriend
Originally posted by: ska1.snafu.de

Hi,

in a new plugin we have some synchronization problems in the context of
editor view, file resources, and compiler error messages (to be shown as
markers) and need some help. Let me sketch the situation:

We are working on a plugin for Eclipse that shall support a little
programming language. A compiler for that language has been written in
Java and is called by the plugin to determine syntax error positions /
messages and more. Currently, our perspective presents a button that calls
a CompileAction when pressed. Compiler error messages are translated to
markers attached to the corresponding file resources.

We currently face two problems:

1. Markers:
Our editor view (a org.eclipse.ui.editors.text.TextEditor derivate with a
org.eclipse.ui.editors.text.FileDocumentProvider derivate) currently
doesn't take notice of the changes to syntax error markers that get
attached to the file resource the editor sits on. (If we close the editor
view and re-open it again, the markers show up correctly in the editor.)
How can we have the marker changes also be propagated to the editor view?

2. Saving files:
As the compiler reads files as input, users should be asked if they want
to save any dirty editor views before actually running the compiler. There
probably exists code in Eclipse which helps achieve that. But we didn't
find the solution yet. Can you help?

Thanks for answering,
Soenke.
Previous Topic:How synchronize file resource and editor view
Next Topic:Does SWT Applet class exist?
Goto Forum:
  


Current Time: Wed Sep 25 07:58:04 GMT 2024

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

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

Back to the top