]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18217 ac1ea38d-2e2b...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 5 Oct 2010 09:38:16 +0000 (09:38 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 5 Oct 2010 09:38:16 +0000 (09:38 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java

index 4424cedad764adb2ec570e9266d40047339e661f..5e6f41687e67b625288887a445ec9902d8c202f7 100644 (file)
@@ -161,38 +161,6 @@ public abstract class SysdynDatasetSelectionListener implements ISelectionListen
                        }\r
                });\r
        }\r
-       \r
-       /*\r
-       protected Collection<SysdynDataSet> loadAllActive(ReadGraph g, Resource element, Resource runtime) throws DatabaseException {\r
-\r
-               Layer0 l0 = Layer0.getInstance(g);\r
-\r
-               SysdynResource sr = SysdynResource.getInstance(g);\r
-\r
-               DiagramResource dr = DiagramResource.getInstance(g);\r
-\r
-               if(runtime == null) return null;\r
-               Resource resource = ModelingUtils.getPossibleElementCorrespondendence(g, element);\r
-               if(resource == null || !g.isInstanceOf(resource, sr.Variable)) return null;\r
-\r
-               String variableURI = g.getPossibleRelatedValue(runtime, dr.HasVariable);\r
-\r
-               System.out.println("load dataset for '"+ g.getPossibleRelatedValue(resource, l0.HasName) + "'in composite '" + variableURI + "'");\r
-               Variable compositeVariable = Variables.getVariable(g, variableURI);\r
-               Variable item = compositeVariable.browsePossible(g, resource);\r
-               if(item == null) return null;\r
-\r
-               String rvi = Variables.getRVI(g, item);\r
-               System.out.println("HistoryVariable rvi='" + rvi + "'");\r
-\r
-               System.out.println("load dataset for '" + item.getURI(g) + "'");\r
-\r
-               Resource model = Variables.getModel(g, item);\r
-\r
-               return loadAllActive(g, rvi.substring(1), model);\r
-\r
-       }\r
-       */\r
 \r
        protected Collection<SysdynDataSet> loadAllActive(ReadGraph g, String rvi, SysdynModel model) throws DatabaseException {\r
                ArrayList<SysdynDataSet> dataSets = new ArrayList<SysdynDataSet>();\r