Fixes #2441
authorn.hoffmann <n.hoffmann@localhost>
Thu, 16 Jun 2011 12:13:39 +0000 (12:13 +0000)
committern.hoffmann <n.hoffmann@localhost>
Thu, 16 Jun 2011 12:13:39 +0000 (12:13 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipWizardPage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/AbstractSelectionElement.java

index 300140442ffc73201ce981d676d60364c1e692d4..3acdf74bbffe90fc80010c1b1e7c869716d15687 100644 (file)
@@ -132,7 +132,8 @@ public class NameRelationshipWizardPage extends WizardPage implements
                        toName = selection_relatedTo.getEntity();
                }
 
-               setPageComplete(type != null && toName != null);
+               boolean complete = type != null && toName != null;
+               setPageComplete(complete);
        }
 
        /** {@inheritDoc} */
index 4513158e60097c785872ff365b1c4e8f7413eb03..b7d1e6443cd3d1c19fc9b3ab44a7018d86d4aa75 100644 (file)
@@ -222,7 +222,7 @@ public abstract class AbstractSelectionElement<T> extends
        protected void setSelectionInternal(T selection) {
                if (selection != null && !selection.equals(this.entity)) {
                        setEntity(selection);
-                       getParentElement().firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
+                       firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
                }
        }