if ( ( (Button) c[i] ).getText( ).equals( sTaskLabel ) ) { ( (Button) c[i] ).setSelection( false ); } else { ( (Button) c[i] ).setSelection( true ); }
( (Button) c[i] ).setSelection( ( (Button) c[i] ).getText( ) .equals( sTaskLabel ) );
	public void setActive( String sTaskLabel )	{		// Disable the button with current task		Control[] c = tbTasks.getChildren( );		for ( int i = 0; i < c.length; i++ )		{			if ( c[i] instanceof Button )			{				if ( ( (Button) c[i] ).getText( ).equals( sTaskLabel ) )				{					( (Button) c[i] ).setSelection( false );				}				else				{					( (Button) c[i] ).setSelection( true );				}			}		}	}