public int category(Object element) { if (element instanceof IHelpResource) { IHelpResource r = (IHelpResource)element; String c = context.getCategory(r); if (c!=null) { return -5; } } return super.category(element); }
public int category(Object element) { if (fEnvironment == null) { return super.category(element); } else { if (fEnvironment.isStrictlyCompatible((IVMInstall) element)) { return 0; } else { return 1; } } }
@Override public int category(Object element) { if (element instanceof WizardCollectionElement){ String id = ((WizardCollectionElement)element).getId(); if (WizardsRegistryReader.GENERAL_WIZARD_CATEGORY.equals(id)) { return 1; } if (WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY.equals(id)) { return 3; } return 2; } return super.category(element); }
@Override public int category(Object element) { if (element instanceof WorkbenchWizardElement) { return -1; } if (element instanceof WizardCollectionElement){ String id = ((WizardCollectionElement)element).getId(); if (WizardsRegistryReader.GENERAL_WIZARD_CATEGORY.equals(id)) { return 1; } if (WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY.equals(id)) { return 3; } if (WizardsRegistryReader.FULL_EXAMPLES_WIZARD_CATEGORY.equals(id)) { return 4; } return 2; } return super.category(element); }
@Override public int category(Object element) { if (element instanceof WorkbenchWizardElement) { return -1; } if (element instanceof WizardCollectionElement) { String id = ((WizardCollectionElement) element).getId(); if (WizardsRegistryReader.GENERAL_WIZARD_CATEGORY.equals(id)) { return 1; } if (WizardsRegistryReader.UNCATEGORIZED_WIZARD_CATEGORY.equals(id)) { return 3; } if (WizardsRegistryReader.FULL_EXAMPLES_WIZARD_CATEGORY.equals(id)) { return 4; } return 2; } return super.category(element); }
public int category(Object element) { if (element instanceof ISearchEngineResult) { ISearchEngineResult r = (ISearchEngineResult)element; IHelpResource c = r.getCategory(); if (c!=null) { String label = c.getLabel(); if (label.length()==0) return 10; return 5; } } return super.category(element); }