Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-06-29 04:55:05 -0400
committercletavernie2012-06-29 04:55:05 -0400
commitda9f527633fe6b949d12a7840333cab5721c8069 (patch)
tree05e225232e682eddb8c656f865a47386a38eddba
parent07de3953701d29a105312dbcde5064c258a63fe8 (diff)
downloadorg.eclipse.papyrus-da9f527633fe6b949d12a7840333cab5721c8069.tar.gz
org.eclipse.papyrus-da9f527633fe6b949d12a7840333cab5721c8069.tar.xz
org.eclipse.papyrus-da9f527633fe6b949d12a7840333cab5721c8069.zip
335332: [Property View] Papyrus shall provide an extensible property view runtime
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335332 Fix the "readOnly" property for the GMF Color Picker
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets/src/org/eclipse/papyrus/infra/gmfdiag/widgets/editors/ColorPickerEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets/src/org/eclipse/papyrus/infra/gmfdiag/widgets/editors/ColorPickerEditor.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets/src/org/eclipse/papyrus/infra/gmfdiag/widgets/editors/ColorPickerEditor.java
index d209d44d2ba..548c2712d45 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets/src/org/eclipse/papyrus/infra/gmfdiag/widgets/editors/ColorPickerEditor.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets/src/org/eclipse/papyrus/infra/gmfdiag/widgets/editors/ColorPickerEditor.java
@@ -183,12 +183,12 @@ public class ColorPickerEditor extends AbstractValueEditor implements IChangeLis
@Override
public void setReadOnly(boolean readOnly) {
- colorPicker.setEnabled(false);
+ colorPicker.setEnabled(!readOnly);
}
@Override
public boolean isReadOnly() {
- return colorPicker.isEnabled();
+ return !colorPicker.isEnabled();
}
@Override

Back to the top