org.symbian.tools.mtw.core/src/org/symbian/tools/tmw/core/internal/runtimes/RuntimesManagerImpl.java
equal
deleted
inserted
replaced
24 import java.util.TreeMap; |
24 import java.util.TreeMap; |
25 |
25 |
26 import org.eclipse.core.runtime.IConfigurationElement; |
26 import org.eclipse.core.runtime.IConfigurationElement; |
27 import org.eclipse.core.runtime.Platform; |
27 import org.eclipse.core.runtime.Platform; |
28 import org.symbian.tools.tmw.core.TMWCore; |
28 import org.symbian.tools.tmw.core.TMWCore; |
29 import org.symbian.tools.tmw.core.projects.IMTWProject; |
29 import org.symbian.tools.tmw.core.projects.ITMWProject; |
30 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime; |
30 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime; |
31 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntimeManager; |
31 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntimeManager; |
32 import org.symbian.tools.tmw.core.runtimes.IPackager; |
32 import org.symbian.tools.tmw.core.runtimes.IPackager; |
33 |
33 |
34 public final class RuntimesManagerImpl implements IMobileWebRuntimeManager { |
34 public final class RuntimesManagerImpl implements IMobileWebRuntimeManager { |
70 } |
70 } |
71 final Collection<IMobileWebRuntime> rts = runtimes.values(); |
71 final Collection<IMobileWebRuntime> rts = runtimes.values(); |
72 return rts.toArray(new IMobileWebRuntime[rts.size()]); |
72 return rts.toArray(new IMobileWebRuntime[rts.size()]); |
73 } |
73 } |
74 |
74 |
75 public IPackager getPackager(IMTWProject project) { |
75 public IPackager getPackager(ITMWProject project) { |
76 return getPackager(project, project.getTargetRuntime()); |
76 return getPackager(project, project.getTargetRuntime()); |
77 } |
77 } |
78 |
78 |
79 public IPackager getPackager(IMTWProject project, IMobileWebRuntime runtime) { |
79 public IPackager getPackager(ITMWProject project, IMobileWebRuntime runtime) { |
80 if (packagers == null) { |
80 if (packagers == null) { |
81 collectPackagers(); |
81 collectPackagers(); |
82 } |
82 } |
83 final Map<IMobileWebRuntime, IPackager> map = packagers.get(runtime); |
83 final Map<IMobileWebRuntime, IPackager> map = packagers.get(runtime); |
84 if (map != null) { |
84 if (map != null) { |