cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [6/8] cayenne git commit: CAY-2316 Datamap: Custom Superclass text should be grayed
Date Mon, 22 May 2017 14:03:37 GMT
CAY-2316 Datamap: Custom Superclass text should be grayed


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/ee6f5d96
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/ee6f5d96
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/ee6f5d96

Branch: refs/heads/master
Commit: ee6f5d9614b20d1f12ec3cffc17cdef4b5e6bb07
Parents: 09b0fdb
Author: Anton Dreka <drekoas@gmail.com>
Authored: Mon May 22 16:36:52 2017 +0300
Committer: Anton Dreka <drekoas@gmail.com>
Committed: Mon May 22 16:36:52 2017 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/cayenne/modeler/editor/DataMapView.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/ee6f5d96/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/DataMapView.java
----------------------------------------------------------------------
diff --git a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/DataMapView.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/DataMapView.java
index ba0919d..40521f7 100644
--- a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/DataMapView.java
+++ b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/DataMapView.java
@@ -83,6 +83,7 @@ public class DataMapView extends JPanel {
     protected JCheckBox clientSupport;
 
     protected JLabel defaultClientPackageLabel;
+    protected JLabel defaultClientSuperclassLabel;
     protected TextAdapter defaultClientPackage;
     protected TextAdapter defaultClientSuperclass;
     protected JButton updateDefaultClientPackage;
@@ -194,7 +195,7 @@ public class DataMapView extends JPanel {
                 "Client Java Package:",
                 defaultClientPackage.getComponent(),
                 updateDefaultClientPackage);
-        builder.append(
+        defaultClientSuperclassLabel = builder.append(
                 "Custom Superclass:",
                 defaultClientSuperclass.getComponent(),
                 updateDefaultClientSuperclass);
@@ -352,6 +353,7 @@ public class DataMapView extends JPanel {
         updateDefaultClientPackage.setEnabled(enabled);
         defaultClientPackageLabel.setEnabled(enabled);
 
+        defaultClientSuperclassLabel.setEnabled(enabled);
         defaultClientSuperclass.getComponent().setEnabled(enabled);
         updateDefaultClientSuperclass.setEnabled(enabled);
     }


Mime
View raw message