"http://www.simantics.org/Sysdyn-1.1" : L0.URI
"http://www.simantics.org/Layer0-1.0" : L0.URI
"http://www.simantics.org/Documentation-1.0" : L0.URI // Experimental documentation tool
- "http://www.simantics.org/SelectionView-1.1" : L0.URI
-
+ "http://www.simantics.org/SelectionView-1.1" : L0.URI
+
SYSDYN.SharedFunctionOntology <T L0.Ontology
-SYSDYN.SharedModuleOntolofgy <T L0.Ontology
+SYSDYN.SharedModuleOntology <T L0.Ontology
FUNCTIONS = SYSDYN.Functions : L0.Library
@L0.new
public final Resource Right;\r
public final Resource SelectedSharedFunctionLibraries;\r
public final Resource SharedFunctionOntology;\r
- public final Resource SharedModuleOntolofgy;\r
+ public final Resource SharedModuleOntology;\r
public final Resource SimulateOnChangeExperiment;\r
public final Resource SimulationPlaybackProfile;\r
public final Resource SimulationPlaybackStyle;\r
public static final String Right = "http://www.simantics.org/Sysdyn-1.1/Right";\r
public static final String SelectedSharedFunctionLibraries = "http://www.simantics.org/Sysdyn-1.1/SelectedSharedFunctionLibraries";\r
public static final String SharedFunctionOntology = "http://www.simantics.org/Sysdyn-1.1/SharedFunctionOntology";\r
- public static final String SharedModuleOntolofgy = "http://www.simantics.org/Sysdyn-1.1/SharedModuleOntolofgy";\r
+ public static final String SharedModuleOntology = "http://www.simantics.org/Sysdyn-1.1/SharedModuleOntology";\r
public static final String SimulateOnChangeExperiment = "http://www.simantics.org/Sysdyn-1.1/SimulateOnChangeExperiment";\r
public static final String SimulationPlaybackProfile = "http://www.simantics.org/Sysdyn-1.1/SimulationPlaybackProfile";\r
public static final String SimulationPlaybackStyle = "http://www.simantics.org/Sysdyn-1.1/SimulationPlaybackStyle";\r
Right = getResourceOrNull(graph, URIs.Right);\r
SelectedSharedFunctionLibraries = getResourceOrNull(graph, URIs.SelectedSharedFunctionLibraries);\r
SharedFunctionOntology = getResourceOrNull(graph, URIs.SharedFunctionOntology);\r
- SharedModuleOntolofgy = getResourceOrNull(graph, URIs.SharedModuleOntolofgy);\r
+ SharedModuleOntology = getResourceOrNull(graph, URIs.SharedModuleOntology);\r
SimulateOnChangeExperiment = getResourceOrNull(graph, URIs.SimulateOnChangeExperiment);\r
SimulationPlaybackProfile = getResourceOrNull(graph, URIs.SimulationPlaybackProfile);\r
SimulationPlaybackStyle = getResourceOrNull(graph, URIs.SimulationPlaybackStyle);\r
import org.simantics.db.exception.ServiceException;\r
import org.simantics.db.layer0.request.PossibleActiveVariableFromVariable;\r
import org.simantics.db.layer0.variable.Variable;\r
-import org.simantics.db.layer0.variable.Variables;\r
import org.simantics.diagram.stubs.DiagramResource;\r
import org.simantics.layer0.Layer0;\r
import org.simantics.modeling.ModelingResources;\r
+import org.simantics.modeling.ui.property.svg.SVGElementComposite;\r
import org.simantics.selectionview.ComparableTabContributor;\r
import org.simantics.selectionview.SelectionProcessor;\r
import org.simantics.simulation.ontology.SimulationResource;\r
if(r == null) {\r
// Selection is not directly a resource, try if it is a variable \r
var = AdaptionUtils.adaptToSingle(selection, Variable.class);\r
- r = (Resource)var.getPropertyValue(backend, Variables.REPRESENTS);\r
+ r = var.getRepresents(backend);\r
}\r
\r
if(r == null) {\r
"Shared Functions"));\r
}\r
}\r
+ \r
+ // SVG elements in symbol editor\r
+ if (backend.isInstanceOf(r, dr.SVGElement))\r
+ return Collections.singleton(SVGElementComposite.make(r, 1, "SVG"));\r
\r
// if r == diagram element, change it to component\r
if (backend.isInstanceOf(r, dr.Element)) {\r