29 import org.eclipse.core.resources.IFile; |
29 import org.eclipse.core.resources.IFile; |
30 import org.eclipse.core.runtime.CoreException; |
30 import org.eclipse.core.runtime.CoreException; |
31 import org.eclipse.core.runtime.Path; |
31 import org.eclipse.core.runtime.Path; |
32 import org.eclipse.ui.IMemento; |
32 import org.eclipse.ui.IMemento; |
33 import org.eclipse.ui.XMLMemento; |
33 import org.eclipse.ui.XMLMemento; |
34 import org.symbian.tools.tmw.core.projects.IMTWProject; |
34 import org.symbian.tools.tmw.core.projects.ITMWProject; |
35 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget; |
35 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget; |
36 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
36 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
37 |
37 |
38 public class ProjectMemo { |
38 public class ProjectMemo { |
39 private static final String TARGET_TYPE = "typeId"; |
39 private static final String TARGET_TYPE = "typeId"; |
40 private static final String TARGET = "targetId"; |
40 private static final String TARGET = "targetId"; |
41 private static final String TARGET_CONFIGURATION = "target"; |
41 private static final String TARGET_CONFIGURATION = "target"; |
42 private static final String MEMO_TYPE = "deployment"; |
42 private static final String MEMO_TYPE = "deployment"; |
43 |
43 |
44 private final IMTWProject project; |
44 private final ITMWProject project; |
45 private XMLMemento memento; |
45 private XMLMemento memento; |
46 |
46 |
47 public ProjectMemo(IMTWProject project) { |
47 public ProjectMemo(ITMWProject project) { |
48 this.project = project; |
48 this.project = project; |
49 } |
49 } |
50 |
50 |
51 public synchronized void setDeploymentTarget(String providerId, IDeploymentTarget target) { |
51 public synchronized void setDeploymentTarget(String providerId, IDeploymentTarget target) { |
52 try { |
52 try { |