Lines 10-15
Link Here
|
10 |
*******************************************************************************/ |
10 |
*******************************************************************************/ |
11 |
package org.eclipse.jdt.internal.core; |
11 |
package org.eclipse.jdt.internal.core; |
12 |
|
12 |
|
|
|
13 |
import java.util.HashMap; |
14 |
|
15 |
import org.eclipse.core.runtime.IProgressMonitor; |
13 |
import org.eclipse.jdt.core.*; |
16 |
import org.eclipse.jdt.core.*; |
14 |
import org.eclipse.jdt.core.IMember; |
17 |
import org.eclipse.jdt.core.IMember; |
15 |
import org.eclipse.jdt.core.ITypeParameter; |
18 |
import org.eclipse.jdt.core.ITypeParameter; |
Lines 32-37
Link Here
|
32 |
return super.equals(o); |
35 |
return super.equals(o); |
33 |
} |
36 |
} |
34 |
|
37 |
|
|
|
38 |
/* |
39 |
* @see JavaElement#generateInfos |
40 |
*/ |
41 |
protected void generateInfos(Object info, HashMap newElements, IProgressMonitor pm) throws JavaModelException { |
42 |
Openable openableParent = (Openable)getOpenableParent(); |
43 |
if (openableParent == null) return; |
44 |
|
45 |
JavaElementInfo openableParentInfo = (JavaElementInfo) JavaModelManager.getJavaModelManager().getInfo(openableParent); |
46 |
if (openableParentInfo == null) { |
47 |
openableParent.generateInfos(openableParent.createElementInfo(), newElements, pm); |
48 |
} |
49 |
|
50 |
if (openableParent.getElementType() == IJavaElement.CLASS_FILE) { |
51 |
ClassFileInfo classFileInfo = (ClassFileInfo) (openableParentInfo == null ? newElements.get(openableParent) : openableParentInfo); |
52 |
if (classFileInfo == null) return; |
53 |
classFileInfo.getBinaryChildren(newElements); // forces the initialization |
54 |
} |
55 |
} |
56 |
|
35 |
public String[] getBounds() throws JavaModelException { |
57 |
public String[] getBounds() throws JavaModelException { |
36 |
TypeParameterElementInfo info = (TypeParameterElementInfo) getElementInfo(); |
58 |
TypeParameterElementInfo info = (TypeParameterElementInfo) getElementInfo(); |
37 |
return CharOperation.toStrings(info.bounds); |
59 |
return CharOperation.toStrings(info.bounds); |