cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject [50/50] cayenne-modeler git commit: Remote Change Notifications updates.
Date Thu, 05 Jan 2017 22:09:58 GMT
Remote Change Notifications updates.


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

Branch: refs/heads/master
Commit: bf789920cc296d49bc149ba2b8306f12e2c1625f
Parents: a38a62d
Author: mrg <blacknext@gmail.com>
Authored: Tue Jan 3 16:58:43 2017 -0500
Committer: mrg <blacknext@gmail.com>
Committed: Tue Jan 3 16:58:43 2017 -0500

----------------------------------------------------------------------
 .../modeler/layout/DataDomainLayout.java        | 21 +++++++-------------
 1 file changed, 7 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/bf789920/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java b/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
index 83c368b..fe87076 100644
--- a/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
+++ b/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
@@ -224,19 +224,6 @@ public class DataDomainLayout
 ////        dataDomainAdapter.unBindBidirectional("dataDomainValidatingObjects", objectValidationCheckBox.selectedProperty());
     }
 
-//    private BeanPathAdapter<CayenneProject> getDataDomainPropertyAdapterMap(final
CayenneProject cayenneProject)
-//    {
-//        BeanPathAdapter<CayenneProject> dataDomainAdapter = dataDomainPropertyAdapterMap.get(cayenneProject);
-//
-//        if (dataDomainAdapter == null)
-//        {
-//            dataDomainAdapter = new BeanPathAdapter<CayenneProject>(getMainWindow().getCayenneProject());
-//
-//            dataDomainPropertyAdapterMap.put(cayenneProject, dataDomainAdapter);
-//        }
-//
-//        return dataDomainAdapter;
-//    }
 
     @Override
     public void handleDataDomainChange(final DataDomainChangeEvent event)
@@ -258,18 +245,24 @@ public class DataDomainLayout
             }
 //            dataDomainNameTextField.setText(value);
         }
-        // TODO Auto-generated method stub
     }
 
     private void configureRemoteNotifications(final boolean enabled)
     {
         if (enabled)
         {
+            enable(remoteChangeNotificationsChoiceBox);
+            remoteChangeNotificationsChoiceBox.getSelectionModel().select(0);
+//            hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
+
 //            enable(remoteChangeNotificationsCheckBox);
 //            enable(remoteChangeConfigurationButton);
         }
         else
         {
+            disable(remoteChangeNotificationsChoiceBox);
+            remoteChangeNotificationsChoiceBox.getSelectionModel().select(0);
+//            hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
 //            disable(remoteChangeNotificationsCheckBox);
 //            disable(remoteChangeConfigurationButton);
             dataDomainAdapter.setRemoteChangeNotifications(false);


Mime
View raw message