This is an automated email from the ASF dual-hosted git repository.
aadamchik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push:
new 2d692e3ac CAY-2918 Remove OGNL Binding Architecture from CayenneModeler
2d692e3ac is described below
commit 2d692e3acc55e1246cb9c35ce9fc312001d2893e
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sun Apr 12 13:59:26 2026 -0400
CAY-2918 Remove OGNL Binding Architecture from CayenneModeler
getting rid of "bindToAction"
---
.../org/apache/cayenne/swing/BindingBuilder.java | 24 ++--------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/swing/BindingBuilder.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/swing/BindingBuilder.java
index 749db32c4..187345a19 100644
---
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/swing/BindingBuilder.java
+++
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/swing/BindingBuilder.java
@@ -19,13 +19,11 @@
package org.apache.cayenne.swing;
-import java.awt.Component;
+import javax.swing.*;
+import java.awt.*;
import java.util.HashMap;
import java.util.Map;
-import javax.swing.*;
-import javax.swing.text.JTextComponent;
-
/**
* A builder for component bindings that delegates the creation of the binding
to the
* underlying factory, and itself configures a number of binding parameters.
@@ -89,14 +87,6 @@ public class BindingBuilder {
return initBinding(binding, delegate);
}
- public ObjectBinding bindToAction(
- BoundComponent component,
- String action,
- String boundProperty) {
- ObjectBinding binding = factory.bindToAction(component, action,
boundProperty);
- return initBinding(binding, delegate);
- }
-
public ObjectBinding bindToStateChange(AbstractButton button, String
property) {
ObjectBinding binding = factory.bindToStateChange(button, property);
return initBinding(binding, delegate);
@@ -110,16 +100,6 @@ public class BindingBuilder {
return initBinding(binding, getActionDelegate(action));
}
- public ObjectBinding bindToAction(AbstractButton button, String action) {
- ObjectBinding binding = factory.bindToAction(button, action);
- return initBinding(binding, delegate);
- }
-
- public ObjectBinding bindToAction(Component component, String action) {
- ObjectBinding binding = factory.bindToAction(component, action);
- return initBinding(binding, delegate);
- }
-
public ObjectBinding bindToComboSelection(JComboBox component, String
property) {
ObjectBinding binding = factory.bindToComboSelection(component,
property, null);
return initBinding(binding, delegate);