Java 类org.eclipse.ui.model.ContributionComparator 实例源码

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