preferences, EditorPane.class, ActionType.PREFERENCES.name(), true,
controller, "editPreferences"));
actionMap.put(ActionType.EXIT, new ControllerAction(
preferences, EditorPane.class, ActionType.EXIT.name(), true,
controller, "exit"));
FurnitureLibraryController furnitureLibraryController = controller.getFurnitureLibraryController();
actionMap.put(ActionType.IMPORT_FURNITURE, new ControllerAction(
preferences, EditorPane.class, ActionType.IMPORT_FURNITURE.name(), true,
furnitureLibraryController, "importFurniture"));
boolean selectionEmpty = furnitureLibraryController.getSelectedFurniture().isEmpty();
actionMap.put(ActionType.MODIFY_FURNITURE, new ControllerAction(
preferences, EditorPane.class, ActionType.MODIFY_FURNITURE.name(), !selectionEmpty,
furnitureLibraryController, "modifySelectedFurniture"));
actionMap.put(ActionType.DELETE, new ControllerAction(
preferences, EditorPane.class, ActionType.DELETE.name(), !selectionEmpty,