Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Open a blank editor.
Open a blank editor. [message #326639] Thu, 27 March 2008 10:18 Go to next message
Eclipse UserFriend
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 #326659 is a reply to message #326639] Thu, 27 March 2008 17:02 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
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.
Re: Open a blank editor. [message #326661 is a reply to message #326659] Thu, 27 March 2008 17:05 Go to previous message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
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.
Previous Topic:property changes on a resource
Next Topic:How to view .classpath file
Goto Forum:
  


Current Time: Sun Jul 07 07:42:11 GMT 2024

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

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

Back to the top