From ca8eef6be3e45b934879780e847d6ef4faba857a Mon Sep 17 00:00:00 2001 From: EL-SHREIF Date: Sun, 24 Feb 2019 03:52:27 +0200 Subject: tdf#123589 Removing close button from toolbar in Beanshell editor The Beanshell Editor has a "Close" button in the toolbar.This button can be removed as the window already has a close button.so i remove it from ScriptEditorForBeanShell.java easly . Change-Id: Icf2e56f664df56a01a2cf1935700ebe1888a7156 Reviewed-on: https://gerrit.libreoffice.org/68273 Tested-by: Jenkins Reviewed-by: Noel Grandin --- .../script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripting') diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java index 32fa751351d0..6ddb7e5deb51 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java @@ -272,7 +272,7 @@ public class ScriptEditorForBeanShell implements ScriptEditor, ActionListener { } ); - String[] labels = {"Run", "Clear", "Save", "Close","Undo","Redo"}; + String[] labels = {"Run", "Clear", "Save","Undo","Redo"}; JToolBar toolbar = new JToolBar(); toolbar.setRollover(true); for (String label : labels) { @@ -373,8 +373,6 @@ public class ScriptEditorForBeanShell implements ScriptEditor, ActionListener { } catch (Exception invokeException) { showErrorMessage(invokeException.getMessage()); } - } else if (actionCommand.equals("Close")) { - doClose(); } else if (actionCommand.equals("Save")) { saveTextArea(); } else if (actionCommand.equals("Clear")) { -- cgit