| /********************************************************************* |
| * 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 |
| * mwenz - Bug 325084 - Provide documentation for Patterns |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.pattern; |
| |
| import org.eclipse.graphiti.mm.pictograms.PictogramElement; |
| |
| /** |
| * The marker interface IFeatureProviderWithPatterns that marks a feature |
| * provider to deal with patterns. Clients should not use this interface |
| * directly but instead extend {@link DefaultFeatureProviderWithPatterns}. |
| * |
| * @noimplement This interface is not intended to be implemented by clients. |
| * @noextend This interface is not intended to be extended by clients. Extend |
| * {@link DefaultFeatureProviderWithPatterns} instead |
| */ |
| public interface IFeatureProviderWithPatterns extends IPatternContainer { |
| |
| /** |
| * Activate direct editing for patterns. |
| * |
| * @param mainPictogramElement |
| * the main pictogram element |
| * @param bo |
| * the business object |
| */ |
| void activateDirectEditingForPatterns(PictogramElement mainPictogramElement, Object bo); |
| |
| /** |
| * Activate direct editing for patterns. |
| * |
| * @param mainPictogramElement |
| * the main pictogram element |
| * @param bo |
| * the business object |
| * @param keyProperty |
| * the key property |
| */ |
| void activateDirectEditingForPatterns(PictogramElement mainPictogramElement, Object bo, String keyProperty); |
| |
| /** |
| * Gets the pattern for pictogram element. |
| * |
| * @param pictogramElement |
| * the pictogram element |
| * |
| * @return the pattern for pictogram element |
| */ |
| IPattern getPatternForPictogramElement(PictogramElement pictogramElement); |
| } |