X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Felement%2Fhandler%2FParent.java;h=eeda68c991b1acb1b7f5d976f0d84ebea362420e;hb=a43df9e895f022132f9b94dfedeae78fb4eed712;hp=9602132b527920bba2303949cee4ad7e2e9b4bac;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Parent.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Parent.java index 9602132b5..eeda68c99 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Parent.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Parent.java @@ -1,32 +1,32 @@ -/******************************************************************************* - * 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.element.handler; - -import org.simantics.g2d.element.IElement; -import org.simantics.g2d.element.ElementClass.Single; - -/** - * A handler for retrieving the parent element of a of an element. Elements can - * receive a parent when they are grouped. - * - * @author Tuukka Lehtonen - */ -@Single -public interface Parent extends ElementHandler { - - /** - * @param element the element to check for a parent element - * @return null if the specified element has no parent element. - */ - IElement getParent(IElement element); - -} +/******************************************************************************* + * 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.element.handler; + +import org.simantics.g2d.element.IElement; +import org.simantics.g2d.element.ElementClass.Single; + +/** + * A handler for retrieving the parent element of a of an element. Elements can + * receive a parent when they are grouped. + * + * @author Tuukka Lehtonen + */ +@Single +public interface Parent extends ElementHandler { + + /** + * @param element the element to check for a parent element + * @return null if the specified element has no parent element. + */ + IElement getParent(IElement element); + +}