Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Lost focus
Lost focus [message #181900] Thu, 19 May 2005 21:43 Go to next message
Eclipse UserFriend
Originally posted by: freddie_nurke.hotmail.com

I have a modal editor that allows a text box's contents to be edited
when a DirectEditRequest is received. I need to determine when to exit
edit mode. How can I tell when a part outside my set of text parts has
been selected?

Thanks,

Fred
Re: Lost focus [message #182039 is a reply to message #181900] Sat, 21 May 2005 21:32 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
What kind of an editor is it? A celleditor? Why is it modal? Any reason
for not doing what GEF does: exit when the textcelleditor loses focus?

"Fred Nurke" <freddie_nurke@hotmail.com> wrote in message
news:d6j1c9$mf$2@news.eclipse.org...
> I have a modal editor that allows a text box's contents to be edited
> when a DirectEditRequest is received. I need to determine when to exit
> edit mode. How can I tell when a part outside my set of text parts has
> been selected?
>
> Thanks,
>
> Fred
Re: Lost focus [message #182046 is a reply to message #182039] Sat, 21 May 2005 21:42 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Whoops, I didn't even look at the subject of your post. So, you're
obviously aware about how GEF does this. If your editor has to be modal,
then I think you have no choice but to provide a way to dismiss that editor
from within that editor. That's what all modal widgets do, right? Maybe a
key combination (although that's not intuitive) or something.

"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d6o9g4$sb8$1@news.eclipse.org...
> What kind of an editor is it? A celleditor? Why is it modal? Any reason
> for not doing what GEF does: exit when the textcelleditor loses focus?
>
> "Fred Nurke" <freddie_nurke@hotmail.com> wrote in message
> news:d6j1c9$mf$2@news.eclipse.org...
> > I have a modal editor that allows a text box's contents to be edited
> > when a DirectEditRequest is received. I need to determine when to exit
> > edit mode. How can I tell when a part outside my set of text parts has
> > been selected?
> >
> > Thanks,
> >
> > Fred
>
>
Re: Lost focus [message #182539 is a reply to message #182046] Wed, 25 May 2005 22:39 Go to previous message
Eclipse UserFriend
Originally posted by: freddie_nurke.hotmail.com

I finally figured out DirectEditManager by way of a really helpful web
page in Japanese (fortunately the code is in Java so I could understand
the important bits). This prompted me to define a cell editor (which
you also suggested) for my text editing, which works nicely. The real
bonus is that everything happens automagically.

Others may find the example at
http://www13.plala.or.jp/observe/GEF/GEF_Hello5.html helpful for
learning how to do direct editing.

Thanks,

Fred

Pratik Shah wrote:
> Whoops, I didn't even look at the subject of your post. So, you're
> obviously aware about how GEF does this. If your editor has to be modal,
> then I think you have no choice but to provide a way to dismiss that editor
> from within that editor. That's what all modal widgets do, right? Maybe a
> key combination (although that's not intuitive) or something.
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:d6o9g4$sb8$1@news.eclipse.org...
>
>>What kind of an editor is it? A celleditor? Why is it modal? Any reason
>>for not doing what GEF does: exit when the textcelleditor loses focus?
>>
>>"Fred Nurke" <freddie_nurke@hotmail.com> wrote in message
>>news:d6j1c9$mf$2@news.eclipse.org...
>>
>>>I have a modal editor that allows a text box's contents to be edited
>>>when a DirectEditRequest is received. I need to determine when to exit
>>>edit mode. How can I tell when a part outside my set of text parts has
>>>been selected?
>>>
>>>Thanks,
>>>
>>>Fred
>>
>>
>
>
Previous Topic:Edit policy not used by DelayedDirectEditHelper?
Next Topic:Deferring editing to a different part
Goto Forum:
  


Current Time: Fri Apr 19 06:16:30 GMT 2024

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

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

Back to the top