cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject [44/50] cayenne-modeler git commit: Changed to use helper methods.
Date Thu, 05 Jan 2017 22:09:52 GMT
Changed to use helper methods.


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

Branch: refs/heads/master
Commit: aa09fc506da66390fefa381dd9d2aaa21c8aa6fc
Parents: 5d38ee6
Author: mrg <blacknext@gmail.com>
Authored: Sat Oct 15 12:39:18 2016 -0400
Committer: mrg <blacknext@gmail.com>
Committed: Sat Oct 15 12:39:18 2016 -0400

----------------------------------------------------------------------
 .../layout/DataNodePasswordEncoderTabLayout.java  | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/aa09fc50/src/main/java/org/apache/cayenne/modeler/layout/DataNodePasswordEncoderTabLayout.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/layout/DataNodePasswordEncoderTabLayout.java
b/src/main/java/org/apache/cayenne/modeler/layout/DataNodePasswordEncoderTabLayout.java
index ef7c44c..0146aaf 100644
--- a/src/main/java/org/apache/cayenne/modeler/layout/DataNodePasswordEncoderTabLayout.java
+++ b/src/main/java/org/apache/cayenne/modeler/layout/DataNodePasswordEncoderTabLayout.java
@@ -34,7 +34,6 @@ import javafx.scene.layout.GridPane;
 public class DataNodePasswordEncoderTabLayout
     extends AbstractViewLayout
     implements DetailEditorSupport<DataNodeAdapter>
-
 {
     private static final Log LOGGER = LogFactory.getLog(DataNodePasswordEncoderTabLayout.class);
 
@@ -83,24 +82,17 @@ public class DataNodePasswordEncoderTabLayout
         passwordLocationChoiceBox.getItems().add(passwordLocationExecutableSetting);
         passwordLocationChoiceBox.getItems().add(passwordLocationUrlSetting);
 
-        passwordLocationChoiceBox.valueProperty().addListener((obs, oldValue, newValue) ->
+        passwordLocationChoiceBox.valueProperty().addListener((observable, oldValue, newValue)
->
         {
             final boolean model      = newValue.equals(passwordLocationModelSetting);
             final boolean classpath  = newValue.equals(passwordLocationClasspathSetting);
             final boolean executable = newValue.equals(passwordLocationExecutableSetting);
             final boolean url        = newValue.equals(passwordLocationUrlSetting);
 
-            passwordSourceGridPane.setVisible(model);
-            passwordSourceGridPane.setManaged(model);
-
-            passwordFilenameGridPane.setVisible(classpath);
-            passwordFilenameGridPane.setManaged(classpath);
-
-            passwordExecutableGridPane.setVisible(executable);
-            passwordExecutableGridPane.setManaged(executable);
-
-            passwordUrlGridPane.setVisible(url);
-            passwordUrlGridPane.setManaged(url);
+            setVisibility(passwordSourceGridPane, model);
+            setVisibility(passwordFilenameGridPane, classpath);
+            setVisibility(passwordExecutableGridPane, executable);
+            setVisibility(passwordUrlGridPane, url);
         });
 
         passwordLocationChoiceBox.getSelectionModel().select(0);


Mime
View raw message