X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.model%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fmodel%2Ftests%2FHasInstanceOfTest.java;h=5269f13291d4d0f21903959fddde893014fad19f;hp=0d5ea67e6ea02fc69c8deab87ccb5a1329eaa8b1;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/tests/HasInstanceOfTest.java b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/tests/HasInstanceOfTest.java index 0d5ea67e6..5269f1329 100644 --- a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/tests/HasInstanceOfTest.java +++ b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/tests/HasInstanceOfTest.java @@ -1,26 +1,26 @@ -package org.simantics.browsing.ui.model.tests; - -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.exception.DatabaseException; - -public class HasInstanceOfTest implements Test { - Resource type; - - public HasInstanceOfTest(Resource type) { - this.type = type; - } - - @Override - public boolean isCompatible(Class contentType) { - return contentType == Resource.class; - } - - @Override - public boolean test(ReadGraph graph, Object content) - throws DatabaseException { - return graph.isInstanceOf((Resource)content, type); - } - - -} +package org.simantics.browsing.ui.model.tests; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; + +public class HasInstanceOfTest implements Test { + Resource type; + + public HasInstanceOfTest(Resource type) { + this.type = type; + } + + @Override + public boolean isCompatible(Class contentType) { + return contentType == Resource.class; + } + + @Override + public boolean test(ReadGraph graph, Object content) + throws DatabaseException { + return graph.isInstanceOf((Resource)content, type); + } + + +}