blob: 96925937a3a0d6d54a1075e7ce9fab8fd8895983 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2015 Christian W. Damus 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:
* Christian W. Damus - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.sysml.diagram.blockdefinition.provider;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.gmf.diagram.common.provider.SysMLVisualTypeProvider;
import org.eclipse.papyrus.uml.diagram.clazz.providers.UMLVisualTypeProvider;
/**
* Visual type provider for the SysML Block Diagram.
*/
public class BlockDefinitionVisualTypeProvider extends SysMLVisualTypeProvider {
public BlockDefinitionVisualTypeProvider() {
super(new CustomGraphicalTypeRegistry(), new UMLVisualTypeProvider());
}
@Override
protected IElementType getCustomElementType(String viewType) {
return ElementTypes.getElementTypeByID(viewType);
}
}