public int compare(IPropertySheetEntry entryA, IPropertySheetEntry entryB) {
   String displayNameA = entryA.getDisplayName();
   String displayNameB = entryB.getDisplayName();
   int weightA = getWeight(displayNameA);
   int weightB = getWeight(displayNameB);
   if (weightA != weightB) return weightB - weightA;
   return getCollator().compare(displayNameA, displayNameB);
 }
Example #2
0
 public Control getControl(Composite par) {
   if (editor == null) editor = data.getEditor(par);
   Control control = editor.getControl();
   if (control == null) {
     editor = data.getEditor(par);
     return editor.getControl();
   }
   return control;
 }
Example #3
0
 public String getLabel() {
   return data.getDisplayName();
 }