tEnv.addObjRelation("Selections", new Object[] {
oFrame1, oFrame2, textRanges1, textRanges2});
tEnv.addObjRelation("Comparer", new Comparator() {
public int compare(Object o1, Object o2) {
XServiceInfo serv1 = (XServiceInfo)
UnoRuntime.queryInterface(XServiceInfo.class, o1);
XServiceInfo serv2 = (XServiceInfo)
UnoRuntime.queryInterface(XServiceInfo.class, o2);
String implName1 = serv1.getImplementationName();
String implName2 = serv2.getImplementationName();
if (!implName1.equals(implName2)) {
return -1;
}
XIndexAccess indAc1 = (XIndexAccess)