| /****************************************************************************** |
| * Copyright (c) 2002, 2003, 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ****************************************************************************/ |
| |
| package org.eclipse.gmf.runtime.draw2d.ui.render.internal; |
| |
| import org.eclipse.core.runtime.Plugin; |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| |
| /** |
| * @author melaasar |
| */ |
| public class Draw2dRenderPlugin |
| extends AbstractUIPlugin { |
| |
| /** the plugin singleton */ |
| private static Plugin singleton; |
| |
| /** |
| * Method getInstance. |
| * |
| * @return Plugin |
| */ |
| public static Plugin getInstance() { |
| return singleton; |
| } |
| |
| /** |
| * Retrieves the unique identifier of this plug-in. |
| * |
| * @return A non-empty string and is unique within the plug-in registry. |
| */ |
| public static String getPluginId() { |
| return getInstance().getBundle().getSymbolicName(); |
| } |
| |
| public Draw2dRenderPlugin() { |
| super(); |
| if (singleton == null) |
| singleton = this; |
| } |
| |
| } |