Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Communicating between Editors or multiple files per editor
Communicating between Editors or multiple files per editor [message #529010] Thu, 22 April 2010 11:47 Go to next message
Eclipse UserFriend
Hi all,

Bit of a design question, for an app which is basically a big calculator
with validation.

The calculation process is sort of like a wizard, in that there are certain
defined steps, and validation that needs to take place to move onto the next
calculation.

The calculation is made up of modules, and I envisage each module to be some
sort of screen.

However, I don't think the Wizard framework is nice because I want to have
the wizard screen locked into the workspace like an Editor. The user needs
to be able to save at any point in the calculation.

Therefore I have been thinking of a multi-page editor, which sort of
emulates a Wizard by providing a new page at each step of the progress,
while still allowing the user to go back to earlier pages.

Was wondering if Editors support multiple files? Would it be easy for me to
provide this myself (i.e in each page of the multi-page editor)?

Any other ideas?

Thanks

Greg
Re: Communicating between Editors or multiple files per editor [message #529105 is a reply to message #529010] Thu, 22 April 2010 19:41 Go to previous message
Eclipse UserFriend
Hi Greg,

> Was wondering if Editors support multiple files? Would it be easy for me
> to provide this myself (i.e in each page of the multi-page editor)?

if the contents of the editor can be described as "document of the application", an editor
should be used from the UI perspective. An editor can definitively load from and save to
multiple files; PDE's plugin.xml editor (ManifestEditor) does exactly that; one editor
which saves to MANIFEST.MF and plugin.xml and build.properties. It is a subclass of
MultiPageEditorPart / FormEditor which I would use as starting point. If these
abstractions don't fit your needs, you can also extend EditorPart itself and do all the
tab folder handling yourself.

Greetings,

Ralf



--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Previous Topic:PageBook layout changes after selection
Next Topic:How to get instance of IWorkbenchWindowConfigurer outside WorkbenchWindowAdvisor
Goto Forum:
  


Current Time: Sun Jun 22 18:03:52 EDT 2025

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

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

Back to the top