Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » AssertionFailedException in editor
AssertionFailedException in editor [message #333813] Wed, 07 January 2009 05:35 Go to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Hi,

I have a multipage xml editor based on eclipse platform.
Every time i open a new file in the editor it shows the file as unsaved.
Now I close the editor without saving the page, exit the application and
then restart the application and reopen the editor window, I get an
AssertionFailed Exception.

Is there anyway that i can save the editor through coding when i open it
the first time, so that the user is not responsible for this saving action?

Thanks in Advance

Regards,
Sheela
Re: AssertionFailedException in editor [message #333814 is a reply to message #333813] Wed, 07 January 2009 05:55 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Workbench determines whether an editor is saved or not, by calling
isDirty(). I guess your EditorPart is simply returning true without checking
any conditions.

- Prakash
--

http://blog.eclipse-tips.com

"Sheela " <sheela_kalyanpur@infosys.com> wrote in message
news:f273c58069d643620467d0a339eab8c4$1@www.eclipse.org...
> Hi,
>
> I have a multipage xml editor based on eclipse platform.
> Every time i open a new file in the editor it shows the file as unsaved.
> Now I close the editor without saving the page, exit the application and
> then restart the application and reopen the editor window, I get an
> AssertionFailed Exception.
>
> Is there anyway that i can save the editor through coding when i open it
> the first time, so that the user is not responsible for this saving
> action?
>
> Thanks in Advance
>
> Regards,
> Sheela
>
Re: AssertionFailedException in editor [message #333838 is a reply to message #333814] Thu, 08 January 2009 04:38 Go to previous message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Thanks for the prompt response Prakash.

Can you emphasize a little on what you mean. I m not sure where to insert
the isDirty() check to ensure that my editor is always saved before
opening.

Thanks in advance
Sheela
Previous Topic:Feature not displayed
Next Topic:table viewer and possibility to change columns header
Goto Forum:
  


Current Time: Fri Apr 19 20:37:22 GMT 2024

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

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

Back to the top