From e8d444dad6a4be775da2e434b8296aa664adc1ec Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 5 Oct 2010 09:38:16 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18217 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../SysdynDatasetSelectionListener.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java index 4424ceda..5e6f4168 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java @@ -161,38 +161,6 @@ public abstract class SysdynDatasetSelectionListener implements ISelectionListen } }); } - - /* - protected Collection loadAllActive(ReadGraph g, Resource element, Resource runtime) throws DatabaseException { - - Layer0 l0 = Layer0.getInstance(g); - - SysdynResource sr = SysdynResource.getInstance(g); - - DiagramResource dr = DiagramResource.getInstance(g); - - if(runtime == null) return null; - Resource resource = ModelingUtils.getPossibleElementCorrespondendence(g, element); - if(resource == null || !g.isInstanceOf(resource, sr.Variable)) return null; - - String variableURI = g.getPossibleRelatedValue(runtime, dr.HasVariable); - - System.out.println("load dataset for '"+ g.getPossibleRelatedValue(resource, l0.HasName) + "'in composite '" + variableURI + "'"); - Variable compositeVariable = Variables.getVariable(g, variableURI); - Variable item = compositeVariable.browsePossible(g, resource); - if(item == null) return null; - - String rvi = Variables.getRVI(g, item); - System.out.println("HistoryVariable rvi='" + rvi + "'"); - - System.out.println("load dataset for '" + item.getURI(g) + "'"); - - Resource model = Variables.getModel(g, item); - - return loadAllActive(g, rvi.substring(1), model); - - } - */ protected Collection loadAllActive(ReadGraph g, String rvi, SysdynModel model) throws DatabaseException { ArrayList dataSets = new ArrayList(); -- 2.47.1