How to pop-up a message before closing the editor [message #259985] |
Fri, 09 July 2004 03:27 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04514 seconds