public static void validNameFilter(final Event event, final TextEditor textEditor) { final CraftView craftView = (CraftView) PropertiesProvider.getInstance() .getObjectProperty("craft", event.getTarget().getElementMap().getId()); final String text = textEditor.getText(); if (!text.equals(craftView.getNameFilter())) { craftView.setNameFilter(text); } }
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 checkLevelSorter(final Event event) { ((CraftView) PropertiesProvider.getInstance() .getObjectProperty("craft", event.getTarget().getElementMap().getId())) .toggleLevelSorter(); }
public static void openLinkedBook(final Event event) { ((CraftView) PropertiesProvider.getInstance() .getObjectProperty("craft", event.getTarget().getElementMap().getId())) .displayBook(); }