X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.layer0.utils%2Fsrc%2Forg%2Fsimantics%2Flayer0%2Futils%2Foperations%2FIOperation.java;h=641817408b027dcab93ca0b277f81739fd4928d7;hb=9c6fc8525df9a7d713cee3ef4c1fee058dc4b3c5;hp=50fcb65447df0d493c8f08c713679fcd8d1d534f;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/operations/IOperation.java b/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/operations/IOperation.java index 50fcb6544..641817408 100644 --- a/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/operations/IOperation.java +++ b/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/operations/IOperation.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * 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.layer0.utils.operations; - -import org.simantics.db.Session; -import org.simantics.utils.datastructures.persistent.IContextMap; - -/** - * To define an icon for an IOperation, define a resource adapter for the - * org.simantics.ui.icons.ImageDescriptorProvider - * interface. - */ -public interface IOperation { - - public static final Object SUBJECT = new Object() { - public String toString() { return "SUBJECT"; } - }; - - public static final Object PROJECT = new Object() { - public String toString() { return "PROJECT"; } - }; - - String getName(); - void exec(Session session, IContextMap context); - -} +/******************************************************************************* + * 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.layer0.utils.operations; + +import org.simantics.db.Session; +import org.simantics.utils.datastructures.persistent.IContextMap; + +/** + * To define an icon for an IOperation, define a resource adapter for the + * org.simantics.ui.icons.ImageDescriptorProvider + * interface. + */ +public interface IOperation { + + public static final Object SUBJECT = new Object() { + public String toString() { return "SUBJECT"; } + }; + + public static final Object PROJECT = new Object() { + public String toString() { return "PROJECT"; } + }; + + String getName(); + void exec(Session session, IContextMap context); + +}