]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/CollectMemory.java
Small but effective HiDPI fixes for platform G2D
[simantics/platform.git] / bundles / org.simantics.modeling.tests / src / org / simantics / modeling / tests / commands / CollectMemory.java
1 package org.simantics.modeling.tests.commands;
2
3 import org.simantics.Simantics;
4 import org.simantics.db.exception.DatabaseException;
5 import org.simantics.db.layer0.util.SessionGarbageCollection;
6 import org.simantics.db.testing.common.CommandSequenceEnvironment;
7 import org.simantics.db.testing.common.WriteCommand;
8
9 public class CollectMemory extends WriteCommand<CommandSequenceEnvironment> {
10         
11         @Override
12         public void run(CommandSequenceEnvironment environment) throws DatabaseException {
13                 SessionGarbageCollection.gc(null, Simantics.getSession(), true, null, 0, 0);
14         }
15         
16 }