Package de.chris_soft.fyllgen.data

Examples of de.chris_soft.fyllgen.data.RelationshipPartners


          else {
            newRelship = new RelationshipParentChild(mpd.oldPerson, originalPerson, rel.cloneProperties());
          }
        }
        else {
          newRelship = new RelationshipPartners(mpd.oldPerson, originalPerson, rel.cloneProperties());
        }
        originalPerson.addRelationship(newRelship);
        Family.instance.setCurrentPerson(mpd.oldPerson, 2);
        mcrpd.otherPerson.removeRelationship(rel);
        Statics.mergeFamily.removeFinishedMergePersons(new ArrayList<Person>(), rel.partner1);
View Full Code Here


   * @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);
View Full Code Here

    // Falls oldPertnerRelship == null, neu anlegen.
    if (oldPartnerRelship == null) {
      Person p1 = Family.instance.getPersonFromXREFID(newPartnerRelship.partner1.getXREFID());
      Person p2 = Family.instance.getPersonFromXREFID(newPartnerRelship.partner2.getXREFID());
      oldPartnerRelship = new RelationshipPartners(p1, p2, newPartnerRelship.cloneProperties());
      viewData = new Properties[0];
    }

    this.newPartnerRelship = newPartnerRelship;
    this.oldPartnerRelship = oldPartnerRelship;
View Full Code Here

   * @throws GedReaderException
   */
  private void readFAM(List<String> gedRecord) throws GedReaderException {
    // Elternteile und Partnerschaft.
    String husb = null, wife = null;
    RelationshipPartners partnership = null;

    // TODO - F�r den Fall, dass die Familien vor den Personen in der GED-Datei
    // stehen, k�nnte man auch eine Liste aller Partnerschaften und so aufbauen
    // und diese erst nach dem Einlesen einpflegen.
    // TODO - Dann d�rfte man aber nur mit IDs arbeiten, nicht mit
View Full Code Here

TOP

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

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.