|Re: Multiple EditorPart stack. [message #502547 is a reply to message #501822]
||Tue, 08 December 2009 18:41
| Mauro Condarelli
Registered: September 2009
|Wim Jongman wrote on Thu, 03 December 2009 17:47|
|Hi Mauro, |
Can you rephrase this? What exactly do you want?
I will try.
I am writing an application that essentially is an editor:
It opens an XML file, shows it in a few different views and/or editors and saves it back.
The XML file contains, among other things, pointers to other text files.
The XML editor can open one or more of those files for editing.
- I would like to have the central editorArea disappear when all files have been closed; I have found that setting layout.setEditorAreaVisible(false); will hide the editorArea at startup. It will appear as soon as I open an editor. I have found no way to make it disappear again when I close the editor. How can I do that?
- In case (often!) i do not need to actually modify the XML file itself, but I need to edit only the text-files, I would like to close the XML editor and to leave only one of the views active (similar to an Outline View); is this possible?
- If I set configurer.setSaveAndRestore(true); the system will try to reopen all files that were open last time; In case I closed the XML editor (see above) I would like to prevent this and I would like to force the user to manually reopen the XML file or, alternatively, reopen it in the non-editing mode (just the outline shown). Again: I do not know how to achieve this.
I hope this is a bit clearer.
Thanks for Your understanding
|> The Description says it all. |
> What is the RightWay(TM) to handle editor tabs and make EditorArea vanish
when last one is closed?
> I also have a problem with the initial configurer.setSaveAndRestore(true);
because it remembers all my open Views and also the EditorArea visibility
> But that doesn't make any sense because there's nothing to view or to edit
till I actually open a file.
> I should either automatically open last visited file (but it might not
exist!) or just display some kind of blank background (or an image) till the
user opens a file.
> I have no idea about how to do that.
> Can someone suggest a strategy?
Powered by FUDForum
. Page generated in 0.08180 seconds