| /********************************************************************* |
| * Copyright (c) 2005, 2019 SAP SE |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * Contributors: |
| * SAP SE - initial API, implementation and documentation |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.internal; |
| |
| import org.eclipse.emf.common.util.BasicEList; |
| import org.eclipse.emf.common.util.EList; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.impl.EObjectImpl; |
| import org.eclipse.graphiti.mm.Property; |
| import org.eclipse.graphiti.mm.pictograms.PictogramElement; |
| import org.eclipse.graphiti.mm.pictograms.PictogramLink; |
| |
| /** |
| * The Class ExternalPictogramLink. |
| * |
| * @noinstantiate This class is not intended to be instantiated by clients. |
| * @noextend This class is not intended to be subclassed by clients. |
| */ |
| public class ExternalPictogramLink extends EObjectImpl implements PictogramLink { |
| |
| public static final String KEY_INDEPENDENT_PROPERTY = "independentObject"; //$NON-NLS-1$ |
| |
| private PictogramElement pictogramElement; |
| |
| /** |
| * The Constructor. |
| */ |
| public ExternalPictogramLink() { |
| super(); |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.graphiti.mm.links.PictogramLink#getBusinessObjects() |
| */ |
| public EList<EObject> getBusinessObjects() { |
| throw new UnsupportedOperationException("Please use DataMapping.getBusinessObject(PictogramLink link)"); //$NON-NLS-1$ |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.graphiti.mm.links.PictogramLink#getPictogramElement() |
| */ |
| public PictogramElement getPictogramElement() { |
| return pictogramElement; |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see |
| * org.eclipse.graphiti.mm.links.PictogramLink#setPictogramElement(org.eclipse |
| * .graphiti.mm.pictograms.PictogramElement) |
| */ |
| public void setPictogramElement(PictogramElement newValue) { |
| pictogramElement = newValue; |
| } |
| |
| public EList<Property> getProperties() { |
| return new BasicEList<Property>(); |
| } |
| |
| } |