}
protected IJavaType getType(String qualifiedName) throws CoreException {
// Force the class to be loaded, and record the class reference
// for later use if there are multiple classes with the same name.
IJavaClassObject classReference = getContext().classForName(
qualifiedName);
// Found many classes, look for the right one for this scope.
if (classReference == null) {
throw new CoreException(new Status(IStatus.ERROR,
JDIDebugPlugin.getUniqueIdentifier(), IStatus.OK,
NLS.bind(
InstructionsEvaluationMessages.Instruction_No_type,
new String[] { qualifiedName }), null));
}
return classReference.getInstanceType();
}