GP-1359 - Updated the Listing and Byte Viewer to show selection size as the user drags

This commit is contained in:
dragonmacher 2024-08-12 12:04:38 -04:00
parent 5047c00359
commit 4cda642e9c
9 changed files with 175 additions and 117 deletions

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -346,6 +346,13 @@ public class AddressSet implements AddressSetView {
buffy.append(range);
buffy.append(" ");
}
// remove the last space maintain symmetry
char lastChar = buffy.charAt(buffy.length() - 1);
if (lastChar == ' ') {
buffy.deleteCharAt(buffy.length() - 1);
}
buffy.append("]");
return buffy.toString();
}