A massive organize imports and formatting of the sources using default Eclipse code...
[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.2 2006-10-21 23:14:29 pombredanne 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
53          *            the MIME type of the resource for which a parser should be
54          *            created
55          * @return the instantiated parser, or <tt>null</tt> if no parser for that
56          *         MIME type is registered
57          */
58         // public ISourceParser createParser(String mimeType) {
59         // return null;
60         // }
61 }