]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/proconf/g3d/actions/ContextAction.java
Removing ancient 3d framework
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / proconf / g3d / actions / ContextAction.java
diff --git a/org.simantics.g3d/src/org/simantics/proconf/g3d/actions/ContextAction.java b/org.simantics.g3d/src/org/simantics/proconf/g3d/actions/ContextAction.java
deleted file mode 100644 (file)
index 21ec709..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************\r
- * Copyright (c) 2007- VTT Technical Research Centre of Finland.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.proconf.g3d.actions;\r
-\r
-import java.util.List;\r
-\r
-import org.eclipse.jface.action.Action;\r
-import org.simantics.db.Graph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.proconf.g3d.base.ThreeDimensionalEditorBase;\r
-\r
-\r
-/**\r
- * Context / selection dependent action\r
- * \r
- * @author Marko Luukkainen\r
- *\r
- */\r
-public abstract class ContextAction extends Action {\r
-    protected ThreeDimensionalEditorBase parent;\r
-\r
-    public ContextAction(ThreeDimensionalEditorBase parent) {\r
-        this.parent = parent;\r
-        init();\r
-    }\r
-    \r
-    /**\r
-     * Initialization\r
-     */\r
-    public void init(){};\r
\r
-    /**\r
-     * Runs the action\r
-     */\r
-    public abstract void run();\r
-    \r
-    /**\r
-     * Used to check if action is usable for given resources\r
-     * @param resources\r
-     * @return\r
-     */\r
-    public abstract boolean usable(Graph graph, List<Resource> resources);\r
-    \r
-    \r
-}\r