Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-06-28 10:26:35 +0000
committerDani Megert2013-06-28 10:26:35 +0000
commit1e2d8d218e12a3e17dc35c14cf4d6e740e33e651 (patch)
tree6b61b4349eb1fad90078ef0e48f2306f4b7e61f7
parent93a77f420a7471d0df788b415a37a6a372511cff (diff)
downloadeclipse.pde.ui-1e2d8d218e12a3e17dc35c14cf4d6e740e33e651.tar.gz
eclipse.pde.ui-1e2d8d218e12a3e17dc35c14cf4d6e740e33e651.tar.xz
eclipse.pde.ui-1e2d8d218e12a3e17dc35c14cf4d6e740e33e651.zip
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 0370b29759..29da651489 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;
+ }
}

Back to the top