L0.HasValueType "String"
ANNO.SelectionTabContribution : SEL.TypedVariableTabContribution
- SEL.TypedVariableTabContribution.HasType L0.Entity
+ SEL.TypedTabContribution.HasType L0.Entity
SEL.VariableTabContribution.HasView ANNO.SelectionTab
- SEL.VariableTabContribution.HasPriority -10
+ SEL.TabContribution.HasPriority -10
L0.HasLabel "Annotations"
ANNO.SelectionTabContribution2 : SEL.TypedVariableTabContribution
- SEL.TypedVariableTabContribution.HasType ANNO.Annotation
+ SEL.TypedTabContribution.HasType ANNO.Annotation
SEL.VariableTabContribution.HasView ANNO.SelectionTab2
- SEL.VariableTabContribution.HasPriority -9
+ SEL.TabContribution.HasPriority -9
L0.HasLabel "Annotation Properties"
ANNO.SelectionTab.BC : SEL_UI.StandardProperties.BrowseContextStandardChildren
UI.DocumentTabContributionType <T SEL.AbstractResourceTabContribution
UI.DocumentTabContribution : UI.DocumentTabContributionType
- SEL.AbstractResourceTabContribution.HasPriority 1
+ SEL.TabContribution.HasPriority 1
UI.SearchFunction : L0.Function
L0.HasLabel "Document Search" : L0.String
"\r -> isInstanceOf r L0.IndexRoot"
UI.WikitextContribution : SEL.VariableTabContribution
- SEL.VariableTabContribution.HasTest UI.Functions.isWikitext : L0.Function
+ SEL.TabContribution.HasTest UI.Functions.isWikitext : L0.Function
SEL.VariableTabContribution.HasView UI.WikitextContribution.View
- SEL.VariableTabContribution.HasPriority 1
+ SEL.TabContribution.HasPriority 1
L0.HasLabel "Wiki"
UI.WikitextContribution.View : VIEWS.Composite
TEMPLATE2D.CompositeUI <T TEMPLATE2D.BrowseNode
TEMPLATE2D.TemplateTabContribution : SEL.TypedVariableTabContribution
- SEL.TypedVariableTabContribution.HasType SG.Node
+ SEL.TypedTabContribution.HasType SG.Node
SEL.VariableTabContribution.HasView SEL_UI.StandardProperties
- SEL.VariableTabContribution.HasPriority 1
+ SEL.TabContribution.HasPriority 1
L0.HasLabel "Parameters"
TEMPLATE2D.DiagramTemplateBC.ScenegraphChildren : VP.ChildRule
@L0.assert L0.IsLinkedTo PlatformUI
PlatformUI.StandardPropertiesTabContribution : SEL.TypedVariableTabContribution
- SEL.TypedVariableTabContribution.HasType L0.Entity
+ SEL.TypedTabContribution.HasType L0.Entity
SEL.VariableTabContribution.HasView SEL_UI.StandardProperties
- SEL.VariableTabContribution.HasPriority -1
+ SEL.TabContribution.HasPriority -1
L0.HasLabel "Properties"
\ No newline at end of file
@DOC.singleData SharedLibraries.DefVar2 SharedLibraries.Explorer1 SharedLibraries.UnlinkButton DOC.Relations.click "selection" "selection" _ _ _
VIEWS.SharedLibraryContribution : SWT.TypedVariableTabContribution
- SEL.AbstractVariableTabContribution.HasPriority 1
- SEL.AbstractTypedVariableTabContribution.HasType L0.IndexRoot
+ SEL.TabContribution.HasPriority 1
+ SEL.TypedTabContribution.HasType L0.IndexRoot
SWT.TypedVariableTabContribution.HasView SharedLibraries
L0.HasLabel "Shared Libraries"
L0.HasValueType "EventHandler"
VIEWS.RangeSelectionTabContribution : SWT.TypedVariableTabContribution
- SEL.AbstractVariableTabContribution.HasPriority 1
- SEL.AbstractTypedVariableTabContribution.HasType SHEET.Spreadsheet
+ SEL.TabContribution.HasPriority 1
+ SEL.TypedTabContribution.HasType SHEET.Spreadsheet
SWT.TypedVariableTabContribution.HasView RangeSelectionTab
L0.HasLabel "Ranges"
SEL.Functions : L0.Library
+SEL.TabContribution.Multi <R L0.HasProperty : L0.FunctionalRelation
+ L0.RequiresValueType "Boolean"
+
SEL.TabContribution <T L0.Entity
+ @L0.assert SEL.TabContribution.Multi false
+ >-- SEL.TabContribution.HasTest --> L0.Value <R L0.DependsOn
+ >-- SEL.TabContribution.HasPriority ==> "Integer" <R L0.DependsOn
+
+SEL.TypedTabContribution <T SEL.TabContribution
+ >-- SEL.TypedTabContribution.HasType --> L0.Type <R L0.DependsOn
+
SEL.SelectionTransformation <T L0.Function
SEL.Functions.getEnumerationValues : L0.Function
SEL.AbstractVariableTabContribution <T SEL.TabContribution
>-- SEL.AbstractVariableTabContribution.testFunction ==> "Variable -> <ReadGraph> Boolean" <R L0.HasProperty
- >-- SEL.AbstractVariableTabContribution.HasPriority ==> "Integer" <R L0.HasProperty : SEL.GenericParameterType
- // This is deprecated
- >-- SEL.AbstractVariableTabContribution.HasTest --> L0.Value <R L0.DependsOn
SEL.AbstractResourceTabContribution <T SEL.TabContribution
- >-- SEL.AbstractResourceTabContribution.HasTest --> L0.Value <R L0.DependsOn
- >-- SEL.AbstractResourceTabContribution.HasPriority ==> "Integer" <R L0.DependsOn
SEL.AbstractTypedVariableTabContribution <T SEL.AbstractVariableTabContribution
- >-- SEL.AbstractTypedVariableTabContribution.HasType --> L0.Type <R L0.DependsOn
SEL.AbstractTypedResourceTabContribution <T SEL.AbstractResourceTabContribution
- >-- SEL.AbstractTypedResourceTabContribution.HasType --> L0.Type <R L0.DependsOn
SEL.SCLTabContribution <T SEL.TabContribution
>-- SEL.SCLTabContribution.instantiate ==> "() -> <Proc> TabContribution" <R L0.HasProperty
SEL.VariableTabContribution <T SEL.TabContribution
- >-- SEL.VariableTabContribution.HasTest <R L0.DependsOn
>-- SEL.VariableTabContribution.transformation ==> "Variable -> <ReadGraph> Variable" <R L0.HasProperty
>-- SEL.VariableTabContribution.HasView <R L0.DependsOn
- >-- SEL.VariableTabContribution.HasPriority <R L0.DependsOn
+
+SEL.MultiTypedVariableTabContribution <T SEL.TypedVariableTabContribution
+ @L0.assert SEL.TabContribution.Multi true
SEL.TypedVariableTabContribution <T SEL.VariableTabContribution
- >-- SEL.TypedVariableTabContribution.HasType <R L0.DependsOn
SEL.HasDisplayColumn <R L0.HasProperty : L0.FunctionalRelation
package org.simantics.selectionview;
-import java.util.Collection;
-
-import org.simantics.databoard.Bindings;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
-import org.simantics.db.common.utils.Functions;
import org.simantics.db.exception.DatabaseException;
-import org.simantics.layer0.Layer0;
-
-abstract public class AbstractResourceTabContribution implements TabContribution<Resource> {
- final protected Resource configuration;
+abstract public class AbstractResourceTabContribution extends AbstractTabContribution<Resource> {
public AbstractResourceTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
- this.configuration = configuration;
- }
-
- public abstract void getContributors(ReadGraph graph, Resource resource, Integer priority, String label, Collection<ComparableTabContributor> result) throws DatabaseException;
-
- @Override
- public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
-
- if (!(input instanceof Resource))
- return false;
- Resource resource = (Resource) input;
-
- SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
- for(Resource r : graph.getObjects(configuration, SEL.AbstractResourceTabContribution_HasTest)) {
- Boolean pass = Functions.exec(graph, r, graph, resource);
- if(!pass) return false;
- }
-
- return true;
-
+ super(graph, configuration);
}
- @Override
- final public void contribute(ReadGraph graph, final Resource resource, Collection<ComparableTabContributor> result) throws DatabaseException {
-
- Layer0 L0 = Layer0.getInstance(graph);
- SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
-
- Integer priority = graph.getPossibleRelatedValue(configuration, SEL.AbstractResourceTabContribution_HasPriority, Bindings.INTEGER);
- String label = graph.getPossibleRelatedValue(configuration, L0.HasLabel);
-
- getContributors(graph, resource, priority, label, result);
-
- }
-
+ @Override
+ public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
+ if (!(input instanceof Resource))
+ return false;
+ return super.accept(graph, input);
+ }
}
--- /dev/null
+package org.simantics.selectionview;
+
+import java.lang.reflect.Array;
+import java.util.Collection;
+import java.util.Objects;
+
+import org.simantics.databoard.Bindings;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.utils.Functions;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.layer0.Layer0;
+
+public abstract class AbstractTabContribution<T> implements TabContribution<T> {
+
+ protected final Resource configuration;
+ protected final String uri;
+
+ public AbstractTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
+ this.configuration = Objects.requireNonNull(configuration);
+ this.uri = graph.getURI(configuration);
+ }
+
+ @Override
+ public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
+ SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
+ // Lets see if multi or single support
+ Boolean multi = graph.getRelatedValue2(configuration, SEL.TabContribution_Multi, Bindings.BOOLEAN);
+ if (input instanceof Collection<?>) {
+ Collection<?> inputs = (Collection<?>) input;
+ if (inputs.isEmpty())
+ return false;
+ if (inputs.size() > 1 && !multi)
+ return false;
+ } else if (input.getClass().isArray()) {
+ int arrayLength = Array.getLength(input);
+ if (arrayLength == 0)
+ return false;
+ if (arrayLength > 1 && !multi)
+ return false;
+ }
+ // HasTest seems to be deprecated but lets support it just for fun
+ for(Resource r : graph.getObjects(configuration, SEL.TabContribution_HasTest)) {
+ Boolean pass = Functions.exec(graph, r, graph, input);
+ if(!pass)
+ return false;
+ }
+ return true;
+ }
+
+ public abstract void getContributors(ReadGraph graph, T input, Integer priority, String label, Collection<ComparableTabContributor> result) throws DatabaseException;
+
+ @Override
+ public final void contribute(ReadGraph graph, T input, Collection<ComparableTabContributor> result) throws DatabaseException {
+ Layer0 L0 = Layer0.getInstance(graph);
+ SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
+
+ Integer priority = graph.getPossibleRelatedValue(configuration, SEL.TabContribution_HasPriority, Bindings.INTEGER);
+ String label = graph.getPossibleRelatedValue(configuration, L0.HasLabel);
+
+ getContributors(graph, input, priority, label, result);
+ }
+
+ @Override
+ public String toString() {
+ return getClass().getSimpleName() + "[" + uri + "]";
+ }
+}
package org.simantics.selectionview;
+import java.util.Collection;
+import java.util.Collections;
+
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
import org.simantics.db.exception.DatabaseException;
-abstract public class AbstractTypedResourceTabContribution extends AbstractResourceTabContribution {
+abstract public class AbstractTypedResourceTabContribution extends AbstractTypedTabContribution<Resource> {
public AbstractTypedResourceTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
super(graph, configuration);
}
-
- @Override
- public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
-
- if (!(input instanceof Resource))
- return false;
- Resource resource = (Resource) input;
-
- SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
-
- Resource type = graph.getPossibleObject(configuration, SEL.AbstractTypedResourceTabContribution_HasType);
- if(type == null) throw new DatabaseException("No type for " + graph.getPossibleURI(configuration));
-
- if(!graph.isInstanceOf(resource, type)) return false;
-
- return super.accept(graph, resource);
-
- }
-
+ @Override
+ public boolean accept(ReadGraph graph, Object input, Collection<Resource> types) throws DatabaseException {
+ if (!(input instanceof Resource))
+ return false;
+ Resource resource = (Resource) input;
+ Collection<Resource> ts = graph.getTypes(resource);
+ return !Collections.disjoint(types, ts);
+ }
}
--- /dev/null
+package org.simantics.selectionview;
+
+import java.util.Collection;
+import java.util.Objects;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+
+public abstract class AbstractTypedTabContribution<T> extends AbstractTabContribution<T> {
+
+ protected final Collection<Resource> types;
+
+ public AbstractTypedTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
+ super(graph, configuration);
+ this.types = Objects.requireNonNull(graph.getObjects(configuration, SelectionViewResources.getInstance(graph).TypedTabContribution_HasType));
+ if(types.isEmpty())
+ throw new DatabaseException("No type for " + graph.getPossibleURI(configuration));
+ }
+
+ @Override
+ public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
+ if (!super.accept(graph, input))
+ return false;
+ return accept(graph, input, types);
+ }
+
+ public abstract boolean accept(ReadGraph graph, Object input, Collection<Resource> type) throws DatabaseException;
+
+ @Override
+ public String toString() {
+ return super.toString() + " type=" + types;
+ }
+}
package org.simantics.selectionview;
+import java.util.Collection;
+import java.util.Collections;
+
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.variable.Variable;
-abstract public class AbstractTypedVariableTabContribution extends AbstractVariableTabContribution {
+abstract public class AbstractTypedVariableTabContribution extends AbstractTypedTabContribution<Variable> {
public AbstractTypedVariableTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
super(graph, configuration);
}
- @Override
- public boolean accept(ReadGraph graph, Variable variable, Object selection) throws DatabaseException {
-
- SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
+ @Override
+ public boolean accept(ReadGraph graph, Object input, Collection<Resource> types) throws DatabaseException {
+
+ if (!(input instanceof Variable))
+ return false;
+ Variable variable = (Variable) input;
- Resource type = graph.getPossibleObject(configuration, SEL.AbstractTypedVariableTabContribution_HasType);
- if(type == null) throw new DatabaseException("No type for " + graph.getPossibleURI(configuration));
+ Resource resource = variable.getPossibleRepresents(graph);
+ if (resource == null)
+ return false;
- Resource resource = variable.getPossibleRepresents(graph);
- if(resource == null) return false;
-
- if(!graph.isInstanceOf(resource, type)) return false;
-
- return super.accept(graph, variable, selection);
-
- }
-
+ Collection<Resource> ts = graph.getTypes(resource);
+ return !Collections.disjoint(types, ts);
+ }
}
package org.simantics.selectionview;
-import java.util.Collection;
-
import org.simantics.Simantics;
-import org.simantics.databoard.Bindings;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
-import org.simantics.db.common.utils.Functions;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.variable.Variable;
import org.simantics.db.layer0.variable.Variables;
-import org.simantics.layer0.Layer0;
import org.simantics.scl.runtime.function.Function;
import org.simantics.ui.selection.WorkbenchSelectionUtils;
-abstract public class AbstractVariableTabContribution implements TabContribution<Object> {
-
- final private String uri;
- final protected Resource configuration;
+abstract public class AbstractVariableTabContribution extends AbstractTabContribution<SelectionInput> {
public AbstractVariableTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
- this.configuration = configuration;
- this.uri = graph.getURI(configuration);
- }
-
- public abstract void getContributors(ReadGraph graph, Variable variable, Integer priority, String label, Collection<ComparableTabContributor> result) throws DatabaseException;
-
- @Override
- public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
- return true;
+ super(graph, configuration);
}
- public boolean accept(ReadGraph graph, Variable variable, Object selection) throws DatabaseException {
+ @Override
+ public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
+ if (!super.accept(graph, input))
+ return false;
+ Variable variable = getPossibleVariable(graph, input);
+ if (variable == null)
+ return false;
- if(selection instanceof SelectionInput) {
+ if(input instanceof SelectionInput) {
SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
- for(Resource r : graph.getObjects(configuration, SEL.AbstractVariableTabContribution_HasTest)) {
- Boolean pass = Functions.exec(graph, r, graph, (SelectionInput)selection);
- if(!pass) return false;
- }
Variable configurationVariable = Variables.getVariable(graph, configuration);
Function f = configurationVariable.getPossiblePropertyValue(graph, SEL.AbstractVariableTabContribution_testFunction);
}
} else {
-
return false;
-
}
-
return true;
-
}
final private Variable getPossibleVariable(ReadGraph graph, Object selection) throws DatabaseException {
}
return null;
}
-
- @Override
- final public void contribute(ReadGraph graph, final Object selection, Collection<ComparableTabContributor> result) throws DatabaseException {
-
- Variable variable = getPossibleVariable(graph, selection);
- if(variable == null) return;
-
- Layer0 L0 = Layer0.getInstance(graph);
- SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
-
- Integer priority = graph.getPossibleRelatedValue(configuration, SEL.AbstractVariableTabContribution_HasPriority, Bindings.INTEGER);
- String label = graph.getPossibleRelatedValue(configuration, L0.HasLabel);
-
- if(!accept(graph, variable, selection)) return;
-
- getContributors(graph, variable, priority, label, result);
-
- }
-
- @Override
- public String toString() {
- return "AbstractVariableTabContribution[" + uri + "]";
- }
-
}
--- /dev/null
+package org.simantics.selectionview;
+
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.ui.IWorkbenchSite;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.utils.Logger;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+import org.simantics.db.layer0.variable.Variables;
+import org.simantics.ui.selection.AnyResource;
+import org.simantics.ui.selection.WorkbenchSelectionElement;
+import org.simantics.views.swt.SWTViewLoaderProcess;
+import org.simantics.views.swt.client.base.SWTRoot;
+
+public class MultiTypedTabContribution extends AbstractTypedTabContribution<Object> {
+
+ public MultiTypedTabContribution(ReadGraph graph, Resource configuration) throws DatabaseException {
+ super(graph, configuration);
+ }
+
+ static class Contribution extends ModelledTabContributor {
+
+ private String viewURI;
+
+ public Contribution(String viewURI) {
+ this.viewURI = viewURI;
+ }
+
+ @Override
+ public void createControls(Composite body, IWorkbenchSite site) {
+
+ try {
+
+ final SWTViewLoaderProcess loader = new SWTViewLoaderProcess(null, site);
+ final SWTRoot root = loader.load(viewURI, runtime);
+ root.createControls(body);
+ body.addListener(SWT.Dispose, new Listener() {
+
+ @Override
+ public void handleEvent(Event event) {
+ if(!loader.isDisposed())
+ loader.dispose();
+ }
+
+ });
+
+ } catch (DatabaseException e) {
+
+ e.printStackTrace();
+ Logger.defaultLogError(e);
+
+ }
+
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ else if (obj == null)
+ return false;
+ else if (!(obj instanceof Contribution))
+ return false;
+ Contribution c = (Contribution)obj;
+ return viewURI.equals(c.viewURI);
+ }
+
+ @Override
+ public int hashCode() {
+ return viewURI.hashCode();
+ }
+
+ }
+
+ @Override
+ public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
+ return true;
+ }
+
+ @Override
+ public boolean accept(ReadGraph graph, Object input, Collection<Resource> type) throws DatabaseException {
+ return true;
+ }
+
+ @Override
+ public void getContributors(ReadGraph graph, Object input, Integer priority, String label, Collection<ComparableTabContributor> result) throws DatabaseException {
+ Collection<?> objects;
+ if (input instanceof Collection<?>) {
+ objects = (Collection<?>) input;
+ } else {
+ objects = Collections.singletonList(input);
+ }
+
+ SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
+ Resource view = graph.getPossibleObject(configuration, SEL.VariableTabContribution_HasView);
+ if(view == null) {
+ throw new DatabaseException("No view for " + graph.getPossibleURI(configuration));
+ }
+
+ Set<Variable> actualResult = new HashSet<>(objects.size());
+ for (Object obj : objects) {
+ Resource resource = getPossibleResource(graph, obj);
+ if (resource == null)
+ continue;
+
+ Collection<Resource> ts = graph.getTypes(resource);
+
+ if (!Collections.disjoint(types, ts)) {
+ Variable variable = Variables.getVariable(graph, resource);
+ actualResult.add(variable);
+ }
+ }
+ if (!actualResult.isEmpty()) {
+ final String viewURI = graph.getPossibleURI(view);
+ result.add(new ComparableTabContributor(new Contribution(viewURI), priority, actualResult, label));
+ }
+ }
+
+ private Resource getPossibleResource(ReadGraph graph, Object obj) {
+ if (obj instanceof Resource)
+ return (Resource) obj;
+ if (obj instanceof WorkbenchSelectionElement)
+ return ((WorkbenchSelectionElement) obj).getContent(new AnyResource(graph));
+ return null;
+ }
+}
Layer0 L0 = Layer0.getInstance(graph);
SelectionViewResources SEL = SelectionViewResources.getInstance(graph);
- Collection<Resource> types = graph.getObjects(configuration, SEL.TypedVariableTabContribution_HasType);
+ Collection<Resource> types = graph.getObjects(configuration, SEL.TypedTabContribution_HasType);
if(types.isEmpty()) throw new DatabaseException("No type for " + graph.getPossibleURI(configuration));
Resource view = graph.getPossibleObject(configuration, SEL.VariableTabContribution_HasView);
if(view == null) {
throw new DatabaseException("No view for " + graph.getPossibleURI(configuration));
}
- Integer priority = graph.getPossibleRelatedValue(configuration, SEL.VariableTabContribution_HasPriority, Bindings.INTEGER);
+ Integer priority = graph.getPossibleRelatedValue(configuration, SEL.TabContribution_HasPriority, Bindings.INTEGER);
String label = graph.getPossibleRelatedValue(configuration, L0.HasLabel);
final String viewURI = graph.getPossibleURI(view);
if (!Collections.disjoint(types, ts)) {
- for(Resource r : graph.getObjects(configuration, SEL.VariableTabContribution_HasTest)) {
+ for(Resource r : graph.getObjects(configuration, SEL.TabContribution_HasTest)) {
Boolean pass = Functions.exec(graph, r, graph, variable);
if(!pass) return;
}
Resource view = graph.getPossibleObject(configuration, SEL.VariableTabContribution_HasView);
if(view == null) throw new DatabaseException("No view for " + graph.getPossibleURI(configuration));
- Integer priority = graph.getPossibleRelatedValue(configuration, SEL.VariableTabContribution_HasPriority, Bindings.INTEGER);
+ Integer priority = graph.getPossibleRelatedValue(configuration, SEL.TabContribution_HasPriority, Bindings.INTEGER);
String label = graph.getPossibleRelatedValue(configuration, L0.HasLabel);
- for(Resource r : graph.getObjects(configuration, SEL.VariableTabContribution_HasTest)) {
+ for(Resource r : graph.getObjects(configuration, SEL.TabContribution_HasTest)) {
Boolean pass = Functions.exec(graph, r, graph, variable);
if(!pass) return;
}