blob: ea8ee799e25ebd890b1705cce899d600a733ddf0 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2002, 2005 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.common.ui.printing.internal;
import org.eclipse.core.runtime.Plugin;
/**
* The main plugin class to be used in the desktop.
*
* @author wdiu Wayne Diu
*/
public class PrintingPlugin
extends Plugin {
/**
* The shared instance.
*/
private static PrintingPlugin plugin;
/**
* The constructor.
*/
public PrintingPlugin() {
super();
plugin = this;
}
/**
* Returns the shared instance.
*
* @return PrintPreviewPlugin
*/
public static PrintingPlugin getDefault() {
return plugin;
}
/**
* Retrieves the unique identifier of this plug-in.
*
* @return A non-empty string which is unique within the plug-in registry.
*/
public static String getPluginId() {
return getDefault().getBundle().getSymbolicName();
}
}