/** * Since the this content provider overrides the resource content provider, * this method is only invoked when the resource content provider is * disabled. In this case, we still want the Java projects to appear at the * root of the view. * * {@inheritDoc} */ public Object[] getElements(Object parent) { if (parent instanceof ISynchronizationContext) // Put the resource projects directly under the context parent= getModelRoot(); return super.getElements(parent); }
/** * Since the this content provider overrides the resource content provider, * this method is only invoked when the resource content provider is * disabled. In this case, we still want the Java projects to appear at the * root of the view. * * {@inheritDoc} */ @Override public Object[] getElements(Object parent) { if (parent instanceof ISynchronizationContext) // Put the resource projects directly under the context parent= getModelRoot(); return super.getElements(parent); }
/** * Since the this content provider overrides the resource content provider, * this method is only invoked when the resource content provider is * disabled. In this case, we still want the Java projects to appear at the * root of the view. * * {@inheritDoc} */ @Override public Object[] getElements(Object parent) { if (parent instanceof ISynchronizationContext) // Put the resource projects directly under the context parent= getModelRoot(); return super.getElements(parent); }