Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to pop-up a message before closing the editor
How to pop-up a message before closing the editor [message #259985] Fri, 09 July 2004 03:27 Go to next message
Eclipse UserFriend
Originally posted by: ellis.yu.transfield.com

Dear all,

How do I validate the data when the user close the editor. I found
the editor will only check whether it's dirty or not. If I want to cancel
the "close" operation when the system found there's invalid data in the
editor, how can I do in Eclipse? I'm greatly appreciated on any help. Thanks

Rdgs
Ellis
Re: How to pop-up a message before closing the editor [message #260591 is a reply to message #259985] Mon, 12 July 2004 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Ellis wrote:

>Dear all,
>
> How do I validate the data when the user close the editor. I found
>the editor will only check whether it's dirty or not. If I want to cancel
>the "close" operation when the system found there's invalid data in the
>editor, how can I do in Eclipse? I'm greatly appreciated on any help. Thanks
>
>
I assume you wrote your own editor. See ISaveablePart.doSave for details.

Dani

>Rdgs
>Ellis
>
>
>
>
Re: How to pop-up a message before closing the editor [message #260965 is a reply to message #260591] Tue, 13 July 2004 02:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ellis.yu.transfield.com

MANY THX, Dani


"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:ccu0ql$rdl$1@eclipse.org...
> Ellis wrote:
>
> >Dear all,
> >
> > How do I validate the data when the user close the editor. I
found
> >the editor will only check whether it's dirty or not. If I want to cancel
> >the "close" operation when the system found there's invalid data in the
> >editor, how can I do in Eclipse? I'm greatly appreciated on any help.
Thanks
> >
> >
> I assume you wrote your own editor. See ISaveablePart.doSave for details.
>
> Dani
>
> >Rdgs
> >Ellis
> >
> >
> >
> >
Re: How to pop-up a message before closing the editor [message #260968 is a reply to message #260591] Tue, 13 July 2004 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ellis.yu.transfield.com

Hi Dani

Thanks for your help. I want to know more detail that how can I do the
cancel operation if it fail the validation. ??

Rdgs
Ellis

"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:ccu0ql$rdl$1@eclipse.org...
> Ellis wrote:
>
> >Dear all,
> >
> > How do I validate the data when the user close the editor. I
found
> >the editor will only check whether it's dirty or not. If I want to cancel
> >the "close" operation when the system found there's invalid data in the
> >editor, how can I do in Eclipse? I'm greatly appreciated on any help.
Thanks
> >
> >
> I assume you wrote your own editor. See ISaveablePart.doSave for details.
>
> Dani
>
> >Rdgs
> >Ellis
> >
> >
> >
> >
Re: How to pop-up a message before closing the editor [message #261034 is a reply to message #260968] Tue, 13 July 2004 08:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Ellis wrote:

>Hi Dani
>
> Thanks for your help. I want to know more detail that how can I do the
>cancel operation if it fail the validation. ??
>
>
Not sure what you exactly mean. Read the Javadoc on how to cancel your save.

Dani

>Rdgs
>Ellis
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:ccu0ql$rdl$1@eclipse.org...
>
>
>>Ellis wrote:
>>
>>
>>
>>>Dear all,
>>>
>>> How do I validate the data when the user close the editor. I
>>>
>>>
>found
>
>
>>>the editor will only check whether it's dirty or not. If I want to cancel
>>>the "close" operation when the system found there's invalid data in the
>>>editor, how can I do in Eclipse? I'm greatly appreciated on any help.
>>>
>>>
>Thanks
>
>
>>>
>>>
>>I assume you wrote your own editor. See ISaveablePart.doSave for details.
>>
>>Dani
>>
>>
>>
>>>Rdgs
>>>Ellis
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
Re: How to pop-up a message before closing the editor [message #313125 is a reply to message #260591] Fri, 02 March 2007 13:49 Go to previous message
Eclipse UserFriend
Originally posted by: Markus.Bon.qgrp.com

Daniel Megert schrieb:
> Ellis wrote:
>
>> Dear all,
>>
>> How do I validate the data when the user close the editor. I found
>> the editor will only check whether it's dirty or not. If I want to cancel
>> the "close" operation when the system found there's invalid data in the
>> editor, how can I do in Eclipse? I'm greatly appreciated on any help.
>> Thanks
>>
>>
> I assume you wrote your own editor. See ISaveablePart.doSave for details.
>
> Dani
>
>> Rdgs
>> Ellis

If you don't want to be restricted to a special editor, you can also
register a PartListener implementing org.eclipse.ui.IPartListener. Doing
so, you can react whenever a part is activated, deactivated,
broughtToTop, opened or closed.

regards
Markus
Previous Topic:Wrap text on a MessageDialog
Next Topic:Eclipse 3.3M5 NoClassDefFoundError
Goto Forum:
  


Current Time: Sat Nov 09 07:03:03 GMT 2024

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

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

Back to the top