X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram.profile%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2Fview%2FResourcePair.java;h=c64149920069f8c29c71a16f36164577f20b3ae8;hb=7399881afbe82eb7020ac279604eaa0316724672;hp=3aab7e20469d966048d29567ce908ee6f587a600;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePair.java b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePair.java index 3aab7e204..c64149920 100644 --- a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePair.java +++ b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePair.java @@ -1,22 +1,22 @@ -package org.simantics.diagram.profile.view; - -import org.eclipse.core.runtime.IAdaptable; -import org.simantics.db.Resource; -import org.simantics.utils.datastructures.map.Tuple; - -public class ResourcePair extends Tuple implements IAdaptable{ - ResourcePair(Resource first, Resource second) { super(first ,second); } - public Resource getFirst() { return (Resource) getField(0); } - public Resource getSecond() { return (Resource) getField(1); } - - @SuppressWarnings("rawtypes") - @Override - public Object getAdapter(Class adapter) { - if (adapter == Resource.class) { - return getSecond(); - } - return null; - } - - +package org.simantics.diagram.profile.view; + +import org.eclipse.core.runtime.IAdaptable; +import org.simantics.db.Resource; +import org.simantics.utils.datastructures.map.Tuple; + +public class ResourcePair extends Tuple implements IAdaptable{ + ResourcePair(Resource first, Resource second) { super(first ,second); } + public Resource getFirst() { return (Resource) getField(0); } + public Resource getSecond() { return (Resource) getField(1); } + + @SuppressWarnings("rawtypes") + @Override + public Object getAdapter(Class adapter) { + if (adapter == Resource.class) { + return getSecond(); + } + return null; + } + + } \ No newline at end of file