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%2FProxyEnabled.java;h=b66b3644abf4571ddbdfa3a52a50d8376b2207cb;hb=refs%2Fchanges%2F38%2F238%2F2;hp=9c8a6d6b65d536725428d19dfe63ef6a5d361656;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyEnabled.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyEnabled.java index 9c8a6d6b6..b66b3644a 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyEnabled.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyEnabled.java @@ -1,41 +1,41 @@ -/******************************************************************************* - * 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.element.IElement; -import org.simantics.g2d.element.handler.Stateful; - -/** - * @author Toni Kalajainen - */ -public class ProxyEnabled implements Stateful { - - private static final long serialVersionUID = -8676152146283749592L; - - Stateful orig; - IProxyProvider provider; - - public ProxyEnabled(IProxyProvider provider, Stateful orig) { - this.provider = provider; - this.orig = orig; - } - - @Override - public boolean isEnabled(IElement e) { - return orig.isEnabled(e); - } - - @Override - public void setEnabled(IElement e, boolean enabled) { - orig.setEnabled(e, enabled); - } -} +/******************************************************************************* + * 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.element.IElement; +import org.simantics.g2d.element.handler.Stateful; + +/** + * @author Toni Kalajainen + */ +public class ProxyEnabled implements Stateful { + + private static final long serialVersionUID = -8676152146283749592L; + + Stateful orig; + IProxyProvider provider; + + public ProxyEnabled(IProxyProvider provider, Stateful orig) { + this.provider = provider; + this.orig = orig; + } + + @Override + public boolean isEnabled(IElement e) { + return orig.isEnabled(e); + } + + @Override + public void setEnabled(IElement e, boolean enabled) { + orig.setEnabled(e, enabled); + } +}