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

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


The following commit(s) were added to refs/heads/delivery by this push:
     new 7b478ba8ba PHP: Fix autocomplete for exception class when adding 
exception breakpoint.
     new 5bfd1a1eee Merge pull request #6643 from 
troizet/php_fix_completion_exception_breakpoint
7b478ba8ba is described below

commit 7b478ba8ba11c57fa3aa94568dac1b71219be01b
Author: Alexey Borokhvostov <troi...@gmail.com>
AuthorDate: Tue Oct 31 20:15:01 2023 +0700

    PHP: Fix autocomplete for exception class when adding exception breakpoint.
---
 .../modules/php/dbgp/ui/completion/ExceptionCompletionItem.java  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/ui/completion/ExceptionCompletionItem.java
 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/ui/completion/ExceptionCompletionItem.java
index fb4bfa39f9..65dfc15800 100644
--- 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/ui/completion/ExceptionCompletionItem.java
+++ 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/ui/completion/ExceptionCompletionItem.java
@@ -155,7 +155,7 @@ public class ExceptionCompletionItem implements 
CompletionItem {
 
     @Override
     public CharSequence getSortText() {
-        return getName();
+        return element.getName();
     }
 
     @Override
@@ -164,7 +164,7 @@ public class ExceptionCompletionItem implements 
CompletionItem {
     }
 
     public String getName() {
-        return element.getName();
+        return element.getNamespaceName().append(element.getName()).toString();
     }
 
     public static class Builtin extends ExceptionCompletionItem {
@@ -201,6 +201,11 @@ public class ExceptionCompletionItem implements 
CompletionItem {
             return -1;
         }
 
+        @Override
+        public CharSequence getSortText() {
+            return this.element;
+        }
+
         @Override
         public CharSequence getInsertPrefix() {
             return element;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to