From a3d9955c6fd45d26aaef61b3b35753866a8c723d Mon Sep 17 00:00:00 2001 From: villberg Date: Wed, 14 May 2014 11:02:51 +0000 Subject: [PATCH] refs #4858 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29491 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../nodes/InitialConditionsFolder.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/InitialConditionsFolder.java 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 index 00000000..abf40d47 --- /dev/null +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/InitialConditionsFolder.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2013 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: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.sysdyn.ui.browser.nodes; + +import org.simantics.browsing.ui.common.node.AbstractNode; +import org.simantics.browsing.ui.common.node.ISpecialFolder; +import org.simantics.db.Resource; + +public class InitialConditionsFolder extends AbstractNode implements ISpecialFolder { + + public InitialConditionsFolder(Resource resource) { + super(resource); + } + + @SuppressWarnings("rawtypes") + @Override + public Object getAdapter(Class adapter) { + if(clazz == adapter) // There is no resource for this node.. + return null; + return super.getAdapter(adapter); + } + +} -- 2.47.1