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%2FStateful.java;h=ab2028d1e939412268605e4c9a02c062cc52b236;hb=68494955c9ee84aa894508b9f954ae16cfccce53;hp=ee9bca281c395ab75a6f75bd1c88ad91929ecda0;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Stateful.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Stateful.java index ee9bca281..ab2028d1e 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Stateful.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/Stateful.java @@ -1,30 +1,30 @@ -/******************************************************************************* - * 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.handler.impl.EnabledImpl; - -/** - * - * @See {@link EnabledImpl} implementation - * @author Toni Kalajainen - */ -public interface Stateful extends ElementHandler { - - public static final EnabledImpl ENABLED_BY_DEFAULT = EnabledImpl.ENABLED_BY_DEFAULT; - public static final EnabledImpl DISABLED_BY_DEFAULT = EnabledImpl.DISABLED_BY_DEFAULT; - - boolean isEnabled(IElement e); - void setEnabled(IElement e, boolean 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; + +import org.simantics.g2d.element.IElement; +import org.simantics.g2d.element.handler.impl.EnabledImpl; + +/** + * + * @See {@link EnabledImpl} implementation + * @author Toni Kalajainen + */ +public interface Stateful extends ElementHandler { + + public static final EnabledImpl ENABLED_BY_DEFAULT = EnabledImpl.ENABLED_BY_DEFAULT; + public static final EnabledImpl DISABLED_BY_DEFAULT = EnabledImpl.DISABLED_BY_DEFAULT; + + boolean isEnabled(IElement e); + void setEnabled(IElement e, boolean enabled); + +}