-package org.simantics.diagram.profile.view;\r
-\r
-import org.eclipse.core.runtime.IAdaptable;\r
-import org.simantics.db.Resource;\r
-import org.simantics.utils.datastructures.map.Tuple;\r
-\r
-public class ResourcePair extends Tuple implements IAdaptable{\r
- ResourcePair(Resource first, Resource second) { super(first ,second); }\r
- public Resource getFirst() { return (Resource) getField(0); }\r
- public Resource getSecond() { return (Resource) getField(1); }\r
- \r
- @SuppressWarnings("rawtypes")\r
- @Override\r
- public Object getAdapter(Class adapter) {\r
- if (adapter == Resource.class) {\r
- return getSecond();\r
- }\r
- return null;\r
- }\r
- \r
- \r
+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