1 11 package org.eclipse.pde.internal.ui.views.dependencies; 12 13 import java.util.Arrays ; 14 import java.util.Collection ; 15 import java.util.Collections ; 16 17 import org.eclipse.osgi.service.resolver.BundleDescription; 18 19 public class CallersContentProvider extends DependenciesViewPageContentProvider { 20 public CallersContentProvider(DependenciesView view) { 21 super(view); 22 } 23 24 protected Collection findReferences(BundleDescription desc) { 25 if (desc != null) { 26 if (desc.getHost() == null) { 28 BundleDescription[] dependents = desc.getDependents(); 29 return Arrays.asList(dependents); 30 } 31 } 32 return Collections.EMPTY_LIST; 33 } 34 35 } 36 | Popular Tags |