1 11 package org.eclipse.jdt.internal.corext.util; 12 13 import org.eclipse.jdt.core.Signature; 14 import org.eclipse.jdt.core.search.TypeNameMatch; 15 16 import org.eclipse.jdt.ui.dialogs.ITypeInfoRequestor; 17 18 19 public class TypeInfoRequestorAdapter implements ITypeInfoRequestor { 20 21 private TypeNameMatch fMatch; 22 23 public void setMatch(TypeNameMatch type) { 24 fMatch= type; 25 } 26 27 30 public String getEnclosingName() { 31 return Signature.getQualifier(fMatch.getTypeQualifiedName()); 32 } 33 34 37 public int getModifiers() { 38 return fMatch.getModifiers(); 39 } 40 41 44 public String getPackageName() { 45 return fMatch.getPackageName(); 46 } 47 48 51 public String getTypeName() { 52 return fMatch.getSimpleTypeName(); 53 } 54 55 56 } 57 | Popular Tags |