/** * 对首选项菜单排序时,需要覆盖该方法 */ public ContributionComparator getComparatorFor(String contributionType) { if (contributionType.equals(IContributionService.TYPE_PREFERENCE)) { return new PreferencesComparator(); } else { return super.getComparatorFor(contributionType); } }
@Override public ContributionComparator getComparatorFor(String contributionType) { if (contributionType.equals(IContributionService.TYPE_PROPERTY)) { return new MaruPropertyPageComparator(); } else { return super.getComparatorFor(contributionType); } }