public void importManager(StyleRulesManager importFrom) { for (StyleRules importRules : importFrom.styleRules) { boolean shouldImport = true; for (StyleRules myRules : this.styleRules) { if (myRules.getGuid().equals(importRules.getGuid())) { shouldImport = false; break; } } if (shouldImport) { add(importRules); } } }
private void newStyleRules() { try { StyleRules styleRules = new StyleRules( messages.getMessage("nu.zoom.catonine.configurations.new")); manager.add(styleRules); editStyleRules(styleRules); } catch (ResourceNotFoundException resourceNotFoundException) { // TODO: add logging } }