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 05:59 Go to next message
Pierre GAUTIER is currently offline Pierre GAUTIER
Messages: 10
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 08:17 Go to previous message
T. Wilhelm is currently offline T. Wilhelm
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: Mon Apr 21 00:51:10 EDT 2014

Powered by FUDForum. Page generated in 0.01600 seconds