public static void onCraftTypeChanged(final SelectionChangedEvent e, final CraftView view) { final byte id = (byte) (e.isSelected() ? 0 : 1); view.setCurrentType(CraftType.getFromId(id)); PropertiesProvider.getInstance().setPropertyValue("craftDisplayType", id); }
public static void switchToFreeMode(final SelectionChangedEvent e) { final UIMessage msg = new UIMessage(); msg.setId(16851); msg.setBooleanValue(e.isSelected()); Worker.getInstance().pushMessage(msg); }