Open a blank editor. [message #326639] |
Thu, 27 March 2008 06:18  |
Eclipse User |
|
|
|
Originally posted by: rashi.bahal.gmail.com
Hi!
I have an editor called vocabulary editor. I make some figures on it and save that editor in a file through serialization.
Now, firstly when i open a blank (new vocabulary editor), make some drawings and save it...it works perfectly. Then i open the same editor by selecting the respective file...then also it works fine...
But now after opening the serialized model on the editor, it does not open a blank new editor. It opens the same serialized model on the new editor.
Plz guide me.
Thanks
Rashi
|
|
|
|
Re: Open a blank editor. [message #326661 is a reply to message #326659] |
Thu, 27 March 2008 13:05  |
Eclipse User |
|
|
|
AL wrote:
> Rashi Bahal wrote:
>> Hi!
>> I have an editor called vocabulary editor. I make some figures on
>> it and save that editor in a file through serialization.
>> Now, firstly when i open a blank (new vocabulary editor), make some
>> drawings and save it...it works perfectly. Then i open the same editor
>> by selecting the respective file...then also it works fine...
>> But now after opening the serialized model on the editor, it does
>> not open a blank new editor. It opens the same serialized model on the
>> new editor.
>>
>> Plz guide me.
>>
>> Thanks Rashi
>
>
> Check out IDE.openEditor(...) overloaded/static methods. Basically
> supply an empty IEditorInput, then you're set.
Oops..Sorry...Looks like my answer does not help :-) But yeah, the
editor will open with the latest content in the serialized model. If
the model is empty, you should get a blank editor instance.
|
|
|
Powered by
FUDForum. Page generated in 0.02438 seconds