Commit efe3cf66 authored by andrei's avatar andrei

Fixes for (nested/anon.) inner classes support. Works fine with >=1.5 code,...

Fixes for (nested/anon.) inner classes support. Works fine with >=1.5 code, still some problems with <=1.4 code.
parent df44197c
This diff is collapsed.
......@@ -20,6 +20,7 @@ import java.util.ResourceBundle;
import org.eclipse.core.filebuffers.FileBuffers;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
......@@ -1238,6 +1239,15 @@ public class BytecodeOutlineView extends ViewPart {
return true;
}
}
/*
* the check if we changed from inner class to outer class or vice versa
*/
if (lastChildElement != null && childEl != null) {
IType newEnclosingType = JdtUtils.getEnclosingType(childEl);
IType oldEnclosingType = JdtUtils.getEnclosingType(lastChildElement);
return newEnclosingType == null || !newEnclosingType.equals(oldEnclosingType);
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment