Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ModifyListener on Text
ModifyListener on Text [message #102243] Wed, 13 August 2008 08:36 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi all,

I've just noticed a strange behavior adding a modify listener on a
NON-EDITABLE Text...
[Text text = new Text(parent,SWT.NONE); text.addModifyListener(listener);
text.setEditable(false);]

I obviously change the editable attribute to true in an other part of my
code (in an menu action "edit", more precisely)...

But no modifyEvent is notified... Is it normal ?

Emmanuel
Re: ModifyListener on Text [message #102272 is a reply to message #102243] Wed, 13 August 2008 14:21 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

Shouldn't ModifyListener only be called when user enters some texts to the
Text widget ?

Regards,

Setya
Re: ModifyListener on Text [message #102287 is a reply to message #102272] Wed, 13 August 2008 14:42 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Yes sure. I did not mention that but the problem is that, in the case of
setEditable(false), the ModifyListener is not called WHEN user enters text
to the Text widget !

Emmanuel

Setya wrote:

> Hi,

> Shouldn't ModifyListener only be called when user enters some texts to the
> Text widget ?

> Regards,

> Setya
Re: ModifyListener on Text [message #102312 is a reply to message #102287] Wed, 13 August 2008 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evolanakis.innoopract.com

Hi Emmanuel,

can you file a bug for this? This will help us track this issue.

Thanks,
Elias.

Emmanuel wrote:
> Yes sure. I did not mention that but the problem is that, in the case of
> setEditable(false), the ModifyListener is not called WHEN user enters
> text to the Text widget !
>
> Emmanuel
>
> Setya wrote:
>
>> Hi,
>
>> Shouldn't ModifyListener only be called when user enters some texts to
>> the Text widget ?
>
>> Regards,
>
>> Setya
>
>


--
---
Elias Volanakis
Innoopract, Inc.
http://www.innoopract.com
Re: ModifyListener on Text [message #102403 is a reply to message #102312] Thu, 14 August 2008 08:19 Go to previous message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=244127
Previous Topic:Progress Monitoring
Next Topic:UICallback
Goto Forum:
  


Current Time: Fri Apr 26 15:50:41 GMT 2024

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

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

Back to the top