blob: 489e1a7c7d05b39384f02111e719d2bdf7c328fe [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2005, 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.diagram.ui.providers.ide.internal;
import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
* The main plugin class to be used in the desktop.
*
* @author Wayne Diu, wdiu
*/
public class DiagramProvidersIDEPlugin
extends AbstractUIPlugin {
/**
* The shared plugin instance.
*/
private static DiagramProvidersIDEPlugin plugin;
/**
* The constructor.
*/
public DiagramProvidersIDEPlugin() {
super();
plugin = this;
}
/**
* Returns the shared instance.
*/
public static DiagramProvidersIDEPlugin getInstance() {
return plugin;
}
/**
* 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();
}
}