private void loadWorkspaceDataForController(DrawingController controller, Element data) { if (isActive(data, workspaceShowDependencies)) controller.showDependencies(); else controller.hideDependencies(); if (isActive(data, workspaceShowViolations)) controller.showViolations(); else controller.hideViolations(); if (isActive(data, workspaceSmartLines)) controller.showSmartLines(); else controller.hideSmartLines(); DrawingLayoutStrategy selectedStrategy = null; for (DrawingLayoutStrategy strategy : DrawingLayoutStrategy.values()) if (strategy.toString().equals(data.getAttribute(workspaceLayoutStrategy).getValue())) selectedStrategy = strategy; if (null != selectedStrategy) controller.changeLayoutStrategy(selectedStrategy); }