Commit b5ed7589 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

expand simulation view to level 3

refs 682
parent 35f35139
......@@ -60,7 +60,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 84C1B7E2E9092357EA4CECFB785102CE
* @ConQAT.Rating YELLOW Hash: 5F1A61537272DB4E5FA6BDF45950A85E
*/
public class SimulationView extends ViewPart implements IPropertyListener {
......@@ -95,6 +95,7 @@ public class SimulationView extends ViewPart implements IPropertyListener {
}
});
treeViewer.setSorter(new ViewerSorter());
treeViewer.setAutoExpandLevel(2);
treeViewer.setInput(SimulationManager.INSTANCE);
......@@ -157,6 +158,7 @@ public class SimulationView extends ViewPart implements IPropertyListener {
if(source == SimulationManager.INSTANCE) {
if(propId == SimulationManager.SIMULATED_COMPONENT_CHANGED_EVENT) {
treeViewer.refresh();
treeViewer.expandToLevel(3);
updateActions();
closeUnrelatedViews();
} else if(propId == SimulationManager.SIMULATION_PERFORMED_EVENT) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment