Lines 25-30
Link Here
|
25 |
import org.eclipse.wst.common.componentcore.ComponentCore; |
25 |
import org.eclipse.wst.common.componentcore.ComponentCore; |
26 |
import org.eclipse.wst.common.componentcore.internal.ModulecorePlugin; |
26 |
import org.eclipse.wst.common.componentcore.internal.ModulecorePlugin; |
27 |
import org.eclipse.wst.common.componentcore.internal.impl.WTPModulesResourceFactory; |
27 |
import org.eclipse.wst.common.componentcore.internal.impl.WTPModulesResourceFactory; |
|
|
28 |
import org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent; |
28 |
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; |
29 |
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; |
29 |
import org.eclipse.wst.common.componentcore.resources.IVirtualReference; |
30 |
import org.eclipse.wst.common.componentcore.resources.IVirtualReference; |
30 |
|
31 |
|
Lines 40-48
Link Here
|
40 |
* {A, B} } |
41 |
* {A, B} } |
41 |
*/ |
42 |
*/ |
42 |
private Map<IProject, Set<IProject>> graph = null; |
43 |
private Map<IProject, Set<IProject>> graph = null; |
43 |
|
44 |
|
44 |
private long modStamp = 0; |
45 |
private long modStamp = 0; |
45 |
|
46 |
|
|
|
47 |
private Map<String, Object> referenceOptions = new HashMap<String, Object>(); |
48 |
|
49 |
|
46 |
/** |
50 |
/** |
47 |
* This is not public; only {@link IDependencyGraph#INSTANCE} should be |
51 |
* This is not public; only {@link IDependencyGraph#INSTANCE} should be |
48 |
* used. |
52 |
* used. |
Lines 153-158
Link Here
|
153 |
*/ |
157 |
*/ |
154 |
private void initGraph() { |
158 |
private void initGraph() { |
155 |
synchronized (graphLock) { |
159 |
synchronized (graphLock) { |
|
|
160 |
referenceOptions.put("GET_JAVA_REFS", Boolean.FALSE); |
161 |
referenceOptions.put("GET_FUZZY_EAR_REFS", Boolean.FALSE); |
156 |
try { |
162 |
try { |
157 |
preUpdate(); |
163 |
preUpdate(); |
158 |
graph = new HashMap<IProject, Set<IProject>>(); |
164 |
graph = new HashMap<IProject, Set<IProject>>(); |
Lines 300-306
Link Here
|
300 |
for (IProject sourceProject : allProjects) { |
306 |
for (IProject sourceProject : allProjects) { |
301 |
IVirtualComponent component = ComponentCore.createComponent(sourceProject); |
307 |
IVirtualComponent component = ComponentCore.createComponent(sourceProject); |
302 |
if (component != null) { |
308 |
if (component != null) { |
303 |
IVirtualReference[] references = component.getReferences(); |
309 |
IVirtualReference[] references = ((VirtualComponent)component).getReferences(referenceOptions); |
304 |
for (IVirtualReference ref : references) { |
310 |
for (IVirtualReference ref : references) { |
305 |
IVirtualComponent targetComponent = ref.getReferencedComponent(); |
311 |
IVirtualComponent targetComponent = ref.getReferencedComponent(); |
306 |
if (targetComponent != null) { |
312 |
if (targetComponent != null) { |
Lines 320-326
Link Here
|
320 |
IVirtualComponent component = ComponentCore.createComponent(sourceProject); |
326 |
IVirtualComponent component = ComponentCore.createComponent(sourceProject); |
321 |
if (component != null) { |
327 |
if (component != null) { |
322 |
validRefs.clear(); |
328 |
validRefs.clear(); |
323 |
IVirtualReference[] references = component.getReferences(); |
329 |
IVirtualReference[] references = ((VirtualComponent)component).getReferences(referenceOptions); |
324 |
for (IVirtualReference ref : references) { |
330 |
for (IVirtualReference ref : references) { |
325 |
IVirtualComponent targetComponent = ref.getReferencedComponent(); |
331 |
IVirtualComponent targetComponent = ref.getReferencedComponent(); |
326 |
if (targetComponent != null) { |
332 |
if (targetComponent != null) { |