Lost focus [message #181900] |
Thu, 19 May 2005 21:43 |
Eclipse User |
|
|
|
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 #182539 is a reply to message #182046] |
Wed, 25 May 2005 22:39 |
Eclipse User |
|
|
|
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
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03124 seconds