X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Felement%2Fhandler%2Fimpl%2Fproxy%2FProxyPick.java;h=5ef3026ec28331e4229c02b71cbfe9b3bbe57725;hb=7588a1d7623526b41c965fe1ac76cf1e9e91ae05;hp=8ceaf8fd2951080d204f137356d0368943002ec6;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyPick.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyPick.java index 8ceaf8fd2..5ef3026ec 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyPick.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyPick.java @@ -1,40 +1,40 @@ -/******************************************************************************* - * 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.impl.proxy; - -import java.awt.Shape; - -import org.simantics.g2d.diagram.handler.PickRequest.PickPolicy; -import org.simantics.g2d.element.IElement; -import org.simantics.g2d.element.handler.Pick; - -/** - * @author Toni Kalajainen - */ -public class ProxyPick implements Pick { - - private static final long serialVersionUID = 7045385767576576902L; - - Pick orig; - IProxyProvider provider; - - public ProxyPick(IProxyProvider provider, Pick orig) { - this.provider = provider; - this.orig = orig; - } - - @Override - public boolean pickTest(IElement e, Shape s, PickPolicy policy) { - return orig.pickTest(e, s, policy); - } - -} +/******************************************************************************* + * 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.impl.proxy; + +import java.awt.Shape; + +import org.simantics.g2d.diagram.handler.PickRequest.PickPolicy; +import org.simantics.g2d.element.IElement; +import org.simantics.g2d.element.handler.Pick; + +/** + * @author Toni Kalajainen + */ +public class ProxyPick implements Pick { + + private static final long serialVersionUID = 7045385767576576902L; + + Pick orig; + IProxyProvider provider; + + public ProxyPick(IProxyProvider provider, Pick orig) { + this.provider = provider; + this.orig = orig; + } + + @Override + public boolean pickTest(IElement e, Shape s, PickPolicy policy) { + return orig.pickTest(e, s, policy); + } + +}