private final class MenuItemSelectionListener implements Listener {
@Override
public void handleEvent( Event event ) {
MenuItem item = ( MenuItem )event.widget;
PageDescriptor pageDescriptor = ( PageDescriptor )item.getData();
ToolItem dropDown = pageSwitcher.getItem( 0 );
dropDown.setText( item.getText() );
dropDown.setData( pageDescriptor );
dropDown.setImage( item.getImage() );
if( !DATA_ACTIVATED.equals( event.data ) ) {
ui.getPageOperator().openPage( pageDescriptor.getId() );
}
}