diff options
author | EL-SHREIF <ahmedtota29@gmail.com> | 2019-02-24 03:52:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-24 07:59:08 +0100 |
commit | ca8eef6be3e45b934879780e847d6ef4faba857a (patch) | |
tree | 678e8dc88f18827a6559602457b2d8560e068916 /scripting | |
parent | 6f01b4cf308a3ffb8935d314542175dbdc6ea77e (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 4 |
1 files changed, 1 insertions, 3 deletions
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")) { |