org.simantics.color.ontology;bundle-version="1.0.0",
org.simantics.simulation.ontology;bundle-version="1.0.0",
org.simantics.silk.ontology;bundle-version="1.0.0",
- org.simantics.spreadsheet.ontology;bundle-version="1.1.0"
+ org.simantics.spreadsheet.ontology;bundle-version="1.1.0",
+ org.simantics.workbench.ontology;bundle-version="1.2.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: org.simantics.sysdyn
Bundle-Vendor: VTT Technical Reserarch Centre of Finland
PROJ = <http://www.simantics.org/Project-1.2>
JFREE = <http://www.simantics.org/JFreeChart-1.0>
SHEET = <http://www.simantics.org/Spreadsheet-1.2>
+WORKBENCH = <http://www.simantics.org/Workbench-1.2>
//#####################################################################
// Defines ontology and attaches it to SimanticsDomain
SYSDYN.ModulesSearchFunction : L0.Function
+SYSDYN.SearchContribution : WORKBENCH.SearchContribution
+ WORKBENCH.hasSearchFunction SYSDYN.ModulesSearchFunction
+
//#####################################################################
// Variables
//#####################################################################
public final Resource Result_time;\r
public final Resource Result_time_Inverse;\r
public final Resource Right;\r
+ public final Resource SearchContribution;\r
public final Resource SelectedSharedFunctionLibraries;\r
public final Resource SensitivityAnalysisExperiment;\r
public final Resource SensitivityAnalysisExperiment_Parameter;\r
public static final String Result_time = "http://www.simantics.org/Sysdyn-1.1/Result/time";\r
public static final String Result_time_Inverse = "http://www.simantics.org/Sysdyn-1.1/Result/time/Inverse";\r
public static final String Right = "http://www.simantics.org/Sysdyn-1.1/Right";\r
+ public static final String SearchContribution = "http://www.simantics.org/Sysdyn-1.1/SearchContribution";\r
public static final String SelectedSharedFunctionLibraries = "http://www.simantics.org/Sysdyn-1.1/SelectedSharedFunctionLibraries";\r
public static final String SensitivityAnalysisExperiment = "http://www.simantics.org/Sysdyn-1.1/SensitivityAnalysisExperiment";\r
public static final String SensitivityAnalysisExperiment_Parameter = "http://www.simantics.org/Sysdyn-1.1/SensitivityAnalysisExperiment/Parameter";\r
Result_time = getResourceOrNull(graph, URIs.Result_time);\r
Result_time_Inverse = getResourceOrNull(graph, URIs.Result_time_Inverse);\r
Right = getResourceOrNull(graph, URIs.Right);\r
+ SearchContribution = getResourceOrNull(graph, URIs.SearchContribution);\r
SelectedSharedFunctionLibraries = getResourceOrNull(graph, URIs.SelectedSharedFunctionLibraries);\r
SensitivityAnalysisExperiment = getResourceOrNull(graph, URIs.SensitivityAnalysisExperiment);\r
SensitivityAnalysisExperiment_Parameter = getResourceOrNull(graph, URIs.SensitivityAnalysisExperiment_Parameter);\r
//final Set<Resource> requiredActivations = new HashSet<Resource>();\r
//requiredActivations.add(APROS.IndexActivation);\r
\r
- session.syncRequest(new WriteRequest(support.getWorkspacePersistent("activations")) {\r
- @Override\r
- public void perform(WriteGraph graph) throws DatabaseException {\r
-\r
- final SysdynResource SR = SysdynResource.getInstance(graph);\r
- \r
- //for (Resource activation : graph.getObjects(project.get(), L0X.HasActivation))\r
- // requiredActivations.remove(activation);\r
- //for (Resource requiredActivation : requiredActivations)\r
- // if (requiredActivation != null)\r
- // graph.claim(project.get(), L0X.HasActivation, null, requiredActivation);\r
- \r
- // Initialize Modules function as workbench search function.\r
- graph.syncRequest(new WriteRequest(support.getWorkspacePersistent("preferences")) {\r
- @Override\r
- public void perform(WriteGraph graph) throws DatabaseException {\r
- WorkbenchResource WB = WorkbenchResource.getInstance(graph);\r
- graph.deny(project.get(), WB.HasWorkbenchSearchFunction);\r
- graph.claim(project.get(), WB.HasWorkbenchSearchFunction, SR.ModulesSearchFunction);\r
- }\r
- });\r
- }\r
- });\r
+ \r
\r
} catch (DatabaseException e) {\r
\r