X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Felement%2Fhandler%2Fimpl%2Fproxy%2FProxyClickable.java;h=4e9a712cefd7745e107c0b93e33128197987241f;hp=80d8a6ba1fee020a88f5fab5ce09153c55d7ac1e;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyClickable.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyClickable.java index 80d8a6ba1..4e9a712ce 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyClickable.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyClickable.java @@ -1,48 +1,48 @@ -/******************************************************************************* - * 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 org.simantics.g2d.canvas.ICanvasContext; -import org.simantics.g2d.element.IElement; -import org.simantics.g2d.element.handler.Clickable; -import org.simantics.utils.threads.IThreadWorkQueue; - -/** - * @author Toni Kalajainen - */ -public class ProxyClickable implements Clickable { - - private static final long serialVersionUID = 6971899752468214141L; - Clickable orig; - IProxyProvider provider; - - public ProxyClickable(IProxyProvider provider, Clickable orig) { - this.provider = provider; - this.orig = orig; - } - - @Override - public void addListener(IElement e, ICanvasContext ctx, IThreadWorkQueue ta, ClickListener listener) { - orig.addListener(e, ctx, ta, listener); - } - - @Override - public PressStatus getPressStatus(IElement e, ICanvasContext ctx) { - return orig.getPressStatus(e, ctx); - } - - @Override - public void removeListener(IElement e, ICanvasContext ctx, IThreadWorkQueue ta, ClickListener listener) { - orig.removeListener(e, ctx, ta, listener); - } - -} +/******************************************************************************* + * 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 org.simantics.g2d.canvas.ICanvasContext; +import org.simantics.g2d.element.IElement; +import org.simantics.g2d.element.handler.Clickable; +import org.simantics.utils.threads.IThreadWorkQueue; + +/** + * @author Toni Kalajainen + */ +public class ProxyClickable implements Clickable { + + private static final long serialVersionUID = 6971899752468214141L; + Clickable orig; + IProxyProvider provider; + + public ProxyClickable(IProxyProvider provider, Clickable orig) { + this.provider = provider; + this.orig = orig; + } + + @Override + public void addListener(IElement e, ICanvasContext ctx, IThreadWorkQueue ta, ClickListener listener) { + orig.addListener(e, ctx, ta, listener); + } + + @Override + public PressStatus getPressStatus(IElement e, ICanvasContext ctx) { + return orig.getPressStatus(e, ctx); + } + + @Override + public void removeListener(IElement e, ICanvasContext ctx, IThreadWorkQueue ta, ClickListener listener) { + orig.removeListener(e, ctx, ta, listener); + } + +}