/*******************************************************************************
* Copyright (c) 2007, 2015 Borland Software 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:
* Borland Software Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.m2m.internal.qvt.oml.runtime.project;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.m2m.internal.qvt.oml.common.project.DeployedTransformation;
import org.eclipse.m2m.internal.qvt.oml.common.project.IRegistryConstants;
import org.eclipse.m2m.internal.qvt.oml.common.project.TransformationRegistry;
import org.eclipse.m2m.internal.qvt.oml.runtime.QvtRuntimePlugin;
public class QvtTransformationRegistry extends TransformationRegistry {
private QvtTransformationRegistry() {
super(POINT);
}
public static QvtTransformationRegistry getInstance() {
return ourInstance;
}
@Override
protected DeployedTransformation makeTransformation(IConfigurationElement element) {
String namespace = element.getNamespaceIdentifier();
String id = element.getAttribute(IRegistryConstants.ID);
String file = element.getAttribute(IRegistryConstants.FILE);
return new DeployedTransformationImpl(namespace, id, file);
}
private static final QvtTransformationRegistry ourInstance = new QvtTransformationRegistry();
public static final String POINT = QvtRuntimePlugin.ID + ".qvtTransformation"; //$NON-NLS-1$
}