* @return true, wenn der Anwender die Daten �bernommen hat, sonst false.
*/
private boolean mergePartnerRelation(RelationshipPartners newRelship) {
Person p1 = Family.instance.getPersonFromXREFID(newRelship.partner1.getXREFID());
Person p2 = Family.instance.getPersonFromXREFID(newRelship.partner2.getXREFID());
RelationshipPartners oldRelship = p1.getPartnersRelationship(p2);
// Fragen, ob Partnerschaft �bernommen werden soll.
if (oldRelship == null) {
String question = "Soll die Partnerschaft zwischen\r\n\r\n" + p1 + "\r\nund\r\n" + p2 + "\r\n\r\n";
question += "mit dem Status \"" + newRelship.getTypeText() + "\" �bernommen werden?";
int answer = SwtUtilities.askYesNoCancel(GUI.instance.shell, question);
if (answer == SWT.YES) {
String type = newRelship.getType();
RelationshipPartners rpc = p1.addPartner(p2, type);
rpc.setValue(Relationship.TYPE, type);
Family.instance.setCurrentPerson(p2, 2);
Statics.mergeFamily.removeRelationship(newRelship);
}
else if (answer == SWT.NO) {
Statics.mergeFamily.removeRelationship(newRelship);