summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-06-28 06:26:35 (EDT)
committerDani Megert2013-06-28 07:05:32 (EDT)
commit6e4a96ae5c6fafb674394d7f84af521501bf436c (patch)
tree526a031bad1dd61d98add938660d7a9b3034f51a
parent4c1c40c39bf4ef7f40947f109891be17ba006ffc (diff)
downloadeclipse.pde.ui-6e4a96ae5c6fafb674394d7f84af521501bf436c.zip
eclipse.pde.ui-6e4a96ae5c6fafb674394d7f84af521501bf436c.tar.gz
eclipse.pde.ui-6e4a96ae5c6fafb674394d7f84af521501bf436c.tar.bz2
Fixed bug 380563: Extension point schema editor has random tab ordering
-rw-r--r--ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/DocumentSection.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/DocumentSection.java b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/DocumentSection.java
index 0370b29..29da651 100644
--- a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/DocumentSection.java
+++ b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/schema/DocumentSection.java
@@ -62,19 +62,26 @@ public class DocumentSection extends SchemaObject implements IDocumentSection, C
return 0;
else if (otherIndex == -1)
return -1;
+ else if (thisIndex == -1)
+ return 1;
else
return thisIndex - otherIndex;
}
- return -1;
+ return 0;
}
private int getIndex(String sectionId) {
if (sectionId == null)
return -1;
for (int i = 0; i < DOC_SECTIONS.length; i++) {
- if (DOC_SECTIONS[i].equals(sectionId))
+ if (DOC_SECTIONS[i].equalsIgnoreCase(sectionId))
return i;
}
return -1;
}
+
+ @Override
+ public String toString() {
+ return sectionId;
+ }
}