コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: PropertyItem.java プロジェクト: Tagin/aurora-ide
 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;
 }
コード例 #3
0
ファイル: PropertyItem.java プロジェクト: Tagin/aurora-ide
 public String getLabel() {
   return data.getDisplayName();
 }