Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with closing Editor
Problem with closing Editor [message #435210] Wed, 10 August 2005 12:23 Go to next message
Eclipse UserFriend
Hi!

I want my Editor to validate the input the user has made.
My problem occurs when the editor is closed, because if the user has entered
invalid data, it cannot be saved, but the editor closes.

Is there a possibility to prevent the editor from being closed?

regards,
Stefan
Re: Problem with closing Editor [message #435263 is a reply to message #435210] Thu, 11 August 2005 05:09 Go to previous message
Eclipse UserFriend
After searching the eclipse.platform newsgroup i finally found a solution:
"Override doSave(IProgressMonitor pm) and call pm.setCancelled(true) if
the validation fails."

And it works properly :)


"Stefan Zugal" <Zugi00@gmx.at> schrieb im Newsbeitrag
news:ddd9t8$2kn$1@news.eclipse.org...
> Hi!
>
> I want my Editor to validate the input the user has made.
> My problem occurs when the editor is closed, because if the user has
entered
> invalid data, it cannot be saved, but the editor closes.
>
> Is there a possibility to prevent the editor from being closed?
>
> regards,
> Stefan
>
>
Previous Topic:Windows installer recommendation?
Next Topic:[RCP-product] howto use multiple memory configurations?
Goto Forum:
  


Current Time: Mon Oct 27 12:06:07 EDT 2025

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

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

Back to the top