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); }
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; }
public String getLabel() { return data.getDisplayName(); }