boolean bNext;
MergeChoiceRelationshipPersonDialog mcrpd = new MergeChoiceRelationshipPersonDialog(GUI.instance.shell, rel);
mcrpd.open();
bNext = mcrpd.finished;
if (mcrpd.finished) {
MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, mcrpd.oldPerson, mcrpd.otherPerson);
mpd.open();
bNext = mpd.finished;
}
else if (mcrpd.finishedNew) {
MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, null, mcrpd.otherPerson);
mpd.open();
if (mpd.finished) {
Person originalPerson = Family.instance.getPersonFromXREFID(mcrpd.mergedPerson.getValue(Person.XREFID));
Relationship newRelship;
if (rel instanceof RelationshipParentChild) {
if (rel.partner1 == mcrpd.mergedPerson) {