svn commit: r15540 - trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-08-10 15:37:58-0700
New Revision: 15540

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java

Log:
Issue 5289: Check enabled status before changing

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java?view=diff&rev=15540&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java&r1=15539&r2=15540
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java	2008-08-10 15:37:58-0700
@@ -185,7 +185,8 @@
         boolean enable =
             !Model.getModelManagementHelper().isReadOnly(target);
         for (final Component component : getComponents()) {
-            if (!(component instanceof JLabel)) {
+            if (!(component instanceof JLabel)
+                    && component.isEnabled() != enable) {
                 component.setEnabled(enable);
             }
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.