1 package org.simantics.diagram.profile.view;
3 import org.eclipse.core.runtime.IAdaptable;
4 import org.simantics.db.Resource;
5 import org.simantics.utils.datastructures.map.Tuple;
7 public class ResourcePair extends Tuple implements IAdaptable{
8 ResourcePair(Resource first, Resource second) { super(first ,second); }
9 public Resource getFirst() { return (Resource) getField(0); }
10 public Resource getSecond() { return (Resource) getField(1); }
12 @SuppressWarnings("rawtypes")
14 public Object getAdapter(Class adapter) {
15 if (adapter == Resource.class) {