diff -r 12b549765c34 -r f1087591ff71 org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/MTWCoreUI.java --- a/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/MTWCoreUI.java Wed Jul 28 14:07:39 2010 -0700 +++ b/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/MTWCoreUI.java Wed Jul 28 15:43:33 2010 -0700 @@ -10,12 +10,15 @@ import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; import org.symbian.tools.mtw.core.projects.IMTWProject; +import org.symbian.tools.mtw.internal.deployment.DeploymentTargetPresentationsManager; +import org.symbian.tools.mtw.internal.deployment.DeploymentTargetTypesRegistry; /** * The activator class controls the plug-in life cycle */ public class MTWCoreUI extends AbstractUIPlugin { private final Map MEMOS = new WeakHashMap(); + private final DeploymentTargetTypesRegistry typesRegistry = new DeploymentTargetTypesRegistry(); // The plug-in ID public static final String PLUGIN_ID = "org.symbian.tools.mtw.ui"; //$NON-NLS-1$ @@ -23,6 +26,7 @@ // The shared instance private static MTWCoreUI plugin; private Images images; + private final DeploymentTargetPresentationsManager presentations = new DeploymentTargetPresentationsManager(); /** * The constructor @@ -66,6 +70,10 @@ getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, message, e)); } + public static void log(String message, Object... args) { + log(String.format(message, args), (Exception) null); + } + public static void log(Exception e) { log(null, e); } @@ -83,10 +91,18 @@ return memo; } + public DeploymentTargetTypesRegistry getDeploymentTypesRegistry() { + return typesRegistry; + } + public static Images getImages() { if (getDefault().images == null) { getDefault().images = new Images(getDefault().getImageRegistry()); } return getDefault().images; } + + public DeploymentTargetPresentationsManager getPresentations() { + return presentations; + } }