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

sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e8762a0ba4 Display additional options prior to the standard ones.
     new 23ba7a23c50 Merge pull request #5411 from 
sdedic/lsp/dialog-additional-options
9e8762a0ba4 is described below

commit 9e8762a0ba4019f3a2c9722241b3bdf8e0e33353
Author: Svata Dedic <[email protected]>
AuthorDate: Thu Feb 2 10:08:08 2023 +0100

    Display additional options prior to the standard ones.
---
 .../modules/java/lsp/server/ui/NotifyDescriptorAdapter.java         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/NotifyDescriptorAdapter.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/NotifyDescriptorAdapter.java
index 9ac84a7ff98..57d979c0328 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/NotifyDescriptorAdapter.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/NotifyDescriptorAdapter.java
@@ -223,6 +223,12 @@ class NotifyDescriptorAdapter {
                     break;
             }
         }
+        Object[] add = descriptor.getAdditionalOptions();
+        if (add != null && add.length > 0) {
+            Object[] addOpts = Arrays.copyOf(add, add.length + options.length);
+            System.arraycopy(options, 0, addOpts, add.length, options.length);
+            options = addOpts;
+        }
         for (Object o : options) {
             String text;
             


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to