intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / net.sourceforge.phpeclipse.core / src / net / sourceforge / phpeclipse / core / WebCore.java
1 /*
2  * Copyright (c) 2004 Christopher Lenz and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API and implementation
10  * 
11  * $Id: WebCore.java,v 1.1 2004-09-02 18:05:22 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.core;
15
16 import org.eclipse.core.runtime.Plugin;
17
18 //import net.sourceforge.phpeclipse.core.parser.ISourceParser;
19
20 /**
21  * The main plugin class to be used in the desktop.
22  */
23 public class WebCore extends Plugin {
24
25         // Instance Variables ------------------------------------------------------
26
27         /** The shared instance. */
28         private static WebCore plugin;
29
30         // Constructors ------------------------------------------------------------
31
32         /**
33          * The constructor.
34          */
35         public WebCore() {
36                 plugin = this;
37         }
38
39         // Public Methods ----------------------------------------------------------
40
41         /**
42          * Returns the shared instance.
43          */
44         public static WebCore getDefault() {
45                 return plugin;
46         }
47
48         /**
49          * Creates and returns a parser that can handle resources of the specified
50          * MIME type.
51          * 
52          * @param mimeType the MIME type of the resource for which a parser should
53          *        be created
54          * @return the instantiated parser, or <tt>null</tt> if no parser for that
55          *         MIME type is registered
56          */
57 //      public ISourceParser createParser(String mimeType) {
58 //              return null;
59 //      }
60 }