Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Programmatically select a button
Programmatically select a button [message #551404] Fri, 06 August 2010 09:59 Go to next message
Pierre GAUTIER is currently offline Pierre GAUTIERFriend
Messages: 13
Registered: August 2010
Junior Member

Hello,

For some obscure reasons I have to activate the SelectionListener I've put on a button.

The method button.setSelection(true) does not trigger it and I can't find any other way, anyone could help me please ?

Thanks by advance,
Pierre GAUTIER
Re: Programmatically select a button [message #551432 is a reply to message #551404] Fri, 06 August 2010 12:17 Go to previous message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey Pierre,

the setSelection(true) method is for Radio buttons (it set the marker to the actual selected radio button of a group), it doesn´t activate the selection.

Why dont you extract the code of your SelectionListener to a separate method and just call this method?

Greetz
Thomas
Previous Topic:Errors in .log after shutting down an RCP application
Next Topic:Strange behaviour with detached views
Goto Forum:
  


Current Time: Fri Apr 19 17:12:28 GMT 2024

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

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

Back to the top