X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdiagram%2Fhandler%2FSubstituteElementClass.java;h=ea3d94acdff44409aac00b1fd7f6072324878b4a;hb=a43df9e895f022132f9b94dfedeae78fb4eed712;hp=bb69a599d8f867f44a0b3198503e2fd0d6c0027b;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/SubstituteElementClass.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/SubstituteElementClass.java index bb69a599d..ea3d94acd 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/SubstituteElementClass.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/SubstituteElementClass.java @@ -1,33 +1,33 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.g2d.diagram.handler; - -import org.simantics.g2d.diagram.IDiagram; -import org.simantics.g2d.element.ElementClass; - -/** - * HACK mechanism TODO REMOVE - * - * The purpose of this handler is to create a element class from an existing one - * in such a way that it is compiled to be used with the specified diagram. - * - * This is hacky, but is at the moment needed for copying elements from one - * diagram to another because the element classes sometimes need to be augmented - * with diagram specified handlers. - * - * @author Tuukka Lehtonen - */ -public interface SubstituteElementClass extends DiagramHandler { - - ElementClass substitute(IDiagram d, ElementClass ec); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.g2d.diagram.handler; + +import org.simantics.g2d.diagram.IDiagram; +import org.simantics.g2d.element.ElementClass; + +/** + * HACK mechanism TODO REMOVE + * + * The purpose of this handler is to create a element class from an existing one + * in such a way that it is compiled to be used with the specified diagram. + * + * This is hacky, but is at the moment needed for copying elements from one + * diagram to another because the element classes sometimes need to be augmented + * with diagram specified handlers. + * + * @author Tuukka Lehtonen + */ +public interface SubstituteElementClass extends DiagramHandler { + + ElementClass substitute(IDiagram d, ElementClass ec); + +}