if (!variables.isEmpty())\r
// Do we have at least one variable\r
tabs.add(new ComparableTabContributor(\r
- new ArrayIndexesTab(),\r
+ new ArrayIndexesTab(variables),\r
1,\r
variables,\r
"Indexes"));\r
else if (!dependencies.isEmpty()) {\r
// Dependencies only\r
tabs.add(new ComparableTabContributor(\r
- new ArrayDependencyTab(),\r
+ new ArrayDependencyTab(dependencies),\r
1,\r
dependencies,\r
"Dependency Properties"));\r
else if (!flows.isEmpty()) {\r
// Flows only\r
tabs.add(new ComparableTabContributor(\r
- new ArrayFlowTab(),\r
+ new ArrayFlowTab(flows),\r
1,\r
flows,\r
"Flow Properties"));\r
SharedFunctionsFolder sff = AdaptionUtils.adaptToSingle(selection, SharedFunctionsFolder.class);\r
if (sff != null) {\r
return Collections.singleton(new ComparableTabContributor(\r
- new SharedFunctionLibrariesTab(),\r
+ new SharedFunctionLibrariesTab(sff.data),\r
2,\r
sff.data,\r
"Shared Functions"));\r
NodeType type = nc.getConstant(NodeType.TYPE);\r
if(type != null && type.equals(sharedFunctionsTestNode)) {\r
return Collections.singleton(new ComparableTabContributor(\r
- new SharedFunctionLibrariesTab(),\r
+ new SharedFunctionLibrariesTab(r),\r
2,\r
r,\r
"Shared Functions"));\r
if(backend.isInstanceOf(r, sr.Loop)) {\r
return Collections.singleton(\r
(new ComparableTabContributor(\r
- new LoopTab(),\r
+ new LoopTab(r),\r
1,\r
r,\r
"Loop")));\r
expression = expressionList.get(0);\r
}\r
tabs.add(new ComparableTabContributor(\r
- new EquationTab(),\r
+ new EquationTab(var != null ? var : r),\r
3,\r
var != null ? var : r,\r
"Equation"));\r
if(expression != null && backend.isInstanceOf(expression, sr.WithLookupExpression)) {\r
// WithLookupExpression has its own extra tab for visual configuration\r
tabs.add(new ComparableTabContributor(\r
- new LookupTableTab(),\r
+ new LookupTableTab(expression),\r
2,\r
expression,\r
"Lookup Table"));\r
}\r
\r
tabs.add(new ComparableTabContributor(\r
- new ArrayIndexesTab(),\r
+ new ArrayIndexesTab(r),\r
1,\r
r,\r
"Indexes"));\r
\r
tabs.add(new ComparableTabContributor(\r
- new VariableInformationTab(),\r
+ new VariableInformationTab(r),\r
0,\r
r,\r
"Additional Information"));\r
// Input variable\r
if (backend.isInstanceOf(r, sr.Input)) {\r
tabs.add(new ComparableTabContributor(\r
- new InputVariableTab(),\r
+ new InputVariableTab(r),\r
2,\r
r,\r
"Input"));\r
\r
tabs.add(new ComparableTabContributor(\r
- new ArrayIndexesTab(),\r
+ new ArrayIndexesTab(r),\r
1,\r
r,\r
"Indexes"));\r
\r
tabs.add(new ComparableTabContributor(\r
- new VariableInformationTab(),\r
+ new VariableInformationTab(r),\r
0,\r
r,\r
"Additional Information"));\r
s = r;\r
// give either variable or the actual resource\r
return Collections.singleton(new ComparableTabContributor(\r
- new EnumerationTab(),\r
+ new EnumerationTab(s),\r
2,\r
s,\r
"Enumeration"));\r
if (r != null)\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new ConfigurationTab(),\r
+ new ConfigurationTab(r),\r
0,\r
r,\r
"Model Properties"));\r
// Module\r
if (backend.isInstanceOf(r, sr.Module)){\r
tabs.add(new ComparableTabContributor(\r
- new ModuleTab(),\r
+ new ModuleTab(r),\r
10,\r
r,\r
"Module Properties"));\r
tabs.add(new ComparableTabContributor(\r
- new ModuleParameterTab(),\r
+ new ModuleParameterTab(r),\r
9,\r
r,\r
"Parameters"));\r
tabs.add(new ComparableTabContributor(\r
- new ModuleInputTab(),\r
+ new ModuleInputTab(r),\r
2,\r
r,\r
"Inputs"));\r
tabs.add(new ComparableTabContributor(\r
- new ModuleOutputTab(),\r
+ new ModuleOutputTab(r),\r
1,\r
r,\r
"Outputs"));\r
if (backend.isInstanceOf(r, sr.PlaybackExperiment))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new PlaybackExperimentTab(),\r
+ new PlaybackExperimentTab(r),\r
0,\r
r,\r
"Experiment Properties"));\r
if (backend.isInstanceOf(r, sr.GameExperiment))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new GameExperimentTab(),\r
+ new GameExperimentTab(r),\r
0,\r
r,\r
"Experiment Properties"));\r
if (backend.isInstanceOf(r, sr.SensitivityAnalysisExperiment))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new SensitivityAnalysisExperimentTab(),\r
+ new SensitivityAnalysisExperimentTab(r),\r
0,\r
r,\r
"Experiment Properties"));\r
if (backend.isInstanceOf(r, simu.Experiment))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new ExperimentTab(),\r
+ new ExperimentTab(r),\r
0,\r
r,\r
"Experiment Properties"));\r
if (backend.isInstanceOf(r, sr.HistoryDataset))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new HistoryDataTab(),\r
+ new HistoryDataTab(r),\r
0,\r
r,\r
"History Data Properties"));\r
if (backend.isInstanceOf(r, sr.Result))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new ResultTab(),\r
+ new ResultTab(r),\r
0,\r
r,\r
"Result Properties"));\r
Resource diaConnection = backend.getPossibleObject(r, ModelingResources.getInstance(backend).ConnectionToDiagramConnection);\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new DependencyTab(),\r
+ new DependencyTab(diaConnection),\r
0,\r
diaConnection,\r
"Reference Properties"));\r
Resource diaConnection = backend.getPossibleObject(r, ModelingResources.getInstance(backend).ConnectionToDiagramConnection);\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new DependencyTab(),\r
+ new DependencyTab(diaConnection),\r
0,\r
diaConnection,\r
"Dependency Properties"));\r
Resource diaConnection = backend.getPossibleObject(r, ModelingResources.getInstance(backend).ConnectionToDiagramConnection);\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new FlowTab(),\r
+ new FlowTab(diaConnection),\r
0,\r
diaConnection,\r
"Flow Properties"));\r
if(r != null)\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new ModuleTypeTab(),\r
+ new ModuleTypeTab(r),\r
0,\r
r,\r
"Module Type Properties"));\r
// Function\r
if (backend.isInstanceOf(r, sr.SysdynModelicaFunction)) {\r
tabs.add(new ComparableTabContributor(\r
- new FunctionTab(),\r
+ new FunctionTab(r),\r
2,\r
r,\r
"Function"));\r
tabs.add(new ComparableTabContributor(\r
- new ExternalFilesTab(),\r
+ new ExternalFilesTab(r),\r
1,\r
r,\r
"External files"));\r
s = r;\r
// give either variable or the actual resource\r
return Collections.singleton(new ComparableTabContributor(\r
- new FunctionLibraryTab(),\r
+ new FunctionLibraryTab(s),\r
2,\r
s,\r
"Function library"));\r
if (backend.isInstanceOf(r, sr.AdditionalSymbols_MultilineText))\r
return Collections.singleton(\r
new ComparableTabContributor(\r
- new CommentTab(),\r
+ new CommentTab(r),\r
0,\r
r,\r
"Comment"));\r
\r
if(backend.isInstanceOf(plot, SysdynResource.getInstance(backend).Charts_SensitivityPlot)) {\r
tabs.add(new ComparableTabContributor(\r
- new XYLineGeneralPropertiesTab(),\r
+ new XYLineGeneralPropertiesTab(r),\r
10,\r
r,\r
"General"));\r
tabs.add(new ComparableTabContributor(\r
- new SensitivityChartAxisAndVariablesTab(),\r
+ new SensitivityChartAxisAndVariablesTab(r),\r
9,\r
r,\r
"Axis and Variables"));\r
tabs.add(new ComparableTabContributor(\r
- new ChartTab(),\r
+ new ChartTab(r),\r
1,\r
r,\r
"Chart"));\r