Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » disabled LinkRidget not rendered as expected
disabled LinkRidget not rendered as expected [message #1073306] Wed, 24 July 2013 13:47 Go to next message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
Hello Group Members,

we upgraded Riena 3.0.0 to version 5.0.0 recently and encountered the following issue that wasn't there before:

When using a Link and LinkRidget and disabling it, there is no underlined text visible anymore but just a gray box without text. Could this be a bug?

cheers,
Christian

code snippet:

// UI
final Link link = new Link(parent, SWT.None);
bindControl(link, RID_LINK);
// controller
final ILinkRidget linkRidget = getRidget(RID_LINK);
linkRidget.setToolTipText("tooltip");
linkRidget.setText("text");
// disabling the LinkRidget let it appear as a gray box without text
linkRidget.setEnabled(false);
Re: disabled LinkRidget not rendered as expected [message #1073325 is a reply to message #1073306] Wed, 24 July 2013 14:25 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
I tried this and for me underlined text is only shown if the link is set. What you did is you just set a text but no link.

What you have to do is do this:

linkRidget.setText("Go to Google","http://www.google.de");

Then the text is underlined, no matter whether enabled or disabled. I didnt try 3.0 to see if that has changed, but I tried that with the current HEAD version.

hope that helps
christian

[Updated on: Wed, 24 July 2013 14:25]

Report message to a moderator

Re: disabled LinkRidget not rendered as expected [message #1073344 is a reply to message #1073325] Wed, 24 July 2013 15:00 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
sorry my fault. Actually you are right there is only a gray box.

Can you please add a bugzilla bug and we look into this Smile

I forgot to properly disable it...

christian
Re: disabled LinkRidget not rendered as expected [message #1073347 is a reply to message #1073344] Wed, 24 July 2013 15:03 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
BTW what was your expectation for a disabled Link ?

For disabled text fields we also remove the content (as you probably know). So for a link that is disabled, it means that you cannot click it anymore. Maybe remove the underline or totally remove it ?

Not sure.

Definitly it shouldn't be a gray box Smile

christian
Re: disabled LinkRidget not rendered as expected [message #1073352 is a reply to message #1073347] Wed, 24 July 2013 15:20 Go to previous messageGo to next message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
Hello Christian,

thank you for your quick reply!

Our expectation is that it behaves like it did in Riena 3.0.0, i.e.
text is shown (underlined), foreground color is light grey (probably represented by LnfKeyConstants.DISABLED_BACKGROUND) and clicking the Link doesn't trigger anything.

Btw that worked with Riena 3.0.0 and Eclipse_3.7.2. or E_3.8.2.
We are currently working with Eclipse_3.8.2.

Thanks,
Christian
Re: disabled LinkRidget not rendered as expected [message #1073358 is a reply to message #1073352] Wed, 24 July 2013 15:32 Go to previous messageGo to next message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
I created https://bugs.eclipse.org/bugs/show_bug.cgi?id=413658
Re: disabled LinkRidget not rendered as expected [message #1073359 is a reply to message #1073358] Wed, 24 July 2013 15:34 Go to previous message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
There is a not so nice workaround: One could disable a parent Composite of the Link.
But with that workaround the foreground color of the Link remains same as enabled (dark blue).
Previous Topic:Problems to get Riena run
Next Topic:mouseUp vs. mouseDown Listening
Goto Forum:
  


Current Time: Mon Dec 22 06:28:14 GMT 2014

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

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