org.symbian.tools.mtw.core/src/org/symbian/tools/tmw/core/internal/runtimes/RuntimeClasspathManager.java
equal
deleted
inserted
replaced
39 import org.eclipse.wst.jsdt.core.IIncludePathEntry; |
39 import org.eclipse.wst.jsdt.core.IIncludePathEntry; |
40 import org.symbian.tools.tmw.core.TMWCore; |
40 import org.symbian.tools.tmw.core.TMWCore; |
41 import org.symbian.tools.tmw.core.internal.projects.LazyIncludePathProvider; |
41 import org.symbian.tools.tmw.core.internal.projects.LazyIncludePathProvider; |
42 import org.symbian.tools.tmw.core.internal.projects.StaticIncludePathProvider; |
42 import org.symbian.tools.tmw.core.internal.projects.StaticIncludePathProvider; |
43 import org.symbian.tools.tmw.core.projects.IFacetIncludePathProvider; |
43 import org.symbian.tools.tmw.core.projects.IFacetIncludePathProvider; |
44 import org.symbian.tools.tmw.core.projects.IMTWProject; |
44 import org.symbian.tools.tmw.core.projects.ITMWProject; |
45 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime; |
45 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime; |
46 |
46 |
47 @SuppressWarnings("restriction") |
47 @SuppressWarnings("restriction") |
48 public class RuntimeClasspathManager { |
48 public class RuntimeClasspathManager { |
49 private static final class VersionedEntry<T> { |
49 private static final class VersionedEntry<T> { |
108 private final Map<String, Collection<VersionedEntry<Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>>>>> providers = new HashMap<String, Collection<VersionedEntry<Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>>>>>(); |
108 private final Map<String, Collection<VersionedEntry<Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>>>>> providers = new HashMap<String, Collection<VersionedEntry<Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>>>>>(); |
109 private final boolean ready = false; |
109 private final boolean ready = false; |
110 |
110 |
111 public IIncludePathEntry[] getProjectClasspathEntries(IFacetedProject project) { |
111 public IIncludePathEntry[] getProjectClasspathEntries(IFacetedProject project) { |
112 collectProviders(); |
112 collectProviders(); |
113 final IMTWProject p = TMWCore.create(project.getProject()); |
113 final ITMWProject p = TMWCore.create(project.getProject()); |
114 if (p != null) { |
114 if (p != null) { |
115 final IMobileWebRuntime runtime = p.getTargetRuntime(); |
115 final IMobileWebRuntime runtime = p.getTargetRuntime(); |
116 final Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>> facetToEntry; |
116 final Map<String, Collection<VersionedEntry<IFacetIncludePathProvider[]>>> facetToEntry; |
117 if (runtime != null) { |
117 if (runtime != null) { |
118 facetToEntry = join(getMatchingEntries(runtime.getId(), runtime.getVersion(), providers)); |
118 facetToEntry = join(getMatchingEntries(runtime.getId(), runtime.getVersion(), providers)); |