X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FProxyVariableSupport.java;fp=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FProxyVariableSupport.java;h=225bef538466a69a8dbe737a53186917d58b5d83;hb=d4be6acae73573577010753ad17c646b33a48e57;hp=0000000000000000000000000000000000000000;hpb=bbb010408d256235b4d2dcfb87bf31f49fc1f8a6;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ProxyVariableSupport.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ProxyVariableSupport.java new file mode 100644 index 000000000..225bef538 --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ProxyVariableSupport.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2018 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.db.layer0.variable; + +import org.simantics.db.ReadGraph; + +/** + * Allows attaching a variable under another one to create custom hierarchies + * from existing variables. + * + * @author Antti Villberg + * @since 1.36.0 + */ +public interface ProxyVariableSupport { + + Variable attachTo(ReadGraph graph, Variable parent); + Variable attachToRenamed(ReadGraph graph, Variable parent, String name); + +}