]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePair.java
Better support for ontological profiles
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / ResourcePair.java
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
deleted file mode 100644 (file)
index c641499..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-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