Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » How to pop-up a message before closing the editor
How to pop-up a message before closing the editor [message #64789] Thu, 08 July 2004 23:27 Go to next message
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 #64835 is a reply to message #64789] Mon, 12 July 2004 08:40 Go to previous messageGo to next message
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 #64899 is a reply to message #64835] Mon, 12 July 2004 22:47 Go to previous messageGo to next message
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 #64917 is a reply to message #64835] Mon, 12 July 2004 23:00 Go to previous messageGo to next message
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 #74336 is a reply to message #64835] Fri, 02 March 2007 08:49 Go to previous message
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
Re: How to pop-up a message before closing the editor [message #597777 is a reply to message #64789] Mon, 12 July 2004 08:40 Go to previous message
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 #597800 is a reply to message #64835] Mon, 12 July 2004 22:47 Go to previous message
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 #597804 is a reply to message #64835] Mon, 12 July 2004 23:00 Go to previous message
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 #601380 is a reply to message #64835] Fri, 02 March 2007 08:49 Go to previous message
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
Previous Topic:RSP-UI Proposal Discussion Thread
Next Topic:Status
Goto Forum:
  


Current Time: Mon Jul 28 10:40:28 EDT 2014

Powered by FUDForum. Page generated in 0.03441 seconds