[Libreoffice-commits] core.git: scripting/java
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Feb 24 06:59:29 UTC 2019
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit ca8eef6be3e45b934879780e847d6ef4faba857a
Author: EL-SHREIF <ahmedtota29 at gmail.com>
AuthorDate: Sun Feb 24 03:52:27 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Feb 24 07:59:08 2019 +0100
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 at collabora.co.uk>
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")) {
More information about the Libreoffice-commits
mailing list