]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #4858
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 14 May 2014 11:02:51 +0000 (11:02 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 14 May 2014 11:02:51 +0000 (11:02 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29491 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/InitialConditionsFolder.java [new file with mode: 0644]

diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/InitialConditionsFolder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/InitialConditionsFolder.java
new file mode 100644 (file)
index 0000000..abf40d4
--- /dev/null
@@ -0,0 +1,32 @@
+/*******************************************************************************\r
+ * Copyright (c) 2013 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\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
+ *     Semantum Oy - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.sysdyn.ui.browser.nodes;\r
+\r
+import org.simantics.browsing.ui.common.node.AbstractNode;\r
+import org.simantics.browsing.ui.common.node.ISpecialFolder;\r
+import org.simantics.db.Resource;\r
+\r
+public class InitialConditionsFolder extends AbstractNode<Resource> implements ISpecialFolder {\r
+    \r
+    public InitialConditionsFolder(Resource resource) {\r
+        super(resource);\r
+    }\r
+\r
+    @SuppressWarnings("rawtypes")\r
+    @Override\r
+    public Object getAdapter(Class adapter) {\r
+        if(clazz == adapter) // There is no resource for this node..\r
+            return null;\r
+        return super.getAdapter(adapter);\r
+    }\r
+\r
+}\r