blob: 10a6ebbbb3c7efa1f5e95bbb38cd6c862648edd5 [file] [log] [blame]
/*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* 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:
* SAP AG - initial API, implementation and documentation
*
* </copyright>
*
*******************************************************************************/
package org.eclipse.graphiti.testtool.sketch.features.create;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.mm.algorithms.GraphicsAlgorithm;
import org.eclipse.graphiti.mm.pictograms.AnchorContainer;
import org.eclipse.graphiti.mm.pictograms.ContainerShape;
import org.eclipse.graphiti.services.Graphiti;
/**
* The Class SketchCreateGaContainerFeature.
*/
public class SketchCreateGaContainerFeature extends SketchCreateGaFeature {
/**
* Instantiates a new sketch create ga container feature.
*
* @param fp
* the fp
* @param name
* the name
* @param description
* the description
* @param gaType
* the ga type
*/
public SketchCreateGaContainerFeature(IFeatureProvider fp, String name, String description, Class<? extends GraphicsAlgorithm> gaType) {
super(fp, name, description, gaType);
}
@Override
protected AnchorContainer createAnchorContainer(ContainerShape targetContainer) {
return Graphiti.getPeCreateService().createContainerShape(targetContainer, true);
}
}