]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/OpenAndCloseDiagram.java
Small but effective HiDPI fixes for platform G2D
[simantics/platform.git] / bundles / org.simantics.modeling.tests / src / org / simantics / modeling / tests / commands / OpenAndCloseDiagram.java
1 package org.simantics.modeling.tests.commands;
2
3 import org.simantics.db.testing.common.CommandInvoker;
4 import org.simantics.db.testing.common.CommandSequenceEnvironment;
5 import org.simantics.modeling.tests.traits.SingleResourceTrait;
6
7 public class OpenAndCloseDiagram implements CommandInvoker<SingleResourceTrait> {
8
9         @Override
10         public void invoke(CommandSequenceEnvironment environment, SingleResourceTrait parameter) throws Exception {
11                 
12                 LoadDiagram load = new LoadDiagram(parameter.getResource());
13                 UnloadDiagram unload = new UnloadDiagram(load);
14                 environment.invoke(environment, load);
15                 environment.invoke(environment, unload);
16                 environment.invoke(environment, new CollectMemory());
17                 
18         }
19
20 }