if (CLASS_FILE_EXTENSION.equals(resource.getFullPath()
.getFileExtension())) {
IPath localLocation = resource.getLocation();
if (localLocation != null) {
String path = localLocation.toOSString();
IClassFileReader reader = ToolFactory
.createDefaultClassFileReader(
path,
IClassFileReader.CLASSFILE_ATTRIBUTES);
if (reader != null) {
// this name is slash-delimited
String qualifiedName = new String(
reader.getClassName());
boolean hasBlockingErrors = false;
try {
if (!Platform.getPreferencesService().getBoolean(
JDIDebugPlugin.getUniqueIdentifier(),
JDIDebugModel.PREF_HCR_WITH_COMPILATION_ERRORS,
true,
null)) {
// If the user doesn't want to replace
// classfiles containing
// compilation errors, get the source
// file associated with
// the class file and query it for
// compilation errors
IJavaProject pro = JavaCore
.create(resource.getProject());
ISourceAttribute sourceAttribute = reader
.getSourceFileAttribute();
String sourceName = null;
if (sourceAttribute != null) {
sourceName = new String(
sourceAttribute