-package org.simantics.document.ui.test;\r
-\r
-import org.simantics.browsing.ui.model.tests.Test;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.document.DocumentResource;\r
-\r
-public class DocumentOldTest implements Test{\r
- \r
- @Override\r
- public boolean isCompatible(Class<?> contentType) {\r
- return contentType == Resource.class;\r
- }\r
- \r
- @Override\r
- public boolean test(ReadGraph graph, Object content)\r
- throws DatabaseException {\r
- Resource resource = (Resource)content;\r
- DocumentResource doc = DocumentResource.getInstance(graph);\r
- return graph.hasStatement(resource, doc.HasNewerVersion);\r
- }\r
-\r
-}\r
+package org.simantics.document.ui.test;
+
+import org.simantics.browsing.ui.model.tests.Test;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.document.DocumentResource;
+
+public class DocumentOldTest implements Test{
+
+ @Override
+ public boolean isCompatible(Class<?> contentType) {
+ return contentType == Resource.class;
+ }
+
+ @Override
+ public boolean test(ReadGraph graph, Object content)
+ throws DatabaseException {
+ Resource resource = (Resource)content;
+ DocumentResource doc = DocumentResource.getInstance(graph);
+ return graph.hasStatement(resource, doc.HasNewerVersion);
+ }
+
+}