Merging code from trunk that fixes #774, this work was done by incastrix
[phpeclipse.git] / net.sourceforge.phpeclipse.smarty.ui / src / net / sourceforge / phpdt / smarty / ui / SmartyUI.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: SmartyUI.java,v 1.1 2004-09-03 17:31:18 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpdt.smarty.ui;
15
16 import org.eclipse.ui.plugin.AbstractUIPlugin;
17
18 /**
19  * The main plugin class to be used in the desktop.
20  */
21 public class SmartyUI extends AbstractUIPlugin {
22
23         // Class Variables ---------------------------------------------------------
24
25         /** The shared instance. */
26         private static SmartyUI plugin;
27
28         // Constructors ------------------------------------------------------------
29
30         /**
31          * The constructor.
32          */
33         public SmartyUI() {
34                 plugin = this;
35         }
36
37         // Public Methods ----------------------------------------------------------
38
39         /**
40          * Returns the shared instance.
41          */
42         public static SmartyUI getDefault() {
43                 return plugin;
44         }
45 }