diff options
author | kmoore | 2008-03-14 14:37:23 +0000 |
---|---|---|
committer | kmoore | 2008-03-14 14:37:23 +0000 |
commit | ea5da8fe79408cedb22b90a619003caf3ff7570d (patch) | |
tree | e3c3d8788e6c7b6a2b3db0baf64e34169e9fcbe0 | |
parent | 25436ec7be14fcdfef86ab8ec67c3aa51c3779f2 (diff) | |
download | webtools.dali-ea5da8fe79408cedb22b90a619003caf3ff7570d.tar.gz webtools.dali-ea5da8fe79408cedb22b90a619003caf3ff7570d.tar.xz webtools.dali-ea5da8fe79408cedb22b90a619003caf3ff7570d.zip |
fix from Pascal to handle the tri-state check box label updating based on the default value.
4 files changed, 62 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/ColumnComposite.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/ColumnComposite.java index 7d68212f6b..488c84dda2 100644 --- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/ColumnComposite.java +++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/ColumnComposite.java @@ -3,7 +3,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. - * + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ @@ -161,6 +161,18 @@ public class ColumnComposite extends AbstractFormPane<Column> protected void setValue_(Boolean value) { subject.setSpecifiedInsertable(value); } + + @Override + protected void subjectChanged() { + Object oldValue = this.value(); + super.subjectChanged(); + Object newValue = this.value(); + + // Make sure the default value is appended to the text + if (oldValue == newValue && newValue == null) { + this.fireAspectChange(Boolean.TRUE, newValue); + } + } }; } @@ -245,6 +257,18 @@ public class ColumnComposite extends AbstractFormPane<Column> protected void setValue_(Boolean value) { subject.setSpecifiedUpdatable(value); } + + @Override + protected void subjectChanged() { + Object oldValue = this.value(); + super.subjectChanged(); + Object newValue = this.value(); + + // Make sure the default value is appended to the text + if (oldValue == newValue && newValue == null) { + this.fireAspectChange(Boolean.TRUE, newValue); + } + } }; } diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/OptionalComposite.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/OptionalComposite.java index 701f1f49ef..a6053d1f56 100644 --- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/OptionalComposite.java +++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/OptionalComposite.java @@ -3,7 +3,7 @@ * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. - * + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ @@ -56,6 +56,18 @@ public class OptionalComposite extends AbstractFormPane<Nullable> protected void setValue_(Boolean value) { subject.setSpecifiedOptional(value); } + + @Override + protected void subjectChanged() { + Object oldValue = this.value(); + super.subjectChanged(); + Object newValue = this.value(); + + // Make sure the default value is appended to the text + if (oldValue == newValue && newValue == null) { + this.fireAspectChange(Boolean.TRUE, newValue); + } + } }; } diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentTypeDetailsPage.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentTypeDetailsPage.java index 5c5f477336..1220af34f6 100644 --- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentTypeDetailsPage.java +++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentTypeDetailsPage.java @@ -123,6 +123,18 @@ public class OrmPersistentTypeDetailsPage extends PersistentTypeDetailsPage<OrmP protected void setValue_(Boolean value) { subject.setSpecifiedMetadataComplete(value); } + + @Override + protected void subjectChanged() { + Object oldValue = this.value(); + super.subjectChanged(); + Object newValue = this.value(); + + // Make sure the default value is appended to the text + if (oldValue == newValue && newValue == null) { + this.fireAspectChange(Boolean.TRUE, newValue); + } + } }; } diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/persistence/details/PersistenceUnitClassesComposite.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/persistence/details/PersistenceUnitClassesComposite.java index fc19057492..e9f24b20bc 100644 --- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/persistence/details/PersistenceUnitClassesComposite.java +++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/persistence/details/PersistenceUnitClassesComposite.java @@ -179,6 +179,18 @@ public class PersistenceUnitClassesComposite extends AbstractPane<PersistenceUni protected void setValue_(Boolean value) { subject.setSpecifiedExcludeUnlistedClasses(value); } + + @Override + protected void subjectChanged() { + Object oldValue = this.value(); + super.subjectChanged(); + Object newValue = this.value(); + + // Make sure the default value is appended to the text + if (oldValue == newValue && newValue == null) { + this.fireAspectChange(Boolean.TRUE, newValue); + } + } }; } |