|How to change perspective buttons state ? [message #921641]
||Mon, 24 September 2012 05:47
| Georges Bachelier
Registered: May 2010
Hi Everybody !|
My E4 RCP application implements three perspectives the user can switch by clicking toolbar push buttons built from "Handled Tool Items" in the Application.e4xmi file.
The perspective switch mechanism works fine, but the perspective toolbar button remains unpressed after I click it. How do you force the button state ?
The following code shows how I get the ToolItem reference:
private void findObjectsById( MApplication application, EModelService service, String ID )
List< MUIElement > findElements = service.findElements( application, ID, MUIElement.class, null );
MUIElement muiElement = findElements.get( 0 );
ToolItem widget = (ToolItem) muiElement.getWidget();
widget.setSelection( true );
Thanks a lot in advance for your time !
Powered by FUDForum
. Page generated in 0.01872 seconds