The suggested change of adding "set SWT_GTK3=0" to "spoon.bat" file has not had the desired effect of enabling the use of native MS Windows dialogs.
However, I have found a way to enable the use of native Windows dialogs in Pentaho 9.4, at least when using the open and save buttons in the toolbar. This can help to provide a more familiar and consistent user experience for Windows users.
To do so, edit the toolbar section in spoon.xul:
<toolbar id="main-toolbar" mode="full" >
<toolbarbutton id="toolbar-file-new" image="images/new.svg" tooltiptext="${Spoon.Tooltip.NewFile}" menu="new-file-popup" />
<toolbarseparator />
<toolbarbutton id="toolbar-file-open" image="images/open.svg"
tooltiptext="${Spoon.Tooltip.OpenTranformation}" onclick="spoon.openFile()" />
<toolbarbutton id="toolbar-expore-repository" image="images/exploreRepo.svg"
tooltiptext="${Spoon.Tooltip.ExploreRepository}" onclick="spoon.exploreRepository()" />
<toolbarbutton id="toolbar-file-save" image="images/save.svg"
tooltiptext="${Spoon.Tooltip.SaveCurrentTranformation}" onclick="spoon.saveFile()" />
<toolbarbutton id="toolbar-file-save-as" image="images/saveas.svg"
tooltiptext="${Spoon.Tooltip.SaveDifferentNameTranformation}" onclick="spoon.saveFileAs()"/>
<toolbarseparator />
<toolbarspacer flex="1"/>
</toolbar>
Advantage of using the native Windows dialog:
Integration with the operating system: The native Windows open dialog is integrated with the operating system and can make use of platform-specific features, such as the shell's file browsing features.
Familiarity: The native Windows open dialog is familiar to users of the Windows operating system and provides a consistent look and feel with other file dialogs in the operating system.
The Java file dialogs lacks the following features:
- No Drag&Drop with Explorer
- Right-Click (Context menu) provides no options to open in another editor, zip etc.
- File Filter (*.* etc.)
- Open Previous Version
- Navigation Pane: No Quick Access, Favorites etc
- Keyboard Navigation (Backspace etc.)
- Contents are not refreshed in the dialog when file is added, deleted in the Windows Explorer (need to hit the refresh icon)
------------------------------
Thomas Stutz
Systems Engineer
Teleperformance AG
------------------------------
Original Message:
Sent: 03-20-2023 01:46
From: Diana Stanley
Subject: Pentaho 9.4 - how to use the native MS Windows dialogs?
To use the native MS Windows dialogs in Pentaho 9.4 Spoon instead of the default Java file dialogs, you can follow these steps:
Locate the "spoon.bat" file in the Pentaho installation directory.
Open "spoon.bat" in a text editor.
Add the following line to the beginning of the file:
set SWT_GTK3=0
Save and close the file.
Launch Spoon from the "spoon.bat" file.
This should enable the use of the native MS Windows dialogs in Pentaho 9.4 Spoon.
HEB Partner
------------------------------
Diana Stanley
Chief Financial Officer
Glicks Furniture
Original Message:
Sent: 03-13-2023 03:39
From: Thomas Stutz
Subject: Pentaho 9.4 - how to use the native MS Windows dialogs?
Pentaho 9.4 is using the Java open and save dialogs which are awful, quite awkward.
Can anyone provide guidance on how to use the window native open and save dialog in spoon instead of the default Java file dialogs?"
------------------------------
Thomas Stutz
Systems Engineer
Teleperformance AG
------------------------------