Skip to content

Commit

Permalink
Merge pull request #3130 from henning-gerhardt/fix_checkstyle
Browse files Browse the repository at this point in the history
Fix checkstyle
  • Loading branch information
Kathrin-Huber authored Jan 31, 2020
2 parents 992a13e + 0e61381 commit d435301
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,18 +391,6 @@ public void show(boolean keepSelection) {
}
}

private void restoreSelection(String rowKey, TreeNode parentNode) {
for (TreeNode childNode : parentNode.getChildren()) {
if (Objects.nonNull(childNode) && rowKey.equals(childNode.getRowKey())) {
childNode.setSelected(true);
break;
} else {
childNode.setSelected(false);
restoreSelection(rowKey, childNode);
}
}
}

/**
* Loads the tree(s) into the panel and sets the selected element to the
* root element of the structure tree.
Expand All @@ -425,6 +413,18 @@ public void show() {
this.previouslySelectedPhysicalNode = selectedPhysicalNode;
}

private void restoreSelection(String rowKey, TreeNode parentNode) {
for (TreeNode childNode : parentNode.getChildren()) {
if (Objects.nonNull(childNode) && rowKey.equals(childNode.getRowKey())) {
childNode.setSelected(true);
break;
} else {
childNode.setSelected(false);
restoreSelection(rowKey, childNode);
}
}
}

/**
* Creates the structure tree. If hierarchical links exist upwards, they are
* displayed above the tree as separate trees.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ public static StructuralElementViewInterface nextSubView(RulesetManagementInterf
* @return the initialized title generator
*/
private static TitleGenerator initializeTitleGenerator(ConfigProject configProject, Workpiece workpiece,
Collection<MetadataViewInterface> addableDivisions) throws DoctypeMissingException {
Collection<MetadataViewInterface> addableDivisions)
throws DoctypeMissingException {

IncludedStructuralElement rootElement = workpiece.getRootElement();
Map<String, Map<String, String>> metadata = new HashMap<>(4);
Expand Down

0 comments on commit d435301

Please sign in to comment.