org.symbian.tools.mtw.core/src/org/symbian/tools/mtw/core/MTWCore.java
changeset 461 7a8f9fa8d278
parent 460 c0bff5ed874c
child 462 cdc4995b1677
--- a/org.symbian.tools.mtw.core/src/org/symbian/tools/mtw/core/MTWCore.java	Thu Jul 29 15:59:01 2010 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-package org.symbian.tools.mtw.core;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.osgi.framework.BundleContext;
-import org.symbian.tools.mtw.core.internal.projects.ProjectsSupportManager;
-import org.symbian.tools.mtw.core.internal.runtimes.RuntimesManagerImpl;
-import org.symbian.tools.mtw.core.projects.IMTWProject;
-import org.symbian.tools.mtw.core.runtimes.IMobileWebRuntimeManager;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class MTWCore extends Plugin {
-
-    // The plug-in ID
-    public static final String PLUGIN_ID = "org.symbian.tools.mtw.core"; //$NON-NLS-1$
-
-    // The shared instance
-    private static MTWCore plugin;
-
-    private final IMobileWebRuntimeManager runtimesManager = new RuntimesManagerImpl();
-    private final ProjectsSupportManager projectsSupport = new ProjectsSupportManager();
-
-    /**
-     * The constructor
-     */
-    public MTWCore() {
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
-     */
-    public void start(BundleContext context) throws Exception {
-        super.start(context);
-        plugin = this;
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
-     */
-    public void stop(BundleContext context) throws Exception {
-        plugin = null;
-        super.stop(context);
-    }
-
-    public IMobileWebRuntimeManager getRuntimesManager() {
-        return runtimesManager;
-    }
-
-    public IMTWProject create(IProject project) {
-        return projectsSupport.create(project);
-    }
-
-    /**
-     * Returns the shared instance
-     *
-     * @return the shared instance
-     */
-    public static MTWCore getDefault() {
-        return plugin;
-    }
-
-    public static void log(String message, Exception exception) {
-        getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, message, exception));
-    }
-
-    public static void log(String message, Object... args) {
-        log(String.format(message, args), (Exception) null);
-    }
-}