1 11 package org.eclipse.jdt.internal.debug.ui.classpath; 12 13 import org.eclipse.core.runtime.IAdapterFactory; 14 import org.eclipse.jdt.internal.launching.DefaultProjectClasspathEntry; 15 16 19 public class ClasspathEntryAdapterFactory implements IAdapterFactory { 20 21 24 public Object getAdapter(Object adaptableObject, Class adapterType) { 25 if (IClasspathEditor.class.equals(adapterType)) { 26 if (adaptableObject instanceof DefaultProjectClasspathEntry) { 27 return new DefaultClasspathEntryEditor(); 28 } 29 } 30 return null; 31 } 32 33 36 public Class [] getAdapterList() { 37 return new Class []{IClasspathEditor.class}; 38 } 39 40 } 41 | Popular Tags |