blob: e3ec41a1331775334289571b1d7b5879c225c3b9 [file] [log] [blame]
/*
* Copyright (c) 2009, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey - 535301
*
*/
package org.eclipse.uml2.common;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
/**
* @since 1.5
*/
public class CommonPlugin
extends EMFPlugin {
/**
* The singleton instance of the plugin.
*/
public static final CommonPlugin INSTANCE = new CommonPlugin();
/**
* The one instance of this class.
*/
private static Implementation plugin;
/**
* Creates the singleton instance.
*/
private CommonPlugin() {
super(new ResourceLocator[]{});
}
/**
* Returns the singleton instance of the plugin.
*
* @return the singleton instance.
*/
@Override
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
/**
* The actual implementation of the <b>Plugin</b>.
*/
public static class Implementation
extends EclipsePlugin {
public Implementation() {
super();
plugin = this;
}
}
}