| Problem with closing Editor [message #435210] |
Wed, 10 August 2005 12:23  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.15099 seconds