This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new a79168b907 Add "Full Screen" option to the View menu #7133 (#7134)
a79168b907 is described below
commit a79168b9078b750db38bd1d1e64cd5cfebbb83b6
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon May 18 10:29:11 2026 +0200
Add "Full Screen" option to the View menu #7133 (#7134)
---
ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java | 14 ++++++++++++++
.../hop/ui/hopgui/messages/messages_en_US.properties | 1 +
.../hop/ui/hopgui/messages/messages_fr_FR.properties | 2 ++
3 files changed, 17 insertions(+)
diff --git a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
index 703485d69a..88e1038f2b 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGui.java
@@ -199,6 +199,7 @@ public class HopGui
public static final String ID_MAIN_MENU_EDIT_NAV_NEXT =
"20410-menu-edit-nav-next";
public static final String ID_MAIN_MENU_VIEW_PARENT_ID = "25000-menu-view";
+ public static final String ID_MAIN_MENU_VIEW_FULL_SCREEN =
"25010-menu-view-full-screen";
public static final String ID_MAIN_MENU_VIEW_TERMINAL =
"25010-menu-view-terminal";
public static final String ID_MAIN_MENU_VIEW_NEW_TERMINAL =
"25020-menu-view-new-terminal";
@@ -1504,6 +1505,19 @@ public class HopGui
// Nothing is done here.
}
+ @GuiMenuElement(
+ root = ID_MAIN_MENU,
+ id = ID_MAIN_MENU_VIEW_FULL_SCREEN,
+ label = "i18n::HopGui.Menu.View.FullScreen",
+ parentId = ID_MAIN_MENU_VIEW_PARENT_ID)
+ @GuiKeyboardShortcut(alt = true, key = SWT.F11)
+ @GuiOsxKeyboardShortcut(command = true, control = true, key = 'F')
+ public void menuViewFullScreen() {
+ if (!shell.isDisposed()) {
+ shell.setFullScreen(!shell.getFullScreen());
+ }
+ }
+
// ======================== Run Menu ========================
@GuiMenuElement(
diff --git
a/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_en_US.properties
b/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_en_US.properties
index 0101bc35cb..8931fa0124 100644
---
a/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_en_US.properties
+++
b/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_en_US.properties
@@ -104,6 +104,7 @@ HopGui.Menu.File.SaveAs=Save &as...
HopGui.Menu.Help=&Help
HopGui.Menu.Help.About=About...
HopGui.Menu.View=&View
+HopGui.Menu.View.FullScreen=Full screen
HopGui.Menu.View.Terminal=&Terminal
HopGui.Menu.View.NewTerminal=&New Terminal
HopGui.Menu.Redo.Available=Redo \: {0}
diff --git
a/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_fr_FR.properties
b/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_fr_FR.properties
index 98e8080221..589f3ede27 100644
---
a/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_fr_FR.properties
+++
b/ui/src/main/resources/org/apache/hop/ui/hopgui/messages/messages_fr_FR.properties
@@ -115,6 +115,8 @@ HopGui.Menu.Tools.DatabaseClearCache=Vider le cache de
bases de donn\u00E9es
HopGui.Menu.Tools.EditConfigVariables=\u00C9diter les variables
HopGui.Menu.Undo.Available=Annuler \: {0}
HopGui.Menu.Undo.NotAvailable=Annuler \: indisponible
+HopGui.Menu.View=&Vue
+HopGui.Menu.View.FullScreen=Plein \u00E9cran
HopGui.Message.Warning.NotShowWarning=Ne plus afficher cet avertissement.
HopGui.PipelineGraph.GridTab.Name=M\u00E9triques
HopGui.PipelineGraph.LogTab.Name=Trace