Package de.chris_soft.fyllgen.data

Examples of de.chris_soft.fyllgen.data.RelationshipParentChild


      if (mpd.finished) {
        Person originalPerson = Family.instance.getPersonFromXREFID(mcrpd.mergedPerson.getValue(Person.XREFID));
        Relationship newRelship;
        if (rel instanceof RelationshipParentChild) {
          if (rel.partner1 == mcrpd.mergedPerson) {
            newRelship = new RelationshipParentChild(originalPerson, mpd.oldPerson, rel.cloneProperties());
          }
          else {
            newRelship = new RelationshipParentChild(mpd.oldPerson, originalPerson, rel.cloneProperties());
          }
        }
        else {
          newRelship = new RelationshipPartners(mpd.oldPerson, originalPerson, rel.cloneProperties());
        }
View Full Code Here


    if (originalRelationship == null) {
      String question = "Soll die Eltern-Kind-Beziehung zwischen\r\n\r\n" + p1 + "\r\nund\r\n" + p2 + "\r\n\r\n";
      question += "mit dem Status \"" + mergeRelationship.getTypeText() + "\" �bernommen werden?";
      int answer = SwtUtilities.askYesNoCancel(GUI.instance.shell, question);
      if (answer == SWT.YES) {
        RelationshipParentChild rpc = p1.addChild(p2);
        rpc.setValue(Relationship.TYPE, mergeRelationship.getType());
        Family.instance.setCurrentPerson(p2, 2);
        Statics.mergeFamily.removeRelationship(mergeRelationship);
      }
      else if (answer == SWT.NO) {
        Statics.mergeFamily.removeRelationship(mergeRelationship);
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.data.RelationshipParentChild

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.