blob: 447692eba3355bd919489381223b1d7d9774fbd0 [file] [log] [blame]
/*******************************************************************************
* <copyright>
*
* Copyright (c) 2013, 2013 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.fmc.blockdiagram.editor.meta.features.update;
import org.eclipse.fmc.blockdiagram.editor.meta.profile.IStereotypeProvider;
import org.eclipse.fmc.blockdiagram.editor.meta.util.DotsConnectionHelper;
import org.eclipse.fmc.mm.FMCNode;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.mm.pictograms.ContainerShape;
/**
* Feature Class for updating the graphical representation and the business
* model of a Storage.
*
* @author Patrick Jahnke
*
*/
public class StorageUpdateMetaFeature extends FMCNodeUpdateFeature {
/**
* Constructor just calls the super constructor.
*
* @param fp
* The FeatureProvider
* @param stereotypeProvider
* The StereotypeProvider Class.
*/
public StorageUpdateMetaFeature(IFeatureProvider fp,
IStereotypeProvider stereotypeProvider) {
super(fp, stereotypeProvider);
}
/**
* Calls the DotsConnectionHelper to check if the ContainerShape has a
* graphical multiplicity representation.
*/
@Override
protected boolean gaphicalMultiplicity(ContainerShape container,
FMCNode node) {
return new DotsConnectionHelper().graphicalMultiplicity(container, node);
}
}