diff --git a/.github/toolchains.xml b/.github/toolchains.xml
index 7ed2bfc9d..495b00388 100644
--- a/.github/toolchains.xml
+++ b/.github/toolchains.xml
@@ -5,31 +5,21 @@
jdk
- JavaSE-17
- 17
+ JavaSE-21
+ 21
- ${env.JAVA_HOME_17_X64}
+ ${env.JAVA_HOME_21_X64}
jdk
- JavaSE-11
- 11
-
-
- ${env.JAVA_HOME_11_X64}
-
-
-
- jdk
-
- JavaSE-1.8
- 1.8
+ JavaSE-17
+ 17
- ${env.JAVA_HOME_8_X64}
+ ${env.JAVA_HOME_17_X64}
\ No newline at end of file
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 0e45b551f..74c4bffc7 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -7,7 +7,9 @@ jobs:
build:
runs-on: ubuntu-latest
- name: Java 17 compile
+ name: Java 21 compile
+ permissions:
+ contents: read
steps:
- name: Git Checkout
uses: actions/checkout@v4
@@ -15,20 +17,19 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: |
- 8
- 11
17
+ 21
distribution: 'temurin' # See 'Supported distributions' for available options
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
- maven-version: 3.9.8
+ maven-version: 3.9.14
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build NatTable with Javadoc
env:
- JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
+ JAVA_HOME: ${{ env.JAVA_HOME_21_X64 }}
run: |
cp .github/toolchains.xml ~/.m2/toolchains.xml
xvfb-run mvn clean compile javadoc:aggregate verify
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
index 43a580d2a..6ef743cbb 100644
--- a/.mvn/extensions.xml
+++ b/.mvn/extensions.xml
@@ -1,8 +1,9 @@
-
+
org.eclipse.tycho
tycho-build
- 4.0.13
+ 5.0.3
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/persistence/StylePersistorTest.java b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/persistence/StylePersistorTest.java
index 007fcd469..d1f4b1456 100644
--- a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/persistence/StylePersistorTest.java
+++ b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/persistence/StylePersistorTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -37,7 +37,6 @@
import org.eclipse.nebula.widgets.nattable.test.fixture.PropertiesFixture;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.widgets.Display;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -120,12 +119,7 @@ public void loadFontSettings() throws Exception {
Style style = StylePersistor.loadStyle(TEST_PREFIX, this.propertiesFixture);
Font font = style.getAttributeValue(CellStyleAttributes.FONT);
- // workaround on Bug 559884
- if (Display.getDefault().getDPI().x == 144) {
- assertTrue(font.getFontData()[0].toString().contains("|Tahoma|8.5|"));
- } else {
- assertTrue(font.getFontData()[0].toString().contains("|Tahoma|8.25|"));
- }
+ assertTrue(font.getFontData()[0].toString().contains("|Tahoma|8.25|"));
}
@Test
diff --git a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/resize/AutoResizeColumnsTest.java b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/resize/AutoResizeColumnsTest.java
index d157900b9..7d3751406 100644
--- a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/resize/AutoResizeColumnsTest.java
+++ b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/resize/AutoResizeColumnsTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2022 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -59,7 +59,7 @@ public void setUp() {
new DefaultNatTableStyleConfiguration()
.configureRegistry(this.configRegistry);
- this.img = new Image(Display.getDefault(), new Rectangle(0, 0, 200, 150));
+ this.img = new Image(Display.getDefault(), 200, 150);
this.gcFactory = new GCFactory(this.img);
// Use a common, foxed width font to avoid failing the test on a
diff --git a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeColumnCommandFixture.java b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeColumnCommandFixture.java
index a4b1c9c1a..a679428a2 100644
--- a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeColumnCommandFixture.java
+++ b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeColumnCommandFixture.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -20,7 +20,6 @@
import org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture;
import org.eclipse.nebula.widgets.nattable.util.GCFactory;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Display;
public class AutoResizeColumnCommandFixture extends
@@ -28,7 +27,7 @@ public class AutoResizeColumnCommandFixture extends
public AutoResizeColumnCommandFixture() {
super(new DataLayerFixture(), 2, new ConfigRegistry(), new GCFactory(
- new Image(Display.getDefault(), new Rectangle(0, 0, 100, 100))));
+ new Image(Display.getDefault(), 100, 100)));
ConfigRegistry configRegistry = (ConfigRegistry) getConfigRegistry();
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
diff --git a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeRowCommandFixture.java b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeRowCommandFixture.java
index 78d4b5675..dc15870ff 100644
--- a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeRowCommandFixture.java
+++ b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/test/fixture/command/AutoResizeRowCommandFixture.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -20,7 +20,6 @@
import org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture;
import org.eclipse.nebula.widgets.nattable.util.GCFactory;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Display;
public class AutoResizeRowCommandFixture extends
@@ -28,7 +27,7 @@ public class AutoResizeRowCommandFixture extends
public AutoResizeRowCommandFixture() {
super(new DataLayerFixture(), 2, new ConfigRegistry(), new GCFactory(
- new Image(Display.getDefault(), new Rectangle(0, 0, 100, 100))));
+ new Image(Display.getDefault(), 100, 100)));
ConfigRegistry configRegistry = (ConfigRegistry) getConfigRegistry();
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java
index 122241d71..ae067e18c 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2025 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -40,8 +40,7 @@
import org.eclipse.nebula.widgets.nattable.edit.editor.ICellEditor;
import org.eclipse.nebula.widgets.nattable.grid.command.ClientAreaResizeCommand;
import org.eclipse.nebula.widgets.nattable.grid.command.InitializeGridCommand;
-import org.eclipse.nebula.widgets.nattable.layer.DefaultHorizontalDpiConverter;
-import org.eclipse.nebula.widgets.nattable.layer.DefaultVerticalDpiConverter;
+import org.eclipse.nebula.widgets.nattable.layer.DefaultZoomDpiConverter;
import org.eclipse.nebula.widgets.nattable.layer.IDpiConverter;
import org.eclipse.nebula.widgets.nattable.layer.ILayer;
import org.eclipse.nebula.widgets.nattable.layer.ILayerListener;
@@ -90,7 +89,6 @@
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.ScrollBar;
@@ -343,8 +341,7 @@ private void internalSetLayer(ILayer layer) {
// register the DPI scaling on the layers
this.underlyingLayer.doCommand(
new ConfigureScalingCommand(
- new DefaultHorizontalDpiConverter(),
- new DefaultVerticalDpiConverter()));
+ new DefaultZoomDpiConverter(getParent())));
}
}
@@ -377,7 +374,7 @@ public IConfigRegistry getConfigRegistry() {
if (this.configRegistry == null) {
this.configRegistry = new ConfigRegistry();
this.themeManager = new ThemeManager(this.configRegistry);
- configureScaling(new DefaultHorizontalDpiConverter(), new DefaultVerticalDpiConverter());
+ configureScaling(new DefaultZoomDpiConverter(getParent()));
}
return this.configRegistry;
}
@@ -400,7 +397,20 @@ public void setConfigRegistry(IConfigRegistry configRegistry) {
this.configRegistry = configRegistry;
this.themeManager = new ThemeManager(configRegistry);
- configureScaling(new DefaultHorizontalDpiConverter(), new DefaultVerticalDpiConverter());
+ configureScaling(new DefaultZoomDpiConverter(getParent()));
+ }
+
+ /**
+ * Add the given {@link IDpiConverter} to the {@link IConfigRegistry} so it
+ * can be used by painters and set the system properties to use the
+ * configured scaling for images.
+ *
+ * @param dpiConverter
+ * The {@link IDpiConverter} for scaling.
+ * @since 2.7
+ */
+ protected void configureScaling(IDpiConverter dpiConverter) {
+ configureScaling(dpiConverter, dpiConverter);
}
/**
@@ -420,7 +430,7 @@ protected void configureScaling(IDpiConverter horizontalConverter, IDpiConverter
// match the updated view
if (!commitAndCloseActiveCellEditor()) {
// if committing didn't work out we need to perform a hard
- // close otherwise the state of the table would be unstale
+ // close otherwise the state of the table would be unstable
getActiveCellEditor().close();
}
@@ -437,11 +447,21 @@ protected void configureScaling(IDpiConverter horizontalConverter, IDpiConverter
// register the font scaling factor
float dpiFactor = GUIHelper.getDpiFactor(GUIHelper.getDpiX());
- float displayDpiFactor = GUIHelper.getDpiFactor(Display.getDefault().getDPI().x);
- float fontScalingFactor = (dpiFactor / displayDpiFactor);
+
+ String autoScaleProperty = GUIHelper.getAutoScaleProperty(getParent().getDisplay());
+ Object zoomObject = PlatformHelper.callGetter(getShell(), "getZoom"); //$NON-NLS-1$
+ int shellZoom = zoomObject != null ? (int) zoomObject : 100;
+ if ("false".equals(autoScaleProperty)) { //$NON-NLS-1$
+ dpiFactor = dpiFactor / (shellZoom / 100f);
+ } else if ("integer".equals(autoScaleProperty) //$NON-NLS-1$
+ || "half".equals(autoScaleProperty)) { //$NON-NLS-1$
+ int autoscaledZoom = GUIHelper.getAutoScaleZoom(getParent(), shellZoom);
+ dpiFactor = Float.valueOf(autoscaledZoom) / shellZoom * dpiFactor;
+ }
+
getConfigRegistry().registerConfigAttribute(
NatTableConfigAttributes.FONT_SCALING_FACTOR,
- fontScalingFactor);
+ dpiFactor);
this.themeManager.refreshCurrentTheme();
}
@@ -500,6 +520,14 @@ public void focusGained(final FocusEvent arg0) {
doCommand(new ClientAreaResizeCommand(NatTable.this));
redraw();
});
+
+ if (!PlatformHelper.isRAP() && GUIHelper.isRescalingAtRuntime(getParent().getDisplay())) {
+ addListener(SWT.ZoomChanged, e -> {
+ // if the zoom level changes we need to reconfigure the scaling
+ // converters to ensure that the DPI values are correct
+ doCommand(new ConfigureScalingCommand(new DefaultZoomDpiConverter(getParent())));
+ });
+ }
}
// Painting ///////////////////////////////////////////////////////////////
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/gui/CellEditDialog.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/gui/CellEditDialog.java
index 2fa0929d5..ec14970ac 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/gui/CellEditDialog.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/gui/CellEditDialog.java
@@ -28,6 +28,7 @@
import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell;
import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.MoveDirectionEnum;
import org.eclipse.nebula.widgets.nattable.util.GUIHelper;
+import org.eclipse.nebula.widgets.nattable.util.PlatformHelper;
import org.eclipse.nebula.widgets.nattable.widget.EditModeEnum;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyEvent;
@@ -255,7 +256,7 @@ public boolean commit(Object canonicalValue, MoveDirectionEnum direction) {
@Override
protected void createButtonsForButtonBar(Composite parent) {
if (this.editDialogSettings != null && (boolean) this.editDialogSettings.getOrDefault(DIALOG_COMMIT_EDITOR_ON_EDIT, Boolean.FALSE)) {
- createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true);
+ createButton(parent, IDialogConstants.CANCEL_ID, PlatformHelper.getIDialogConstantsLabel("CLOSE_LABEL"), true); //$NON-NLS-1$
} else {
super.createButtonsForButtonBar(parent);
}
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/fillhandle/action/FillHandleCursorAction.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/fillhandle/action/FillHandleCursorAction.java
index 6aa0c17cc..6395f2bdb 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/fillhandle/action/FillHandleCursorAction.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/fillhandle/action/FillHandleCursorAction.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2015, 2020 CEA LIST.
+ * Copyright (c) 2015, 2026 CEA LIST.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -13,14 +13,14 @@
*****************************************************************************/
package org.eclipse.nebula.widgets.nattable.fillhandle.action;
+import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.nebula.widgets.nattable.NatTable;
import org.eclipse.nebula.widgets.nattable.fillhandle.config.FillHandleConfiguration;
import org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction;
+import org.eclipse.nebula.widgets.nattable.util.GUIHelper;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.graphics.Cursor;
-import org.eclipse.swt.graphics.ImageData;
-import org.eclipse.swt.graphics.PaletteData;
-import org.eclipse.swt.graphics.RGB;
+import org.eclipse.swt.graphics.ImageDataProvider;
import org.eclipse.swt.widgets.Display;
/**
@@ -38,54 +38,11 @@ public class FillHandleCursorAction implements IMouseAction {
@Override
public void run(NatTable natTable, MouseEvent event) {
if (this.fillHandleCursor == null) {
- PaletteData paletteData = new PaletteData(new RGB[] {
- new RGB(0, 0, 0), new RGB(255, 255, 255)
- });
- ImageData sourceData = new ImageData(16, 16, 1, paletteData);
- ImageData maskData = new ImageData(16, 16, 1, paletteData);
-
- byte[] cursorSource = new byte[] {
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
- };
-
- byte[] cursorMask = new byte[] {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0,
- 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
- 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
- 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
- 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ ImageDescriptor imageDescriptor = GUIHelper.getImageDescriptor("fill_handle"); //$NON-NLS-1$
+ ImageDataProvider imageDataProvider = zoom -> {
+ return imageDescriptor.getImageData(zoom);
};
-
- sourceData.setPixels(0, 0, 256, cursorSource, 0);
- maskData.setPixels(0, 0, 256, cursorMask, 0);
-
- this.fillHandleCursor = new Cursor(Display.getDefault(), sourceData, maskData, 7, 7);
+ this.fillHandleCursor = new Cursor(Display.getDefault(), imageDataProvider, 7, 7);
natTable.addDisposeListener(e -> FillHandleCursorAction.this.fillHandleCursor.dispose());
}
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.png b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.png
new file mode 100644
index 000000000..d2655ab69
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.png differ
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.svg b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.svg
new file mode 100644
index 000000000..f10d3aed5
--- /dev/null
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images/fill_handle.svg
@@ -0,0 +1,7 @@
+
+
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultHorizontalDpiConverter.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultHorizontalDpiConverter.java
index 588952ecf..c770d1dd9 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultHorizontalDpiConverter.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultHorizontalDpiConverter.java
@@ -20,9 +20,13 @@
* {@link Display#getDPI()}.
*
* @since 2.0
+ * @deprecated As of version 2.7, use {@link DefaultZoomDpiConverter}
+ * instead.
*/
+@Deprecated(since = "2.7", forRemoval = true)
public class DefaultHorizontalDpiConverter extends AbstractDpiConverter {
+ @Deprecated
@Override
protected void readDpiFromDisplay() {
Display.getDefault().syncExec(() -> DefaultHorizontalDpiConverter.this.dpi = Display.getDefault().getDPI().x);
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultVerticalDpiConverter.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultVerticalDpiConverter.java
index 56ad02e03..8432eccb6 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultVerticalDpiConverter.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultVerticalDpiConverter.java
@@ -19,9 +19,13 @@
* dots per inch from the default display via {@link Display#getDPI()}.
*
* @since 2.0
+ * @deprecated As of version 2.7, use {@link DefaultZoomDpiConverter}
+ * instead.
*/
+@Deprecated(since = "2.7", forRemoval = true)
public class DefaultVerticalDpiConverter extends AbstractDpiConverter {
+ @Deprecated
@Override
protected void readDpiFromDisplay() {
Display.getDefault().syncExec(() -> DefaultVerticalDpiConverter.this.dpi = Display.getDefault().getDPI().y);
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultZoomDpiConverter.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultZoomDpiConverter.java
new file mode 100644
index 000000000..40e9daba4
--- /dev/null
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/layer/DefaultZoomDpiConverter.java
@@ -0,0 +1,69 @@
+/*******************************************************************************
+ * Copyright (c) 2026 Dirk Fauth.
+ *
+ * This program and the accompanying materials are made
+ * available under the terms of the Eclipse Public License 2.0
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Dirk Fauth - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.nebula.widgets.nattable.layer;
+
+import org.eclipse.nebula.widgets.nattable.util.GUIHelper;
+import org.eclipse.nebula.widgets.nattable.util.PlatformHelper;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Default implementation of an {@link IDpiConverter} that provides the DPI and
+ * scale factor based on the given zoom level and autoscale property.
+ *
+ * @since 2.7
+ */
+public class DefaultZoomDpiConverter extends AbstractDpiConverter {
+
+ private Composite parent;
+ private int zoom;
+
+ public DefaultZoomDpiConverter(Composite parent) {
+ this.parent = parent;
+ Display.getDefault().syncExec(() -> {
+ Object zoomRetrievalObject = null;
+ if (parent != null) {
+ zoomRetrievalObject = parent.getShell();
+ } else {
+ zoomRetrievalObject = Display.getDefault().getPrimaryMonitor();
+ }
+ Object zoomObject = PlatformHelper.callGetter(zoomRetrievalObject, "getZoom"); //$NON-NLS-1$
+ DefaultZoomDpiConverter.this.zoom = zoomObject != null ? (int) zoomObject : 100;
+ });
+
+ }
+
+ @Override
+ protected void readDpiFromDisplay() {
+ int autoscaledZoom = GUIHelper.getAutoScaleZoom(this.parent, this.zoom);
+ this.scaleFactor = Float.valueOf(this.zoom) / Float.valueOf(autoscaledZoom);
+ this.dpi = (int) (this.scaleFactor * 96);
+ }
+
+ @Override
+ public int getDpi() {
+ if (this.dpi < 0) {
+ readDpiFromDisplay();
+ }
+ return this.dpi;
+ }
+
+ @Override
+ public float getCurrentDpiFactor() {
+ if (this.scaleFactor < 0) {
+ readDpiFromDisplay();
+ }
+ return this.scaleFactor;
+ }
+
+}
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/print/LayerPrinter.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/print/LayerPrinter.java
index 6304823a0..554fbbc19 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/print/LayerPrinter.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/print/LayerPrinter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -309,11 +309,11 @@ private float[] getRepeatPrintTargetScaleFactor(Printer printer) {
* printer the resolution.
*/
private float[] computeScaleFactor(ILayer layer, Printer printer, boolean dpi) {
- Point screenDPI = Display.getDefault().getDPI();
+ int monitorDpi = GUIHelper.getPrimaryMonitorDpi();
Point printerDPI = printer.getDPI();
- float sfX = Float.valueOf(printerDPI.x) / Float.valueOf(screenDPI.x);
- float sfY = Float.valueOf(printerDPI.y) / Float.valueOf(screenDPI.y);
+ float sfX = Float.valueOf(printerDPI.x) / Float.valueOf(monitorDpi);
+ float sfY = Float.valueOf(printerDPI.y) / Float.valueOf(monitorDpi);
if (!dpi && (this.fittingMode != Direction.NONE)) {
Rectangle total = getTotalArea(layer);
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/ui/scaling/ResetScalingAction.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/ui/scaling/ResetScalingAction.java
index 98d570410..f8466494d 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/ui/scaling/ResetScalingAction.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/ui/scaling/ResetScalingAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2020, 2023 Dirk Fauth and others.
+ * Copyright (c) 2020, 2026 Dirk Fauth and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -16,8 +16,7 @@
import org.eclipse.nebula.widgets.nattable.NatTable;
import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
-import org.eclipse.nebula.widgets.nattable.layer.DefaultHorizontalDpiConverter;
-import org.eclipse.nebula.widgets.nattable.layer.DefaultVerticalDpiConverter;
+import org.eclipse.nebula.widgets.nattable.layer.DefaultZoomDpiConverter;
import org.eclipse.nebula.widgets.nattable.layer.command.ConfigureScalingCommand;
import org.eclipse.nebula.widgets.nattable.ui.action.IKeyAction;
import org.eclipse.swt.events.KeyEvent;
@@ -61,9 +60,9 @@ public ResetScalingAction(Consumer updater) {
@Override
public void run(NatTable natTable, KeyEvent event) {
- natTable.doCommand(new ConfigureScalingCommand(
- new DefaultHorizontalDpiConverter(),
- new DefaultVerticalDpiConverter()));
+ natTable.doCommand(
+ new ConfigureScalingCommand(
+ new DefaultZoomDpiConverter(natTable.getParent())));
if (this.updater != null) {
this.updater.accept(natTable.getConfigRegistry());
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/util/GUIHelper.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/util/GUIHelper.java
index f92642863..38181e47e 100644
--- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/util/GUIHelper.java
+++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/util/GUIHelper.java
@@ -34,8 +34,10 @@
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
+import org.eclipse.swt.graphics.ImageLoader;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
public final class GUIHelper {
@@ -143,8 +145,25 @@ public static Font getScaledFont(Font font, float fontScalingFactor) {
return font;
}
+ /**
+ * Return a scaled version of the configured font if font scaling is needed.
+ * If no font scaling is needed, the given font is returned.
+ *
+ * @param font
+ * The font to scale.
+ * @return The font with the updated height if font scaling is needed,
+ * otherwise the given font.
+ * @since 2.7
+ */
+ public static Font getScaledFont(Font font) {
+ float dpiFactor = GUIHelper.getDpiFactor(GUIHelper.getDpiX());
+ return getScaledFont(font, dpiFactor);
+ }
+
// Image
+ private static final String SVG_SUPPORT_PROPERTY = "org.eclipse.nebula.widgets.nattable.svgSupport"; //$NON-NLS-1$
+
private static final String SVG_FILE_EXTENSION = ".svg"; //$NON-NLS-1$
private static Boolean svgSupported = null;
@@ -153,6 +172,9 @@ public static Font getScaledFont(Font font, float fontScalingFactor) {
/**
* Checks if SVG image support is available in the current SWT environment.
+ * Also checks if the system property
+ * "org.eclipse.nebula.widgets.nattable.svgSupport" is set to
+ * false to allow disabling the SVG support.
*
* @return true if SVG image support is available,
* false if not.
@@ -160,6 +182,14 @@ public static Font getScaledFont(Font font, float fontScalingFactor) {
* @since 2.7
*/
public static boolean isSvgSupported() {
+
+ if (svgSupported == null) {
+ String svgSupportProperty = System.getProperty(SVG_SUPPORT_PROPERTY);
+ if (svgSupportProperty != null && !Boolean.parseBoolean(svgSupportProperty)) {
+ svgSupported = false;
+ }
+ }
+
if (svgSupported == null) {
String svg = """
@@ -167,9 +197,7 @@ public static boolean isSvgSupported() {
"""; //$NON-NLS-1$
try (InputStream is = new ByteArrayInputStream(svg.getBytes(StandardCharsets.UTF_8))) {
- ImageDescriptor.createFromImageDataProvider(zoom -> {
- return new ImageData(is);
- }).createImage();
+ new ImageLoader().load(is);
svgSupported = true;
} catch (Exception | Error e) {
// SVGs unsupported
@@ -733,7 +761,7 @@ public static int getDpiX(boolean displayDPI) {
if (!displayDPI && GUIHelper.dpi != null) {
return GUIHelper.dpi.x;
}
- return Display.getDefault().getDPI().x;
+ return getPrimaryMonitorDpi();
}
/**
@@ -756,7 +784,20 @@ public static int getDpiY(boolean displayDPI) {
if (!displayDPI && GUIHelper.dpi != null) {
return GUIHelper.dpi.y;
}
- return Display.getDefault().getDPI().y;
+ return getPrimaryMonitorDpi();
+ }
+
+ /**
+ *
+ * @return The DPI based on the given zoom level of the primary monitor.
+ *
+ * @since 2.7
+ */
+ public static int getPrimaryMonitorDpi() {
+ // https://github.com/eclipse-nattable/nattable/issues/139
+ Object zoomObject = PlatformHelper.callGetter(Display.getDefault().getPrimaryMonitor(), "getZoom"); //$NON-NLS-1$
+ int zoom = zoomObject != null ? (int) zoomObject : 100;
+ return (zoom * 96) / 100;
}
/**
@@ -998,4 +1039,102 @@ public static int convertVerticalDpiToPixel(int dpi, IConfigRegistry configRegis
return GUIHelper.convertVerticalDpiToPixel(dpi);
}
+ /**
+ * Checks if rescaling at runtime is activated. Uses the
+ * {@link PlatformHelper} to ensure compatibility with RAP which does not
+ * provide the necessary API. {@return whether rescaling of shells at
+ * runtime when the DPI scaling of a shell's monitor changes is activated
+ * for this device}
+ *
+ * @param display
+ * The {@link Display} to check for rescaling at runtime.
+ * @since 2.7
+ *
+ * @see Display#isRescalingAtRuntime()
+ */
+ public static boolean isRescalingAtRuntime(Display display) {
+ Object isRescalingAtRuntime = PlatformHelper.callGetter(display, "isRescalingAtRuntime"); //$NON-NLS-1$
+ if (isRescalingAtRuntime == null) {
+ isRescalingAtRuntime = false;
+ }
+ return (boolean) isRescalingAtRuntime;
+ }
+
+ /**
+ * Returns the value of the "swt.autoScale" property. If the property is not
+ * set, it returns "quarter" if the display is rescaling at runtime,
+ * otherwise it returns "integer".
+ *
+ * @param display
+ * The {@link Display} to check for rescaling at runtime.
+ * @return The value of the "swt.autoScale" property or the default value
+ * based on the display's rescaling behavior.
+ * @since 2.7
+ *
+ * @see org.eclipse.swt.internal.AutoScaleCalculation#getDefaultAutoScale()
+ */
+ public static String getAutoScaleProperty(Display display) {
+ String autoScaleProperty = System.getProperty("swt.autoScale"); //$NON-NLS-1$
+ if (autoScaleProperty == null) {
+ autoScaleProperty = isRescalingAtRuntime(display) ? "quarter" : "integer"; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ return autoScaleProperty;
+ }
+
+ /**
+ * Returns the zoom value of the parent shell dependent on the
+ * "swt.autoScale" property.
+ *
+ * @param parent
+ * The parent shell to get the zoom value from. If
+ * null the default {@link Display} and primary
+ * monitor are used to determine the zoom value.
+ * @param zoom
+ * The zoom value returned by the parent shell or the primary
+ * monitor.
+ * @return The zoom value of the parent shell dependent on the
+ * "swt.autoScale" property.
+ * @since 2.7
+ *
+ * @see org.eclipse.swt.internal.AutoScaleCalculation
+ */
+ public static int getAutoScaleZoom(Composite parent, int zoom) {
+ String autoScaleProperty = GUIHelper.getAutoScaleProperty(parent != null ? parent.getDisplay() : Display.getDefault());
+ switch (autoScaleProperty) {
+ case "false": //$NON-NLS-1$
+ // deviceZoom is set to 100%
+ return 100;
+ case "integer": //$NON-NLS-1$
+ // deviceZoom depends on the current display resolution,
+ // but only uses integer multiples of 100%. The detected native
+ // zoom is generally rounded down (e.g. at 150%, will use 100%),
+ // unless close to the next integer multiple (currently at 175%,
+ // will use 200%).
+ return Math.max((zoom + 25) / 100 * 100, 100);
+ case "half": //$NON-NLS-1$
+ // deviceZoom depends on the current display resolution,
+ // but only uses integer multiples of 50%. The detected native
+ // zoom is rounded to the closest permissible value, with
+ // tie-breaker towards even.
+ return (int) Math.rint(zoom / 50d) * 50;
+ case "quarter": //$NON-NLS-1$
+ // deviceZoom depends on the current display resolution,
+ // but only uses integer multiples of 25%. The detected native
+ // zoom is rounded to the closest permissible value.
+ return Math.round(zoom / 25f) * 25;
+ case "exact": //$NON-NLS-1$
+ // deviceZoom uses the native zoom (with 1% as minimal step).
+ return zoom;
+ default:
+ // value: deviceZoom uses the given integer value in percent as
+ // zoom level.
+ try {
+ return Integer.parseInt(autoScaleProperty);
+ } catch (NumberFormatException e) {
+ // If parsing fails, fallback to the default zoom
+ Object zoomObject = PlatformHelper.callGetter(Display.getDefault().getPrimaryMonitor(), "getZoom"); //$NON-NLS-1$
+ return zoomObject != null ? (int) zoomObject : 100;
+ }
+ }
+ }
}
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4.product/org.eclipse.nebula.widgets.nattable.examples.e4.product b/org.eclipse.nebula.widgets.nattable.examples.e4.product/org.eclipse.nebula.widgets.nattable.examples.e4.product
index 7f5df6ed3..9a7faf751 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4.product/org.eclipse.nebula.widgets.nattable.examples.e4.product
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4.product/org.eclipse.nebula.widgets.nattable.examples.e4.product
@@ -7,8 +7,10 @@
- -clearPersistedState
+ -clearPersistedState -console
+ -Dswt.autoScale.updateOnRuntime=true
+
-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
@@ -311,8 +313,6 @@ version(s), and exceptions or additional permissions here}."
-
-
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml b/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
index c62f83b17..14f2a6b27 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
@@ -35,6 +35,7 @@
materialize-products
+ true
org.eclipse.nebula.widgets.nattable.examples.e4.product
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4/.classpath b/org.eclipse.nebula.widgets.nattable.examples.e4/.classpath
index 3628e3368..35386b94b 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4/.classpath
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4/.classpath
@@ -1,6 +1,6 @@
-
+
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.nebula.widgets.nattable.examples.e4/.settings/org.eclipse.jdt.core.prefs
index 131e41c09..fb211c514 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4/.settings/org.eclipse.jdt.core.prefs
@@ -1,13 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
-org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
+org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=17
+org.eclipse.jdt.core.compiler.source=21
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4/META-INF/MANIFEST.MF b/org.eclipse.nebula.widgets.nattable.examples.e4/META-INF/MANIFEST.MF
index 2f41239f3..45b2c3879 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4/META-INF/MANIFEST.MF
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4/META-INF/MANIFEST.MF
@@ -25,6 +25,6 @@ Import-Package: jakarta.annotation;version="[2.1.0,3.0.0)",
org.eclipse.nebula.widgets.nattable.examples.runner,
org.osgi.service.event,
org.slf4j;version="1.7.2"
-Bundle-RequiredExecutionEnvironment: JavaSE-17
+Bundle-RequiredExecutionEnvironment: JavaSE-21
Automatic-Module-Name: org.eclipse.nebula.widgets.nattable.examples.e4
Bundle-Vendor: Eclipse Nebula NatTable
diff --git a/org.eclipse.nebula.widgets.nattable.examples/.classpath b/org.eclipse.nebula.widgets.nattable.examples/.classpath
index 1a821310b..97bf0dc63 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/.classpath
+++ b/org.eclipse.nebula.widgets.nattable.examples/.classpath
@@ -1,7 +1,7 @@
-
+
diff --git a/org.eclipse.nebula.widgets.nattable.examples/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.nebula.widgets.nattable.examples/.settings/org.eclipse.jdt.core.prefs
index b9f33e69e..4b6f42864 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.nebula.widgets.nattable.examples/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -11,7 +11,7 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=17
+org.eclipse.jdt.core.compiler.source=21
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
diff --git a/org.eclipse.nebula.widgets.nattable.examples/META-INF/MANIFEST.MF b/org.eclipse.nebula.widgets.nattable.examples/META-INF/MANIFEST.MF
index c06c26a2c..bf4fdb634 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/META-INF/MANIFEST.MF
+++ b/org.eclipse.nebula.widgets.nattable.examples/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: NatTable Examples
Bundle-SymbolicName: org.eclipse.nebula.widgets.nattable.examples
Bundle-Version: 2.7.0.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-17
+Bundle-RequiredExecutionEnvironment: JavaSE-21
Require-Bundle: ca.odell.glazedlists,
org.eclipse.swt,
org.eclipse.jface,
diff --git a/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples updateMonitorDpi.launch b/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples updateMonitorDpi.launch
new file mode 100644
index 000000000..034aabb8f
--- /dev/null
+++ b/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples updateMonitorDpi.launch
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples.launch b/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples.launch
index ef3393754..04eeb7dd5 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples.launch
+++ b/org.eclipse.nebula.widgets.nattable.examples/NatTableExamples.launch
@@ -19,12 +19,12 @@
-
+
-
+
diff --git a/org.eclipse.nebula.widgets.nattable.examples/build-examples.xml b/org.eclipse.nebula.widgets.nattable.examples/build-examples.xml
index df4ba3ef5..0363ebe5b 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/build-examples.xml
+++ b/org.eclipse.nebula.widgets.nattable.examples/build-examples.xml
@@ -25,12 +25,15 @@
+
+ src="lib/org.apache.commons.commons-codec_1.21.0.jar"/>
@@ -39,70 +42,73 @@
src="lib/org.apache.commons.commons-compress_1.28.0.jar"/>
+ src="lib/org.apache.commons.commons-io_2.21.0.jar"/>
+ src="lib/org.apache.commons.commons-logging_1.3.5.jar"/>
+ src="lib/org.apache.commons.lang3_3.20.0.jar"/>
+ src="lib/org.apache.commons.text_1.15.0.jar"/>
+ src="lib/org.apache.logging.log4j.api_2.25.3.jar"/>
+ src="lib/org.apache.logging.log4j.to.slf4j_2.25.3.jar"/>
+ src="lib/org.apache.poi_5.5.1.v20251201-1000.jar"/>
+ src="lib/org.apache.poi.ooxml_5.5.1.v20251201-1000.jar"/>
+ src="lib/org.apache.poi.ooxml.schemas_5.5.1.v20251201-1000.jar"/>
+ src="lib/org.eclipse.collections.api_13.0.0.jar"/>
+ src="lib/org.eclipse.collections.impl_13.0.0.jar"/>
+ src="lib/org.eclipse.core.commands_3.12.500.v20251103-0733.jar"/>
+ src="lib/org.eclipse.core.runtime_3.34.200.v20251220-0953.jar"/>
+ src="lib/org.eclipse.equinox.common_3.20.300.v20251111-0312.jar"/>
+ src="lib/org.eclipse.equinox.registry_3.12.600.v20250906-0651.jar"/>
+ src="lib/org.eclipse.jface_3.39.0.v20260122-1511.jar"/>
+ src="lib/org.eclipse.nebula.cwt_1.2.0.202606141240.jar"/>
+ src="lib/org.eclipse.nebula.widgets.cdatetime_1.6.0.202606141240.jar"/>
+ src="lib/org.eclipse.nebula.widgets.richtext_1.7.0.202606141240.jar"/>
+
+ src="lib/org.eclipse.swt.svg_3.132.0.v20251202-1523.jar"/>
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/com.github.weisj.jsvg_2.0.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/com.github.weisj.jsvg_2.0.0.jar
new file mode 100644
index 000000000..259e1fbf7
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/com.github.weisj.jsvg_2.0.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.19.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.19.0.jar
deleted file mode 100644
index ff6441a62..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.19.0.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.21.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.21.0.jar
new file mode 100644
index 000000000..99989eb59
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-codec_1.21.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.20.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.21.0.jar
similarity index 53%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.20.0.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.21.0.jar
index 5e06db292..7f1688194 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.20.0.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-io_2.21.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-logging_1.3.5.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-logging_1.3.5.jar
new file mode 100644
index 000000000..75d93a15c
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.commons-logging_1.3.5.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.18.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.18.0.jar
deleted file mode 100644
index 9359e524a..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.18.0.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.20.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.20.0.jar
new file mode 100644
index 000000000..8682b86d3
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.lang3_3.20.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.logging_1.2.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.logging_1.2.0.jar
deleted file mode 100644
index 93a3b9f6d..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.logging_1.2.0.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.14.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.14.0.jar
deleted file mode 100644
index 965f68160..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.14.0.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.15.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.15.0.jar
new file mode 100644
index 000000000..1ac427909
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.commons.text_1.15.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.1.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.3.jar
similarity index 77%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.1.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.3.jar
index 1ae55f164..640998bb3 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.1.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.api_2.25.3.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.1.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.3.jar
similarity index 55%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.1.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.3.jar
index 62c2896fd..1d5505aca 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.1.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.logging.log4j.to.slf4j_2.25.3.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.4.1.v20250715-1000.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.5.1.v20251201-1000.jar
similarity index 87%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.4.1.v20250715-1000.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.5.1.v20251201-1000.jar
index 20b312430..c00c64bb1 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.4.1.v20250715-1000.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml.schemas_5.5.1.v20251201-1000.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.4.1.v20250715-1000.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.5.1.v20251201-1000.jar
similarity index 71%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.4.1.v20250715-1000.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.5.1.v20251201-1000.jar
index a13cbea94..d61f45df4 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.4.1.v20250715-1000.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi.ooxml_5.5.1.v20251201-1000.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.4.1.v20250715-1000.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.5.1.v20251201-1000.jar
similarity index 83%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.4.1.v20250715-1000.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.5.1.v20251201-1000.jar
index 4af64368e..95a3c0c13 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.4.1.v20250715-1000.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.apache.poi_5.5.1.v20251201-1000.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_12.0.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_12.0.0.jar
deleted file mode 100644
index e8aa4c0e1..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_12.0.0.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_13.0.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_13.0.0.jar
new file mode 100644
index 000000000..bdd5398f1
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.api_13.0.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_12.0.0.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_13.0.0.jar
similarity index 56%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_12.0.0.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_13.0.0.jar
index 1f04076b1..69af40d9c 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_12.0.0.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.collections.impl_13.0.0.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.100.v20240424-0956.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.100.v20240424-0956.jar
deleted file mode 100644
index 5c3b01fb3..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.100.v20240424-0956.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.500.v20251103-0733.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.500.v20251103-0733.jar
new file mode 100644
index 000000000..d68801bd9
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.commands_3.12.500.v20251103-0733.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.31.100.v20240524-2010.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.31.100.v20240524-2010.jar
deleted file mode 100644
index 4b3c41a3b..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.31.100.v20240524-2010.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.34.200.v20251220-0953.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.34.200.v20251220-0953.jar
new file mode 100644
index 000000000..ea4ba212f
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.core.runtime_3.34.200.v20251220-0953.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.19.100.v20240524-2011.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.19.100.v20240524-2011.jar
deleted file mode 100644
index 334a44c17..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.19.100.v20240524-2011.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.20.300.v20251111-0312.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.20.300.v20251111-0312.jar
new file mode 100644
index 000000000..a3ce8c11d
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.common_3.20.300.v20251111-0312.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.100.v20240524-2011.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.100.v20240524-2011.jar
deleted file mode 100644
index 858bfef3f..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.100.v20240524-2011.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.600.v20250906-0651.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.600.v20250906-0651.jar
new file mode 100644
index 000000000..d1394aa83
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.equinox.registry_3.12.600.v20250906-0651.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.34.0.v20240502-1134.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.34.0.v20240502-1134.jar
deleted file mode 100644
index bdbc0a13b..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.34.0.v20240502-1134.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.39.0.v20260122-1511.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.39.0.v20260122-1511.jar
new file mode 100644
index 000000000..3a89d8411
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.jface_3.39.0.v20260122-1511.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.1.0.202509131601.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.1.0.202509131601.jar
deleted file mode 100644
index b6ed1251f..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.1.0.202509131601.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.2.0.202606141240.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.2.0.202606141240.jar
new file mode 100644
index 000000000..96dd0827b
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.cwt_1.2.0.202606141240.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.5.0.202509131601.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.5.0.202509131601.jar
deleted file mode 100644
index 74062aec0..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.5.0.202509131601.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.6.0.202606141240.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.6.0.202606141240.jar
new file mode 100644
index 000000000..b19639e6b
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.cdatetime_1.6.0.202606141240.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.6.0.202509131601.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.7.0.202606141240.jar
similarity index 87%
rename from org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.6.0.202509131601.jar
rename to org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.7.0.202606141240.jar
index a0b777644..8027a3cdf 100644
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.6.0.202509131601.jar and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.nebula.widgets.richtext_1.7.0.202606141240.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.20.0.v20240509-1421.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.20.0.v20240509-1421.jar
deleted file mode 100644
index 3494039e3..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.20.0.v20240509-1421.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.24.100.v20251215-1416.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.24.100.v20251215-1416.jar
new file mode 100644
index 000000000..da95ff4a2
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.osgi_3.24.100.v20251215-1416.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.swt.svg_3.132.0.v20251202-1523.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.swt.svg_3.132.0.v20251202-1523.jar
new file mode 100644
index 000000000..464bdec1e
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/org.eclipse.swt.svg_3.132.0.v20251202-1523.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.126.0.v20240528-0813.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.126.0.v20240528-0813.jar
deleted file mode 100644
index 3d2b28a63..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.126.0.v20240528-0813.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.133.0.v20260225-1014.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.133.0.v20260225-1014.jar
new file mode 100644
index 000000000..09ded3bee
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.cocoa.macosx.x86_64_3.133.0.v20260225-1014.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.126.0.v20240528-0813.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.126.0.v20240528-0813.jar
deleted file mode 100644
index 740bb6af6..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.126.0.v20240528-0813.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.133.0.v20260225-1014.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.133.0.v20260225-1014.jar
new file mode 100644
index 000000000..8ff42226b
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.gtk.linux.x86_64_3.133.0.v20260225-1014.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.126.0.v20240528-0813.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.126.0.v20240528-0813.jar
deleted file mode 100644
index e4d07aa8a..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.126.0.v20240528-0813.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.133.0.v20260225-1014.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.133.0.v20260225-1014.jar
new file mode 100644
index 000000000..fb0d118ef
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt.win32.win32.x86_64_3.133.0.v20260225-1014.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.126.0.v20240528-0813.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.126.0.v20240528-0813.jar
deleted file mode 100644
index 4c7447d19..000000000
Binary files a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.126.0.v20240528-0813.jar and /dev/null differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.133.0.v20260225-1014.jar b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.133.0.v20260225-1014.jar
new file mode 100644
index 000000000..4739c7150
Binary files /dev/null and b/org.eclipse.nebula.widgets.nattable.examples/lib/swt/org.eclipse.swt_3.133.0.v20260225-1014.jar differ
diff --git a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_809_GroupBySummarySummaryRowExample.java b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_809_GroupBySummarySummaryRowExample.java
index 3c790bd60..b40c4f9ca 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_809_GroupBySummarySummaryRowExample.java
+++ b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_809_GroupBySummarySummaryRowExample.java
@@ -37,8 +37,8 @@
import org.eclipse.nebula.widgets.nattable.examples.AbstractNatExample;
import org.eclipse.nebula.widgets.nattable.examples.runner.StandaloneNatExampleRunner;
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsEventLayer;
-import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsSortModel;
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsLockHelper;
+import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsSortModel;
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.DarkGroupByThemeExtension;
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.DefaultGroupByThemeExtension;
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.GroupByConfigAttributes;
@@ -86,6 +86,7 @@
import org.eclipse.nebula.widgets.nattable.style.Style;
import org.eclipse.nebula.widgets.nattable.style.theme.DarkNatTableThemeConfiguration;
import org.eclipse.nebula.widgets.nattable.style.theme.DefaultNatTableThemeConfiguration;
+import org.eclipse.nebula.widgets.nattable.style.theme.IThemeExtension;
import org.eclipse.nebula.widgets.nattable.style.theme.ModernNatTableThemeConfiguration;
import org.eclipse.nebula.widgets.nattable.style.theme.ThemeConfiguration;
import org.eclipse.nebula.widgets.nattable.summaryrow.ISummaryProvider;
@@ -276,17 +277,21 @@ public void accumulateConfigLabels(LabelStack configLabels,
natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
// add some additional styling
- natTable.addConfiguration(new AbstractRegistryConfiguration() {
+ IThemeExtension alignmentThemeExtension = new IThemeExtension() {
@Override
- public void configureRegistry(IConfigRegistry configRegistry) {
+ public void registerStyles(IConfigRegistry configRegistry) {
+ IStyle style = new Style();
+ style.setAttributeValue(
+ CellStyleAttributes.HORIZONTAL_ALIGNMENT,
+ HorizontalAlignmentEnum.CENTER);
configRegistry.registerConfigAttribute(
- CellConfigAttributes.CELL_PAINTER,
- new CheckBoxPainter(),
+ CellConfigAttributes.CELL_STYLE,
+ style,
DisplayMode.NORMAL,
ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
- IStyle style = new Style();
+ style = new Style();
style.setAttributeValue(
CellStyleAttributes.HORIZONTAL_ALIGNMENT,
HorizontalAlignmentEnum.RIGHT);
@@ -323,7 +328,76 @@ public void configureRegistry(IConfigRegistry configRegistry) {
style,
DisplayMode.SELECT, ROW_HEADER_SUMMARY_ROW);
}
- });
+
+ @Override
+ public void unregisterStyles(IConfigRegistry configRegistry) {
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_STYLE,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
+
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_STYLE,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 2);
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_STYLE,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 3);
+
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.DISPLAY_CONVERTER,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 3);
+
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_STYLE,
+ DisplayMode.NORMAL, ROW_HEADER_SUMMARY_ROW);
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_STYLE,
+ DisplayMode.SELECT, ROW_HEADER_SUMMARY_ROW);
+ }
+ };
+
+ // theme extension for the checkbox painter
+ IThemeExtension painterThemeExtension = new IThemeExtension() {
+ @Override
+ public void registerStyles(IConfigRegistry configRegistry) {
+ configRegistry.registerConfigAttribute(
+ CellConfigAttributes.CELL_PAINTER,
+ new CheckBoxPainter(),
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
+ }
+
+ @Override
+ public void unregisterStyles(IConfigRegistry configRegistry) {
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_PAINTER,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
+ }
+ };
+
+ // theme extension for the checkbox painter with inverted images
+ IThemeExtension darkPainterThemeExtension = new IThemeExtension() {
+ @Override
+ public void registerStyles(IConfigRegistry configRegistry) {
+ configRegistry.registerConfigAttribute(
+ CellConfigAttributes.CELL_PAINTER,
+ new CheckBoxPainter(true, true),
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
+ }
+
+ @Override
+ public void unregisterStyles(IConfigRegistry configRegistry) {
+ configRegistry.unregisterConfigAttribute(
+ CellConfigAttributes.CELL_PAINTER,
+ DisplayMode.NORMAL,
+ ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 4);
+ }
+ };
// add sorting configuration
natTable.addConfiguration(new SingleClickSortConfiguration());
@@ -419,12 +493,18 @@ protected PopupMenuBuilder createCornerMenu(NatTable natTable) {
// set the modern theme to visualize the summary better
final ThemeConfiguration defaultTheme = new DefaultNatTableThemeConfiguration();
defaultTheme.addThemeExtension(new DefaultGroupByThemeExtension());
+ defaultTheme.addThemeExtension(alignmentThemeExtension);
+ defaultTheme.addThemeExtension(painterThemeExtension);
final ThemeConfiguration modernTheme = new ModernNatTableThemeConfiguration();
modernTheme.addThemeExtension(new ModernGroupByThemeExtension());
+ modernTheme.addThemeExtension(alignmentThemeExtension);
+ modernTheme.addThemeExtension(painterThemeExtension);
final ThemeConfiguration darkTheme = new DarkNatTableThemeConfiguration();
darkTheme.addThemeExtension(new DarkGroupByThemeExtension());
+ darkTheme.addThemeExtension(alignmentThemeExtension);
+ darkTheme.addThemeExtension(darkPainterThemeExtension);
natTable.setTheme(modernTheme);
diff --git a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_818_SortableAllFilterPerformanceColumnGroupExample.java b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_818_SortableAllFilterPerformanceColumnGroupExample.java
index 09fd1d37b..1bc914f70 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_818_SortableAllFilterPerformanceColumnGroupExample.java
+++ b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/_800_Integration/_818_SortableAllFilterPerformanceColumnGroupExample.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023, 2024 Dirk Fauth and others.
+ * Copyright (c) 2023, 2026 Dirk Fauth and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -113,12 +113,14 @@
import org.eclipse.nebula.widgets.nattable.layer.AbstractIndexLayerTransform;
import org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform;
import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
+import org.eclipse.nebula.widgets.nattable.layer.FixedScalingDpiConverter;
import org.eclipse.nebula.widgets.nattable.layer.ILayer;
import org.eclipse.nebula.widgets.nattable.layer.ILayerListener;
import org.eclipse.nebula.widgets.nattable.layer.cell.AggregateConfigLabelAccumulator;
import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnLabelAccumulator;
import org.eclipse.nebula.widgets.nattable.layer.cell.IConfigLabelAccumulator;
import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell;
+import org.eclipse.nebula.widgets.nattable.layer.command.ConfigureScalingCommand;
import org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent;
import org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralRefreshEvent;
import org.eclipse.nebula.widgets.nattable.painter.cell.BackgroundPainter;
@@ -777,6 +779,26 @@ public void widgetSelected(SelectionEvent e) {
}
});
+ Button scaleButton = new Button(buttonPanel, SWT.PUSH);
+ scaleButton.setText("Scale 96");
+ scaleButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ natTable.doCommand(new ConfigureScalingCommand(new FixedScalingDpiConverter(96)));
+ natTable.refresh();
+ }
+ });
+
+ Button scaleButton1 = new Button(buttonPanel, SWT.PUSH);
+ scaleButton1.setText("Scale 144");
+ scaleButton1.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ natTable.doCommand(new ConfigureScalingCommand(new FixedScalingDpiConverter(144)));
+ natTable.refresh();
+ }
+ });
+
return container;
}
diff --git a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/runner/TabbedNatExampleRunner.java b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/runner/TabbedNatExampleRunner.java
index 2d1fb139a..a3a328ab8 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/runner/TabbedNatExampleRunner.java
+++ b/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/runner/TabbedNatExampleRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2024 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -32,9 +32,14 @@
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.events.MouseMoveListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -105,8 +110,13 @@ public void doubleClick(DoubleClickEvent event) {
});
+ NavTreeMouseListener navTreeMouseListener = new NavTreeMouseListener(navTreeViewer.getControl());
+ navTreeViewer.getControl().addMouseListener(navTreeMouseListener);
+ navTreeViewer.getControl().addMouseMoveListener(navTreeMouseListener);
+
tabFolder = new CTabFolder(shell, SWT.BORDER);
tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
+ tabFolder.addMouseListener(navTreeMouseListener);
shell.open();
@@ -279,4 +289,58 @@ private static void viewSource(String title, String source) {
shell.open();
}
+ static class NavTreeMouseListener implements MouseListener, MouseMoveListener {
+
+ private final Control control;
+ private Cursor rowResizeCursor = new Cursor(Display.getDefault(), SWT.CURSOR_SIZEWE);
+ private boolean cursorOnEdge = false;
+
+ private int startX = -1;
+
+ public NavTreeMouseListener(Control control) {
+ this.control = control;
+ }
+
+ @Override
+ public void mouseMove(MouseEvent e) {
+ if (e.x > (this.control.getBounds().width - 5)
+ && e.x < (this.control.getBounds().width + 5)) {
+
+ this.control.setCursor(this.rowResizeCursor);
+ this.cursorOnEdge = true;
+ } else {
+ if (this.cursorOnEdge) {
+ this.control.setCursor(null);
+ this.cursorOnEdge = false;
+ }
+ }
+ }
+
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ }
+
+ @Override
+ public void mouseDown(MouseEvent e) {
+ if (this.cursorOnEdge) {
+ Point point = this.control.toDisplay(e.x, e.y);
+ this.startX = point.x;
+ }
+ }
+
+ @Override
+ public void mouseUp(MouseEvent e) {
+ if (this.startX != -1) {
+ Point point = ((Control) e.widget).toDisplay(e.x, e.y);
+ int diff = point.x - this.startX;
+ GridData gridData = (GridData) this.control.getLayoutData();
+ gridData.widthHint = this.control.getBounds().width + diff;
+ this.control.setLayoutData(gridData);
+ this.control.getParent().layout();
+ this.startX = -1;
+ }
+ }
+
+ }
+
}
diff --git a/org.eclipse.nebula.widgets.nattable.extension.e4/.classpath b/org.eclipse.nebula.widgets.nattable.extension.e4/.classpath
index 3628e3368..35386b94b 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.e4/.classpath
+++ b/org.eclipse.nebula.widgets.nattable.extension.e4/.classpath
@@ -1,6 +1,6 @@
-
+
diff --git a/org.eclipse.nebula.widgets.nattable.extension.e4/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.nebula.widgets.nattable.extension.e4/.settings/org.eclipse.jdt.core.prefs
index 131e41c09..fb211c514 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.e4/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.nebula.widgets.nattable.extension.e4/.settings/org.eclipse.jdt.core.prefs
@@ -1,13 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
-org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
+org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=17
+org.eclipse.jdt.core.compiler.source=21
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
diff --git a/org.eclipse.nebula.widgets.nattable.extension.e4/META-INF/MANIFEST.MF b/org.eclipse.nebula.widgets.nattable.extension.e4/META-INF/MANIFEST.MF
index 214934ca4..ba43f088c 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.e4/META-INF/MANIFEST.MF
+++ b/org.eclipse.nebula.widgets.nattable.extension.e4/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: NatTable extension for Eclipse 4
Bundle-SymbolicName: org.eclipse.nebula.widgets.nattable.extension.e4;singleton:=true
Bundle-Version: 2.7.0.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-17
+Bundle-RequiredExecutionEnvironment: JavaSE-21
Require-Bundle: org.eclipse.swt;bundle-version="3.103.0",
org.eclipse.e4.ui.css.core;bundle-version="0.11.0",
org.eclipse.e4.ui.css.swt;bundle-version="0.12.0"
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/.settings/.api_filters b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/.settings/.api_filters
new file mode 100644
index 000000000..43d4fdf03
--- /dev/null
+++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/.settings/.api_filters
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/GlazedListsDataProvider.java b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/GlazedListsDataProvider.java
index 5cdb06f45..945ef0d14 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/GlazedListsDataProvider.java
+++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/GlazedListsDataProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -40,6 +40,7 @@ public class GlazedListsDataProvider extends ListDataProvider {
private int lastRowIndex = -1;
private T lastRowObject = null;
+ @Deprecated
public GlazedListsDataProvider(EventList list, IColumnAccessor columnAccessor) {
super(list, columnAccessor);
@@ -67,11 +68,13 @@ public GlazedListsDataProvider(EventList list, IColumnAccessor columnAcces
});
}
+ @Deprecated
public void inputChanged() {
this.lastRowIndex = -1;
this.lastRowObject = null;
}
+ @Deprecated
@Override
public T getRowObject(int rowIndex) {
if (rowIndex != this.lastRowIndex || this.lastRowObject == null) {
@@ -86,6 +89,7 @@ public T getRowObject(int rowIndex) {
return this.lastRowObject;
}
+ @Deprecated
@Override
public Object getDataValue(int colIndex, int rowIndex) {
// new row to cache
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByDataLayer.java b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByDataLayer.java
index d04d220df..fcef6621a 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByDataLayer.java
+++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByDataLayer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2025 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -26,8 +26,6 @@
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
-import java.util.Observable;
-import java.util.Observer;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
@@ -91,7 +89,7 @@
* @see GroupByColumnAccessor
* @see GroupByDataLayerConfiguration
*/
-public class GroupByDataLayer extends DataLayer implements Observer, GroupByModelListener {
+public class GroupByDataLayer extends DataLayer implements GroupByModelListener {
/**
* Label that indicates the shown tree item object as GroupByObject
@@ -635,12 +633,6 @@ protected void updateTree() {
});
}
- // TODO remove once Observer is removed from the class hierarchy
- @Override
- public void update(Observable o, Object arg) {
- handleGroupByModelChange(this.groupByModel);
- }
-
@Override
public void handleGroupByModelChange(GroupByModel groupByModel) {
// Perform the update showing the busy indicator, as removing and
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByModel.java b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByModel.java
index b03ae7997..0f6166d1c 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByModel.java
+++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByModel.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2024 Original authors and others.
+ * Copyright (c) 2012, 2026 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -16,7 +16,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import java.util.Observable;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.stream.Collectors;
@@ -27,7 +26,7 @@
* The model that is used to internally store the groupby state. It is used to
* define the tree structure.
*/
-public class GroupByModel extends Observable implements IPersistable {
+public class GroupByModel implements IPersistable {
public static final String PERSISTENCE_KEY_GROUP_BY_COLUMN_INDEXES = ".groupByColumnIndexes"; //$NON-NLS-1$
@@ -189,15 +188,8 @@ public void loadState(String prefix, Properties properties) {
/**
* Notifies the observers about a change.
- *
- * @see #setChanged()
- * @see #notifyObservers()
*/
public void update() {
- // TODO remove once Observable is dropped from class hierarchy
- setChanged();
- notifyObservers();
-
fireGroupByModelChange();
}
diff --git a/org.eclipse.nebula.widgets.nattable.extension.nebula/.classpath b/org.eclipse.nebula.widgets.nattable.extension.nebula/.classpath
index 3628e3368..35386b94b 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.nebula/.classpath
+++ b/org.eclipse.nebula.widgets.nattable.extension.nebula/.classpath
@@ -1,6 +1,6 @@
-
+
diff --git a/org.eclipse.nebula.widgets.nattable.extension.nebula/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.nebula.widgets.nattable.extension.nebula/.settings/org.eclipse.jdt.core.prefs
index 131e41c09..fb211c514 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.nebula/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.nebula.widgets.nattable.extension.nebula/.settings/org.eclipse.jdt.core.prefs
@@ -1,13 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
-org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
+org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=17
+org.eclipse.jdt.core.compiler.source=21
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
diff --git a/org.eclipse.nebula.widgets.nattable.extension.nebula/META-INF/MANIFEST.MF b/org.eclipse.nebula.widgets.nattable.extension.nebula/META-INF/MANIFEST.MF
index 25ace504f..146355cdd 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.nebula/META-INF/MANIFEST.MF
+++ b/org.eclipse.nebula.widgets.nattable.extension.nebula/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: NatTable extension for Nebula widgets
Bundle-SymbolicName: org.eclipse.nebula.widgets.nattable.extension.nebula
Bundle-Version: 2.7.0.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-17
+Bundle-RequiredExecutionEnvironment: JavaSE-21
Export-Package: org.eclipse.nebula.widgets.nattable.extension.nebula.cdatetime;version="2.7.0",
org.eclipse.nebula.widgets.nattable.extension.nebula.richtext;version="2.7.0"
Import-Package: org.apache.commons.lang3;version="[3.14.0,4.0.0)",
diff --git a/org.eclipse.nebula.widgets.nattable.updatesite/category.xml b/org.eclipse.nebula.widgets.nattable.updatesite/category.xml
index 3c7de52d1..ea33f7400 100644
--- a/org.eclipse.nebula.widgets.nattable.updatesite/category.xml
+++ b/org.eclipse.nebula.widgets.nattable.updatesite/category.xml
@@ -3,33 +3,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
index 1c51a16ad..1f53851e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,18 +64,18 @@
- 4.0.13
+ 5.0.3
1.5.2
${project.version}
- 17
+ 21
UTF-8
0.8.5
${project.basedir}/../org.eclipse.nebula.widgets.nattable.updatesite/target/site/jacoco-aggregate/jacoco.xml
${project.basedir}/../${project.artifactId}.test/target/surefire-reports/
- 17
+ 21
-
+
-
+
+
@@ -30,7 +30,7 @@
-
+
@@ -43,13 +43,13 @@
org.eclipse.collections
eclipse-collections-api
- 12.0.0
+ 13.0.0
jar
org.eclipse.collections
eclipse-collections
- 12.0.0
+ 13.0.0
jar