Lines 34-39
Link Here
|
34 |
import org.eclipse.core.runtime.IPath; |
34 |
import org.eclipse.core.runtime.IPath; |
35 |
import org.eclipse.core.runtime.IStatus; |
35 |
import org.eclipse.core.runtime.IStatus; |
36 |
import org.eclipse.core.runtime.Path; |
36 |
import org.eclipse.core.runtime.Path; |
|
|
37 |
import org.eclipse.jdt.core.Flags; |
37 |
import org.eclipse.jdt.core.IClassFile; |
38 |
import org.eclipse.jdt.core.IClassFile; |
38 |
import org.eclipse.jdt.core.IField; |
39 |
import org.eclipse.jdt.core.IField; |
39 |
import org.eclipse.jdt.core.IJavaElement; |
40 |
import org.eclipse.jdt.core.IJavaElement; |
Lines 718-724
Link Here
|
718 |
this.memberDeclarationStart[typeDepth] = methodInfo.declarationStart; |
719 |
this.memberDeclarationStart[typeDepth] = methodInfo.declarationStart; |
719 |
IType currentType = this.types[typeDepth]; |
720 |
IType currentType = this.types[typeDepth]; |
720 |
char[][] parameterTypes = methodInfo.parameterTypes; |
721 |
char[][] parameterTypes = methodInfo.parameterTypes; |
721 |
if (parameterTypes != null && methodInfo.isConstructor && currentType.getDeclaringType() != null) { |
722 |
boolean isStatic = false; |
|
|
723 |
try { |
724 |
isStatic = Flags.isStatic(currentType.getFlags()); |
725 |
} catch (JavaModelException e) { |
726 |
// skip |
727 |
} |
728 |
if (!isStatic && parameterTypes != null && methodInfo.isConstructor && currentType.getDeclaringType() != null) { |
722 |
IType declaringType = currentType.getDeclaringType(); |
729 |
IType declaringType = currentType.getDeclaringType(); |
723 |
String declaringTypeName = declaringType.getElementName(); |
730 |
String declaringTypeName = declaringType.getElementName(); |
724 |
if (declaringTypeName.length() == 0) { |
731 |
if (declaringTypeName.length() == 0) { |