GP-5523: Allow tool-wide configuration of radix for displaying trace times.

This commit is contained in:
Dan 2025-04-17 18:18:53 +00:00
parent 92e2b6b5d4
commit 004712026b
38 changed files with 751 additions and 246 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.
@ -161,9 +161,9 @@ public class GTableCellRenderer extends AbstractGCellRenderer implements TableCe
boolean hasFocus = data.hasFocus();
Settings settings = data.getColumnSettings();
if (value instanceof Number) {
if (value instanceof Number n) {
setHorizontalAlignment(SwingConstants.RIGHT);
setText(formatNumber((Number) value, settings));
setText(formatNumber(n, settings));
}
else {
setText(getText(value));