This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 4408cba99c Adjust top margin for first row in Write options tab of 
Cassandra Output (#6485)
4408cba99c is described below

commit 4408cba99cff0b087f824cf4098aaa2f0c30a54e
Author: lance <[email protected]>
AuthorDate: Mon Feb 2 20:38:58 2026 +0800

    Adjust top margin for first row in Write options tab of Cassandra Output 
(#6485)
    
    Signed-off-by: lance <[email protected]>
---
 .../transforms/cassandraoutput/CassandraOutputDialog.java  | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git 
a/plugins/tech/cassandra/src/main/java/org/apache/hop/pipeline/transforms/cassandraoutput/CassandraOutputDialog.java
 
b/plugins/tech/cassandra/src/main/java/org/apache/hop/pipeline/transforms/cassandraoutput/CassandraOutputDialog.java
index 1ab653b4a3..ee468fba42 100644
--- 
a/plugins/tech/cassandra/src/main/java/org/apache/hop/pipeline/transforms/cassandraoutput/CassandraOutputDialog.java
+++ 
b/plugins/tech/cassandra/src/main/java/org/apache/hop/pipeline/transforms/cassandraoutput/CassandraOutputDialog.java
@@ -33,6 +33,7 @@ import org.apache.hop.databases.cassandra.util.CassandraUtils;
 import org.apache.hop.i18n.BaseMessages;
 import org.apache.hop.pipeline.PipelineMeta;
 import org.apache.hop.pipeline.transform.TransformMeta;
+import org.apache.hop.ui.core.FormDataBuilder;
 import org.apache.hop.ui.core.PropsUi;
 import org.apache.hop.ui.core.dialog.BaseDialog;
 import org.apache.hop.ui.core.dialog.EnterSelectionDialog;
@@ -229,19 +230,14 @@ public class CassandraOutputDialog extends 
BaseTransformDialog {
     Label wlTable = new Label(wWriteComp, SWT.RIGHT);
     PropsUi.setLook(wlTable);
     wlTable.setText(BaseMessages.getString(PKG, 
"CassandraOutputDialog.Table.Label"));
-    FormData fdlTable = new FormData();
-    fdlTable.left = new FormAttachment(0, 0);
-    fdlTable.top = new FormAttachment(0, 0);
-    fdlTable.right = new FormAttachment(middle, -margin);
-    wlTable.setLayoutData(fdlTable);
+    wlTable.setLayoutData(
+        FormDataBuilder.builder().left().top(0, margin).right(middle, 
-margin).build());
 
     Button wbGetTables = new Button(wWriteComp, SWT.PUSH | SWT.CENTER);
     PropsUi.setLook(wbGetTables);
     wbGetTables.setText(BaseMessages.getString(PKG, 
"CassandraOutputDialog.GetTable.Button"));
-    FormData fdbTable = new FormData();
-    fdbTable.right = new FormAttachment(100, 0);
-    fdbTable.top = new FormAttachment(wlTable, 0, SWT.CENTER);
-    wbGetTables.setLayoutData(fdbTable);
+    wbGetTables.setLayoutData(
+        FormDataBuilder.builder().top(wlTable, margin, SWT.CENTER).right(100, 
0).build());
     wbGetTables.addListener(SWT.Selection, e -> setupTablesCombo());
 
     wTable = new CCombo(wWriteComp, SWT.BORDER);

Reply via email to