From 5ec53d1f2975147b0f49a7447d699ebdb78bd8e0 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Wed, 31 Oct 2018 07:04:34 +0200 Subject: [PATCH] foobaz2 Change-Id: I0000000000000000000000000000000000000000 --- bundles/.project | 17 + .../adapter/ContextualRelatedValue.java | 54 ++++ .../adapter/ReflectionComputationalValue.java | 25 ++ .../layer0/adapter/SCLComputationalValue.java | 24 ++ .../layer0/variable/ProxyVariableSupport.java | 10 + .../org/simantics/db/ComputationalValue.java | 9 + .../db/ConverterComputationalValue.java | 16 + .../document/server/DocumentProperties.java | 14 + .../server/HandlerSCLComputationalValue.java | 17 + .../server/SCLComputationalValue.java | 17 + .../modeling/SCLComputationalValue.java | 17 + .../simantics/structural2/ConnectionImpl.java | 104 +++++++ .../structural2/variables/Connection2.java | 26 ++ .../variables/FixedConnection.java | 145 +++++++++ features/.project | 17 + features/com.lowagie.text.feature/build.xml | 188 +++++++++++ features/org.apache.lucene4.feature/build.xml | 188 +++++++++++ features/org.jfree.feature/build.xml | 188 +++++++++++ .../build.xml | 229 ++++++++++++++ .../org.simantics.charts.feature/build.xml | 200 ++++++++++++ features/org.simantics.data.feature/build.xml | 193 ++++++++++++ .../org.simantics.db.client.feature/build.xml | 259 ++++++++++++++++ .../build.xml | 214 +++++++++++++ .../org.simantics.desktop.feature/build.xml | 205 ++++++++++++ .../build.xml | 203 ++++++++++++ .../build.xml | 198 ++++++++++++ .../org.simantics.event.feature/build.xml | 198 ++++++++++++ .../org.simantics.export.feature/build.xml | 198 ++++++++++++ features/org.simantics.g2d.feature/build.xml | 291 ++++++++++++++++++ features/org.simantics.help.feature/build.xml | 193 ++++++++++++ .../org.simantics.image.feature/build.xml | 193 ++++++++++++ .../org.simantics.issues.feature/build.xml | 208 +++++++++++++ .../org.simantics.issues.ui.feature/build.xml | 194 ++++++++++++ .../org.simantics.layer0.feature/build.xml | 259 ++++++++++++++++ .../org.simantics.migration.feature/build.xml | 193 ++++++++++++ .../org.simantics.modeling.feature/build.xml | 224 ++++++++++++++ .../build.xml | 193 ++++++++++++ .../org.simantics.platform.feature/build.xml | 244 +++++++++++++++ .../build.xml | 234 ++++++++++++++ features/org.simantics.rcp.feature/build.xml | 193 ++++++++++++ features/org.simantics.scl.feature/build.xml | 228 ++++++++++++++ .../org.simantics.scl.rest.feature/build.xml | 203 ++++++++++++ .../org.simantics.scl.ui.feature/build.xml | 194 ++++++++++++ .../build.xml | 203 ++++++++++++ .../build.xml | 218 +++++++++++++ .../build.xml | 194 ++++++++++++ .../build.xml | 218 +++++++++++++ .../build.xml | 203 ++++++++++++ .../build.xml | 206 +++++++++++++ .../build.xml | 224 ++++++++++++++ .../build.xml | 228 ++++++++++++++ .../org.simantics.utils.feature/build.xml | 203 ++++++++++++ .../org.simantics.utils.ui.feature/build.xml | 204 ++++++++++++ .../build.xml | 198 ++++++++++++ .../org.simantics.views.swt.feature/build.xml | 209 +++++++++++++ .../org.simantics.wiki.ui.feature/build.xml | 194 ++++++++++++ .../org.simantics.workbench.feature/build.xml | 215 +++++++++++++ releng/.project | 17 + tests/.project | 17 + 59 files changed, 9368 insertions(+) create mode 100644 bundles/.project create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ContextualRelatedValue.java create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ReflectionComputationalValue.java create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/SCLComputationalValue.java create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ProxyVariableSupport.java create mode 100644 bundles/org.simantics.db/src/org/simantics/db/ComputationalValue.java create mode 100644 bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java create mode 100644 bundles/org.simantics.document.server/src/org/simantics/document/server/DocumentProperties.java create mode 100644 bundles/org.simantics.document.server/src/org/simantics/document/server/HandlerSCLComputationalValue.java create mode 100644 bundles/org.simantics.document.server/src/org/simantics/document/server/SCLComputationalValue.java create mode 100644 bundles/org.simantics.modeling/src/org/simantics/modeling/SCLComputationalValue.java create mode 100644 bundles/org.simantics.structural2/src/org/simantics/structural2/ConnectionImpl.java create mode 100644 bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection2.java create mode 100644 bundles/org.simantics.structural2/src/org/simantics/structural2/variables/FixedConnection.java create mode 100644 features/.project create mode 100644 features/com.lowagie.text.feature/build.xml create mode 100644 features/org.apache.lucene4.feature/build.xml create mode 100644 features/org.jfree.feature/build.xml create mode 100644 features/org.simantics.browsing.ui.feature/build.xml create mode 100644 features/org.simantics.charts.feature/build.xml create mode 100644 features/org.simantics.data.feature/build.xml create mode 100644 features/org.simantics.db.client.feature/build.xml create mode 100644 features/org.simantics.db.services.feature/build.xml create mode 100644 features/org.simantics.desktop.feature/build.xml create mode 100644 features/org.simantics.document.base.feature/build.xml create mode 100644 features/org.simantics.document.swt.feature/build.xml create mode 100644 features/org.simantics.event.feature/build.xml create mode 100644 features/org.simantics.export.feature/build.xml create mode 100644 features/org.simantics.g2d.feature/build.xml create mode 100644 features/org.simantics.help.feature/build.xml create mode 100644 features/org.simantics.image.feature/build.xml create mode 100644 features/org.simantics.issues.feature/build.xml create mode 100644 features/org.simantics.issues.ui.feature/build.xml create mode 100644 features/org.simantics.layer0.feature/build.xml create mode 100644 features/org.simantics.migration.feature/build.xml create mode 100644 features/org.simantics.modeling.feature/build.xml create mode 100644 features/org.simantics.modeling.ui.workbench.feature/build.xml create mode 100644 features/org.simantics.platform.feature/build.xml create mode 100644 features/org.simantics.platform.ui.feature/build.xml create mode 100644 features/org.simantics.rcp.feature/build.xml create mode 100644 features/org.simantics.scl.feature/build.xml create mode 100644 features/org.simantics.scl.rest.feature/build.xml create mode 100644 features/org.simantics.scl.ui.feature/build.xml create mode 100644 features/org.simantics.selectionview.feature/build.xml create mode 100644 features/org.simantics.simulation.feature/build.xml create mode 100644 features/org.simantics.simulator.toolkit.db.feature/build.xml create mode 100644 features/org.simantics.simulator.toolkit.feature/build.xml create mode 100644 features/org.simantics.spreadsheet.feature/build.xml create mode 100644 features/org.simantics.spreadsheet.ui.feature/build.xml create mode 100644 features/org.simantics.structural.feature/build.xml create mode 100644 features/org.simantics.ui.workbench.feature/build.xml create mode 100644 features/org.simantics.utils.feature/build.xml create mode 100644 features/org.simantics.utils.ui.feature/build.xml create mode 100644 features/org.simantics.views.swt.client.feature/build.xml create mode 100644 features/org.simantics.views.swt.feature/build.xml create mode 100644 features/org.simantics.wiki.ui.feature/build.xml create mode 100644 features/org.simantics.workbench.feature/build.xml create mode 100644 releng/.project create mode 100644 tests/.project diff --git a/bundles/.project b/bundles/.project new file mode 100644 index 000000000..e32f4d501 --- /dev/null +++ b/bundles/.project @@ -0,0 +1,17 @@ + + + bundles + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ContextualRelatedValue.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ContextualRelatedValue.java new file mode 100644 index 000000000..2fe96f0ee --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ContextualRelatedValue.java @@ -0,0 +1,54 @@ +package org.simantics.db.layer0.adapter; + +import org.simantics.db.ConverterComputationalValue; +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.exception.RuntimeDatabaseException; +import org.simantics.db.layer0.variable.Variable; +import org.simantics.scl.runtime.SCLContext; +import org.simantics.scl.runtime.function.Function1; +import org.simantics.scl.runtime.function.FunctionImpl3; + +abstract public class ContextualRelatedValue implements ConverterComputationalValue { + + @Override + public T getValue(ReadGraph graph, Resource resource) throws DatabaseException { + + return (T)new FunctionImpl3() { + + @Override + public Object apply(ReadGraph graph, Resource converter, Object context) { + SCLContext sclContext = SCLContext.getCurrent(); + Object oldGraph = sclContext.get("graph"); + try { + if(context instanceof Variable) { + Variable variable = (Variable)context; + try { + Function1 fn = getFunction(graph, variable.getParent(graph).getRepresents(graph), variable.getRepresents(graph), variable.getPredicateResource(graph)); + sclContext.put("graph", graph); + return fn.apply(variable); + } catch (DatabaseException e) { + throw new RuntimeDatabaseException(e); + } + } if (context instanceof Resource) { + Resource resource = (Resource)context; + try { + Function1 fn = getFunction(graph, null, resource, null); + return fn.apply(resource); + } catch (DatabaseException e) { + throw new RuntimeDatabaseException(e); + } + } else { + throw new IllegalStateException("Unknown context " + context); + } + } finally { + sclContext.put("graph", oldGraph); + } + } + + }; + + } + +} diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ReflectionComputationalValue.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ReflectionComputationalValue.java new file mode 100644 index 000000000..dc5d83a6d --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/ReflectionComputationalValue.java @@ -0,0 +1,25 @@ +package org.simantics.db.layer0.adapter; + +import org.simantics.db.ComputationalValue; +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.scl.reflection.ReflectionUtils; +import org.simantics.scl.reflection.ValueNotFoundException; + +public class ReflectionComputationalValue implements ComputationalValue { + + @Override + public T getValue(ReadGraph graph, Resource resource) throws DatabaseException { + + try { + return (T)ReflectionUtils.getValue(graph.getURI(resource)).getValue(); + } catch(ValueNotFoundException e) { + throw new DatabaseException(e); + } catch(ClassCastException e) { + throw new DatabaseException(e); + } + + } + +} diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/SCLComputationalValue.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/SCLComputationalValue.java new file mode 100644 index 000000000..d0991fb7f --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/SCLComputationalValue.java @@ -0,0 +1,24 @@ +package org.simantics.db.layer0.adapter; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.scl.CompileResourceValueRequest; +import org.simantics.db.layer0.scl.CompileValueRequest; +import org.simantics.scl.runtime.function.Function1; + +public class SCLComputationalValue extends ContextualRelatedValue { + + @Override + public Function1 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException { + if(s != null && p != null && o != null) { + return CompileValueRequest.compile(graph, s, o, p); + } else if (o != null) { + return CompileResourceValueRequest.compile(graph, o); + } else { + throw new DatabaseException("Could not compile SCL expression: s=" + s+ " p=" + p + " o=" + o); + } + + } + +} 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..9ae52c682 --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ProxyVariableSupport.java @@ -0,0 +1,10 @@ +package org.simantics.db.layer0.variable; + +import org.simantics.db.ReadGraph; + +public interface ProxyVariableSupport { + + Variable attachTo(ReadGraph graph, Variable parent); + Variable attachToRenamed(ReadGraph graph, Variable parent, String name); + +} diff --git a/bundles/org.simantics.db/src/org/simantics/db/ComputationalValue.java b/bundles/org.simantics.db/src/org/simantics/db/ComputationalValue.java new file mode 100644 index 000000000..48a3bf266 --- /dev/null +++ b/bundles/org.simantics.db/src/org/simantics/db/ComputationalValue.java @@ -0,0 +1,9 @@ +package org.simantics.db; + +import org.simantics.db.exception.DatabaseException; + +public interface ComputationalValue { + + public T getValue(ReadGraph graph, Resource resource) throws DatabaseException; + +} diff --git a/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java b/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java new file mode 100644 index 000000000..e99978992 --- /dev/null +++ b/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java @@ -0,0 +1,16 @@ +package org.simantics.db; + +import org.simantics.db.exception.DatabaseException; +import org.simantics.scl.runtime.function.Function1; + +public interface ConverterComputationalValue extends ComputationalValue { + + /* + * This computes the expression function that shall be called with given context as defined in ReadGraph.getRelatedValue2 + * Context can be Resource (literal) or Variable. + * With Resource context this gets called with o != null and s==null and p==null + * With Variable property context this gets called with (represents of parent, represents, predicate resource) + */ + Function1 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException; + +} diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/DocumentProperties.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/DocumentProperties.java new file mode 100644 index 000000000..2951b9399 --- /dev/null +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/DocumentProperties.java @@ -0,0 +1,14 @@ +package org.simantics.document.server; + +import java.util.Collection; + +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; + +public interface DocumentProperties { + + Collection getKeys(ReadGraph graph, Variable context) throws DatabaseException; + Object getValue(ReadGraph graph, Variable context, String key) throws DatabaseException; + +} diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/HandlerSCLComputationalValue.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/HandlerSCLComputationalValue.java new file mode 100644 index 000000000..e75c6a279 --- /dev/null +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/HandlerSCLComputationalValue.java @@ -0,0 +1,17 @@ +package org.simantics.document.server; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.adapter.ContextualRelatedValue; +import org.simantics.document.server.request.ServerSCLHandlerValueRequest; +import org.simantics.scl.runtime.function.Function1; + +public class HandlerSCLComputationalValue extends ContextualRelatedValue { + + @Override + public Function1 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException { + return ServerSCLHandlerValueRequest.compile(graph, s, o, p); + } + +} diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/SCLComputationalValue.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/SCLComputationalValue.java new file mode 100644 index 000000000..a0bfa6361 --- /dev/null +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/SCLComputationalValue.java @@ -0,0 +1,17 @@ +package org.simantics.document.server; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.adapter.ContextualRelatedValue; +import org.simantics.document.server.request.ServerSCLValueRequest; +import org.simantics.scl.runtime.function.Function1; + +public class SCLComputationalValue extends ContextualRelatedValue { + + @Override + public Function1 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException { + return ServerSCLValueRequest.compile(graph, s, o, p); + } + +} diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLComputationalValue.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLComputationalValue.java new file mode 100644 index 000000000..3bfe1dc2b --- /dev/null +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLComputationalValue.java @@ -0,0 +1,17 @@ +package org.simantics.modeling; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.adapter.ContextualRelatedValue; +import org.simantics.scl.runtime.function.Function1; +import org.simantics.structural2.scl.CompileStructuralValueRequest; + +public class SCLComputationalValue extends ContextualRelatedValue { + + @Override + public Function1 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException { + return CompileStructuralValueRequest.compile(graph, s, o, p); + } + +} diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/ConnectionImpl.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/ConnectionImpl.java new file mode 100644 index 000000000..c9d8f4221 --- /dev/null +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/ConnectionImpl.java @@ -0,0 +1,104 @@ +package org.simantics.structural2; + +import java.util.Collection; +import java.util.Set; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; +import org.simantics.structural2.variables.Connection; +import org.simantics.structural2.variables.ConnectionBrowser; +import org.simantics.structural2.variables.VariableConnectionPointDescriptor; + +import gnu.trove.set.hash.THashSet; + +public class ConnectionImpl implements Connection { + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((component == null) ? 0 : component.hashCode()); + result = prime * result + ((predicate == null) ? 0 : predicate.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ConnectionImpl other = (ConnectionImpl) obj; + if (component == null) { + if (other.component != null) + return false; + } else if (!component.equals(other.component)) + return false; + if (predicate == null) { + if (other.predicate != null) + return false; + } else if (!predicate.equals(other.predicate)) + return false; + return true; + } + + final private Variable component; + final private Resource predicate; + + public ConnectionImpl(Variable component, Resource predicate) { + this.component = component; + this.predicate = predicate; + } + + @Override + public Collection getConnectionPoints(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException { + Set result = new THashSet(); + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, predicate, relationType)) { + result.add(desc.getVariable(graph)); + } + return result; + } + + @Override + public Collection getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException { + Set result = new THashSet(); + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, predicate, relationType)) { + result.add(desc.getVariable(graph)); + } + return result; + } + + @Override + public Collection getConnectionPointURIs(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException { + Set result = new THashSet(); + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, predicate, relationType)) { + result.add(desc.getURI(graph)); + } + return result; + } + + @Override + public Collection getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException { + Set result = new THashSet(); + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, predicate, relationType)) { + result.add(desc.getURI(graph)); + } + return result; + } + + @Override + public Collection getConnectionPointDescriptors(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException { + return ConnectionBrowser.flatten(graph, component, predicate, relationType); + } + + @Override + public Collection getConnectionPointDescriptors(ReadGraph graph, + Resource relationType) throws DatabaseException { + return ConnectionBrowser.flatten(graph, component, predicate, relationType); + } + +} \ No newline at end of file diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection2.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection2.java new file mode 100644 index 000000000..0751ea21a --- /dev/null +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/Connection2.java @@ -0,0 +1,26 @@ +package org.simantics.structural2.variables; + +import java.util.Collection; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; + +public interface Connection2 { + + + /** + * Return absolute URIs of the connection points. An optional (may be null) relationType may be used + * to filter the returned connection points. + */ + Collection getConnectionPointURIs(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException; + /** + * Return the connection points. An optional (may be null) relationType may be used + * to filter the returned connection points. + */ + Collection getConnectionPoints(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException; + + Collection getConnectionPointDescriptors(ReadGraph graph, Variable component, Resource relationType) throws DatabaseException; + +} diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/FixedConnection.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/FixedConnection.java new file mode 100644 index 000000000..34db531e8 --- /dev/null +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/variables/FixedConnection.java @@ -0,0 +1,145 @@ +package org.simantics.structural2.variables; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Set; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; +import org.simantics.utils.datastructures.Pair; + +import gnu.trove.set.hash.THashSet; + +public class FixedConnection implements org.simantics.structural2.variables.Connection { + + final private Variable parent; + + final private Collection> cps = new ArrayList>(); + + public FixedConnection(Variable parent) { + this.parent = parent; + } + + public void addAll(List> cps) throws DatabaseException { + for(Pair cp : cps) { + this.cps.add(cp); + } + } + + public int size() { + return cps.size(); + } + + public void addConnectionDescriptors(ReadGraph graph, Variable curConfiguration, Collection result) throws DatabaseException { + for(Pair cpzz : cps) { + // This is a connection to an interface terminal. It is handled by ConnectionBrowser in separate logic. Do not include it here. + if(cpzz.first == null) continue; + /*if(cpzz.first == null) { + String message = "Lifted connection was not resolved. Child = " + parent.getURI(graph); + throw new DatabaseException(message); + }*/ + result.add(new PairConnectionDescriptor(curConfiguration, cpzz)); + } + } + + @Override + public Collection getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException { + return getConnectionPoints(graph, parent, relationType); + } + + @Override + public Collection getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException { + return getConnectionPointURIs(graph, parent, relationType); + + } + + @Override + public Collection getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException { + return getConnectionPointDescriptors(graph, parent, relationType); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((cps == null) ? 0 : cps.hashCode()); + result = prime * result + + ((parent == null) ? 0 : parent.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + FixedConnection other = (FixedConnection) obj; + if (cps == null) { + if (other.cps != null) + return false; + } else if (!cps.equals(other.cps)) + return false; + if (parent == null) { + if (other.parent != null) + return false; + } else if (!parent.equals(other.parent)) + return false; + return true; + } + + @Override + public Collection getConnectionPointDescriptors(ReadGraph graph, + Variable parent, Resource relationType) throws DatabaseException { + Set result = new THashSet(); + for(Pair cp : cps) { + Variable component = cp.first == null ? parent : parent.getChild(graph, cp.first); + Variable cp2 = component.getPossibleProperty(graph, cp.second); + if(cp2 != null) + result.addAll(ConnectionBrowser.flatten(graph, component, cp.second, relationType)); + else + StandardProceduralChildVariable.LOGGER.warn("no cp " + cp.first + " for " + component.getURI(graph)); + } + return result; + } + + @Override + public Collection getConnectionPoints(ReadGraph graph, Variable parent, Resource relationType) + throws DatabaseException { + Set result = new THashSet(); + for(Pair cp : cps) { + Variable component = cp.first == null ? parent : parent.getChild(graph, cp.first); + Variable cp2 = component.getPossibleProperty(graph, cp.second); + if(cp2 != null) + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, cp.second, relationType)) { + result.add(desc.getVariable(graph)); + } + else + StandardProceduralChildVariable.LOGGER.warn("no cp " + cp.first + " for " + component.getURI(graph)); + } + return result; + } + + @Override + public Collection getConnectionPointURIs(ReadGraph graph, Variable parent, Resource relationType) + throws DatabaseException { + Set result = new THashSet(); + for(Pair cp : cps) { + Variable component = cp.first == null ? parent : parent.getChild(graph, cp.first); + Variable cp2 = component.getPossibleProperty(graph, cp.second); + if(cp2 != null) + for(VariableConnectionPointDescriptor desc : ConnectionBrowser.flatten(graph, component, cp.second, relationType)) { + result.add(desc.getURI(graph)); + } + else + StandardProceduralChildVariable.LOGGER.warn("no cp " + cp.first + " for " + component.getURI(graph)); + } + return result; + } + +} \ No newline at end of file diff --git a/features/.project b/features/.project new file mode 100644 index 000000000..c3641303e --- /dev/null +++ b/features/.project @@ -0,0 +1,17 @@ + + + features + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/features/com.lowagie.text.feature/build.xml b/features/com.lowagie.text.feature/build.xml new file mode 100644 index 000000000..1f01d8da0 --- /dev/null +++ b/features/com.lowagie.text.feature/build.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.apache.lucene4.feature/build.xml b/features/org.apache.lucene4.feature/build.xml new file mode 100644 index 000000000..b534bd0b4 --- /dev/null +++ b/features/org.apache.lucene4.feature/build.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.jfree.feature/build.xml b/features/org.jfree.feature/build.xml new file mode 100644 index 000000000..842f5f95c --- /dev/null +++ b/features/org.jfree.feature/build.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.browsing.ui.feature/build.xml b/features/org.simantics.browsing.ui.feature/build.xml new file mode 100644 index 000000000..510e3711d --- /dev/null +++ b/features/org.simantics.browsing.ui.feature/build.xml @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.charts.feature/build.xml b/features/org.simantics.charts.feature/build.xml new file mode 100644 index 000000000..d528f0a02 --- /dev/null +++ b/features/org.simantics.charts.feature/build.xml @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.data.feature/build.xml b/features/org.simantics.data.feature/build.xml new file mode 100644 index 000000000..c76ae4627 --- /dev/null +++ b/features/org.simantics.data.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.db.client.feature/build.xml b/features/org.simantics.db.client.feature/build.xml new file mode 100644 index 000000000..2e6111289 --- /dev/null +++ b/features/org.simantics.db.client.feature/build.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.db.services.feature/build.xml b/features/org.simantics.db.services.feature/build.xml new file mode 100644 index 000000000..4c2e9c6f4 --- /dev/null +++ b/features/org.simantics.db.services.feature/build.xml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.desktop.feature/build.xml b/features/org.simantics.desktop.feature/build.xml new file mode 100644 index 000000000..833c629b8 --- /dev/null +++ b/features/org.simantics.desktop.feature/build.xml @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.document.base.feature/build.xml b/features/org.simantics.document.base.feature/build.xml new file mode 100644 index 000000000..804bf5b1d --- /dev/null +++ b/features/org.simantics.document.base.feature/build.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.document.swt.feature/build.xml b/features/org.simantics.document.swt.feature/build.xml new file mode 100644 index 000000000..7efb37c25 --- /dev/null +++ b/features/org.simantics.document.swt.feature/build.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.event.feature/build.xml b/features/org.simantics.event.feature/build.xml new file mode 100644 index 000000000..5d602cc9b --- /dev/null +++ b/features/org.simantics.event.feature/build.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.export.feature/build.xml b/features/org.simantics.export.feature/build.xml new file mode 100644 index 000000000..b3999218a --- /dev/null +++ b/features/org.simantics.export.feature/build.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.g2d.feature/build.xml b/features/org.simantics.g2d.feature/build.xml new file mode 100644 index 000000000..a60627575 --- /dev/null +++ b/features/org.simantics.g2d.feature/build.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.help.feature/build.xml b/features/org.simantics.help.feature/build.xml new file mode 100644 index 000000000..bfbc3e98c --- /dev/null +++ b/features/org.simantics.help.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.image.feature/build.xml b/features/org.simantics.image.feature/build.xml new file mode 100644 index 000000000..ec4675ce1 --- /dev/null +++ b/features/org.simantics.image.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.issues.feature/build.xml b/features/org.simantics.issues.feature/build.xml new file mode 100644 index 000000000..9a9b3dc7d --- /dev/null +++ b/features/org.simantics.issues.feature/build.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.issues.ui.feature/build.xml b/features/org.simantics.issues.ui.feature/build.xml new file mode 100644 index 000000000..7039babc7 --- /dev/null +++ b/features/org.simantics.issues.ui.feature/build.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.layer0.feature/build.xml b/features/org.simantics.layer0.feature/build.xml new file mode 100644 index 000000000..9e43767a1 --- /dev/null +++ b/features/org.simantics.layer0.feature/build.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.migration.feature/build.xml b/features/org.simantics.migration.feature/build.xml new file mode 100644 index 000000000..f100404a5 --- /dev/null +++ b/features/org.simantics.migration.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.modeling.feature/build.xml b/features/org.simantics.modeling.feature/build.xml new file mode 100644 index 000000000..1c92933b1 --- /dev/null +++ b/features/org.simantics.modeling.feature/build.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.modeling.ui.workbench.feature/build.xml b/features/org.simantics.modeling.ui.workbench.feature/build.xml new file mode 100644 index 000000000..08ba29ae6 --- /dev/null +++ b/features/org.simantics.modeling.ui.workbench.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.platform.feature/build.xml b/features/org.simantics.platform.feature/build.xml new file mode 100644 index 000000000..101090ce6 --- /dev/null +++ b/features/org.simantics.platform.feature/build.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.platform.ui.feature/build.xml b/features/org.simantics.platform.ui.feature/build.xml new file mode 100644 index 000000000..715c6e8d1 --- /dev/null +++ b/features/org.simantics.platform.ui.feature/build.xml @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.rcp.feature/build.xml b/features/org.simantics.rcp.feature/build.xml new file mode 100644 index 000000000..6c1ce5e01 --- /dev/null +++ b/features/org.simantics.rcp.feature/build.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.scl.feature/build.xml b/features/org.simantics.scl.feature/build.xml new file mode 100644 index 000000000..7b1858a20 --- /dev/null +++ b/features/org.simantics.scl.feature/build.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.scl.rest.feature/build.xml b/features/org.simantics.scl.rest.feature/build.xml new file mode 100644 index 000000000..2489e86c8 --- /dev/null +++ b/features/org.simantics.scl.rest.feature/build.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.scl.ui.feature/build.xml b/features/org.simantics.scl.ui.feature/build.xml new file mode 100644 index 000000000..945286eef --- /dev/null +++ b/features/org.simantics.scl.ui.feature/build.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.selectionview.feature/build.xml b/features/org.simantics.selectionview.feature/build.xml new file mode 100644 index 000000000..57ae1d1a8 --- /dev/null +++ b/features/org.simantics.selectionview.feature/build.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.simulation.feature/build.xml b/features/org.simantics.simulation.feature/build.xml new file mode 100644 index 000000000..488a27494 --- /dev/null +++ b/features/org.simantics.simulation.feature/build.xml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.simulator.toolkit.db.feature/build.xml b/features/org.simantics.simulator.toolkit.db.feature/build.xml new file mode 100644 index 000000000..7314cd1af --- /dev/null +++ b/features/org.simantics.simulator.toolkit.db.feature/build.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.simulator.toolkit.feature/build.xml b/features/org.simantics.simulator.toolkit.feature/build.xml new file mode 100644 index 000000000..69834fdbd --- /dev/null +++ b/features/org.simantics.simulator.toolkit.feature/build.xml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.spreadsheet.feature/build.xml b/features/org.simantics.spreadsheet.feature/build.xml new file mode 100644 index 000000000..2577566df --- /dev/null +++ b/features/org.simantics.spreadsheet.feature/build.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.spreadsheet.ui.feature/build.xml b/features/org.simantics.spreadsheet.ui.feature/build.xml new file mode 100644 index 000000000..8a0b0f2c1 --- /dev/null +++ b/features/org.simantics.spreadsheet.ui.feature/build.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.structural.feature/build.xml b/features/org.simantics.structural.feature/build.xml new file mode 100644 index 000000000..b09ca56ce --- /dev/null +++ b/features/org.simantics.structural.feature/build.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.ui.workbench.feature/build.xml b/features/org.simantics.ui.workbench.feature/build.xml new file mode 100644 index 000000000..954d1cf19 --- /dev/null +++ b/features/org.simantics.ui.workbench.feature/build.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.utils.feature/build.xml b/features/org.simantics.utils.feature/build.xml new file mode 100644 index 000000000..9da64c019 --- /dev/null +++ b/features/org.simantics.utils.feature/build.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.utils.ui.feature/build.xml b/features/org.simantics.utils.ui.feature/build.xml new file mode 100644 index 000000000..17fc3d34e --- /dev/null +++ b/features/org.simantics.utils.ui.feature/build.xml @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.views.swt.client.feature/build.xml b/features/org.simantics.views.swt.client.feature/build.xml new file mode 100644 index 000000000..e97e19504 --- /dev/null +++ b/features/org.simantics.views.swt.client.feature/build.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.views.swt.feature/build.xml b/features/org.simantics.views.swt.feature/build.xml new file mode 100644 index 000000000..57eac46ab --- /dev/null +++ b/features/org.simantics.views.swt.feature/build.xml @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.wiki.ui.feature/build.xml b/features/org.simantics.wiki.ui.feature/build.xml new file mode 100644 index 000000000..9a85bc635 --- /dev/null +++ b/features/org.simantics.wiki.ui.feature/build.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/org.simantics.workbench.feature/build.xml b/features/org.simantics.workbench.feature/build.xml new file mode 100644 index 000000000..a8bd76348 --- /dev/null +++ b/features/org.simantics.workbench.feature/build.xml @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/releng/.project b/releng/.project new file mode 100644 index 000000000..9e9e32730 --- /dev/null +++ b/releng/.project @@ -0,0 +1,17 @@ + + + releng + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/tests/.project b/tests/.project new file mode 100644 index 000000000..03b83d866 --- /dev/null +++ b/tests/.project @@ -0,0 +1,17 @@ + + + tests + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + -- 2.47.1