Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2015-12-02 09:05:26 +0000
committerLars Vogel2015-12-02 20:26:35 +0000
commit5acdbbd38da754d14476648db31b7faa58a1b441 (patch)
tree9409e448c812d76522ba86622c397d4207aad274 /org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java
parentb65b9cadb2d6145969cd819eda624ccde44fa3f2 (diff)
downloadeclipse.platform.ua-5acdbbd38da754d14476648db31b7faa58a1b441.tar.gz
eclipse.platform.ua-5acdbbd38da754d14476648db31b7faa58a1b441.tar.xz
eclipse.platform.ua-5acdbbd38da754d14476648db31b7faa58a1b441.zip
Bug 483441 - Remove unnecessary whitespace from org.eclipse.help
Change-Id: I3c47eb7ccdfe22a0b004ea0d4a5dd85e2c972b41 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java
index 9ec60cc25..102a5c150 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/TopicSorter.java
@@ -23,14 +23,14 @@ import com.ibm.icu.text.Collator;
* Handles the "sort" attribute on topics and tocs
*/
public class TopicSorter {
-
+
private Comparator comparator;
-
+
public void sortChildren(Toc toc) {
if (comparator == null) {
comparator = new TopicComparator();
}
- if (toc.isSorted()) {
+ if (toc.isSorted()) {
sort(toc, toc.getTopics());
}
ITopic[] childTopics = toc.getTopics();
@@ -38,9 +38,9 @@ public class TopicSorter {
sortChildren((Topic)childTopics[i]);
}
}
-
+
private void sortChildren(Topic topic) {
- if (topic.isSorted()) {
+ if (topic.isSorted()) {
sort(topic, topic.getSubtopics());
}
ITopic[] childTopics = topic.getSubtopics();
@@ -51,15 +51,15 @@ public class TopicSorter {
private class TopicComparator implements Comparator {
Collator collator = Collator.getInstance();
-
+
@Override
public int compare(Object o1, Object o2) {
String label1 = ((ITopic)o1).getLabel();
String label2 = ((ITopic)o2).getLabel();
return collator.compare(label1, label2);
- }
+ }
}
-
+
/*
* Sort the given node's descendants recursively using the given
* Comparator.
@@ -78,4 +78,3 @@ public class TopicSorter {
}
}
- \ No newline at end of file

Back to the top