X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.core/src/net/sourceforge/phpeclipse/core/WebCore.java b/net.sourceforge.phpeclipse.core/src/net/sourceforge/phpeclipse/core/WebCore.java new file mode 100644 index 0000000..52621b2 --- /dev/null +++ b/net.sourceforge.phpeclipse.core/src/net/sourceforge/phpeclipse/core/WebCore.java @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2004 Christopher Lenz and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * Christopher Lenz - initial API and implementation + * + * $Id: WebCore.java,v 1.1 2004-09-02 18:05:22 jsurfer Exp $ + */ + +package net.sourceforge.phpeclipse.core; + +import org.eclipse.core.runtime.Plugin; + +//import net.sourceforge.phpeclipse.core.parser.ISourceParser; + +/** + * The main plugin class to be used in the desktop. + */ +public class WebCore extends Plugin { + + // Instance Variables ------------------------------------------------------ + + /** The shared instance. */ + private static WebCore plugin; + + // Constructors ------------------------------------------------------------ + + /** + * The constructor. + */ + public WebCore() { + plugin = this; + } + + // Public Methods ---------------------------------------------------------- + + /** + * Returns the shared instance. + */ + public static WebCore getDefault() { + return plugin; + } + + /** + * Creates and returns a parser that can handle resources of the specified + * MIME type. + * + * @param mimeType the MIME type of the resource for which a parser should + * be created + * @return the instantiated parser, or null if no parser for that + * MIME type is registered + */ +// public ISourceParser createParser(String mimeType) { +// return null; +// } +}