You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2020/01/19 16:50:12 UTC
[netbeans] 01/02: NETBEANS-3686 Add spacing to the number appended
to the session name when debugging a program twice
This is an automated email from the ASF dual-hosted git repository.
lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
commit e262a114ebcdc3c63c351dd3d505810c041ca1c9
Author: Ludovic HOCHET <lh...@gmail.com>
AuthorDate: Sun Jan 12 21:37:02 2020 +0100
NETBEANS-3686 Add spacing to the number appended to the session name when debugging a program twice
Adds ' - ' between the project name and the number added when a project is debugged more than once
---
.../org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java
index 410ee88..7b89e2b 100644
--- a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java
+++ b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/LaunchingSessionProvider.java
@@ -88,7 +88,7 @@ public class LaunchingSessionProvider extends SessionProvider {
}
try {
- int t = Integer.parseInt (pn.substring (sessionName.length ()));
+ int t = Integer.parseInt (pn.substring (sessionName.length () + 3)); // 3 = " - ".length
m.add (Integer.valueOf(t));
} catch (Exception e) {
}
@@ -99,7 +99,7 @@ public class LaunchingSessionProvider extends SessionProvider {
for (i = 0; i < k; i++)
if (!m.contains (Integer.valueOf(i)))
break;
- if (i > 0) sessionName = sessionName + i;
+ if (i > 0) sessionName = sessionName + " - " + i;
return sessionName;
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists