X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Futil%2FResourceCopyRepresentation.java;h=90a3a184c29267bb3865d45bd5e79ad185cd3e5f;hp=b2992953da43cb0c3e6793d08386381af11e1285;hb=e19c37f84fd1ce2d946578f7c05f3e45444ba67a;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ResourceCopyRepresentation.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ResourceCopyRepresentation.java index b2992953d..90a3a184c 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ResourceCopyRepresentation.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ResourceCopyRepresentation.java @@ -1,30 +1,30 @@ -package org.simantics.db.layer0.util; - -import java.util.Collection; -import java.util.Map; - -import org.simantics.db.RequestProcessor; -import org.simantics.db.Resource; -import org.simantics.db.layer0.util.SimanticsClipboard.Representation; -import org.simantics.utils.datastructures.hints.IHintContext.Key; - -class ResourceCopyRepresentation implements Representation { - - private Collection resources; - - public ResourceCopyRepresentation(Collection resources) { - this.resources = resources; - } - - @Override - public Key getKey() { - return SimanticsKeys.KEY_COPY_RESOURCES; - } - - @SuppressWarnings("unchecked") - @Override - public T getValue(RequestProcessor processor, Map hints) { - return (T) resources; - } - +package org.simantics.db.layer0.util; + +import java.util.Collection; +import java.util.Map; + +import org.simantics.db.RequestProcessor; +import org.simantics.db.Resource; +import org.simantics.db.layer0.util.SimanticsClipboard.Representation; +import org.simantics.utils.datastructures.hints.IHintContext.Key; + +class ResourceCopyRepresentation implements Representation { + + private Collection resources; + + public ResourceCopyRepresentation(Collection resources) { + this.resources = resources; + } + + @Override + public Key getKey() { + return SimanticsKeys.KEY_COPY_RESOURCES; + } + + @SuppressWarnings("unchecked") + @Override + public T getValue(RequestProcessor processor, Map hints) { + return (T) resources; + } + } \ No newline at end of file