Skip to main content


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] 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 #64835 is a reply to message #64789] 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 #64899 is a reply to message #64835] 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 #64917 is a reply to message #64835] 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 #74336 is a reply to message #64835] 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
Re: How to pop-up a message before closing the editor [message #597777 is a reply to message #64789] Mon, 12 July 2004 12:40 Go to previous 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 #597800 is a reply to message #64835] Tue, 13 July 2004 02:47 Go to previous 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 #597804 is a reply to message #64835] Tue, 13 July 2004 03:00 Go to previous 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 #601380 is a reply to message #64835] 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:RSP-UI Proposal Discussion Thread
Next Topic:Status
Goto Forum:
  


Current Time: Fri Apr 19 06:26:54 GMT 2024

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

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

Back to the top