Fix typos in code
It passed "make check" on Linux Change-Id: Id7c7ac1b88d290ed71f03fa28dec144bcd29b692 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101590 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
0d773f0b07
commit
f10a4e2010
@@ -43,7 +43,7 @@ public abstract class ScriptEditor {
|
|||||||
this.context = context;
|
this.context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isMacroExectionEnabled() {
|
public boolean isMacroExecutionEnabled() {
|
||||||
XNameAccess xNameAccess = null;
|
XNameAccess xNameAccess = null;
|
||||||
try {
|
try {
|
||||||
String sAccess = "com.sun.star.configuration.ConfigurationAccess";
|
String sAccess = "com.sun.star.configuration.ConfigurationAccess";
|
||||||
|
@@ -170,7 +170,7 @@ public class ScriptEditorForBeanShell extends ScriptEditor implements ActionList
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Object execute() throws Exception {
|
public Object execute() throws Exception {
|
||||||
if (!isMacroExectionEnabled()) {
|
if (!isMacroExecutionEnabled()) {
|
||||||
showErrorMessage("Macro Execution has been disabled.");
|
showErrorMessage("Macro Execution has been disabled.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@@ -196,7 +196,7 @@ public class ScriptEditorForJavaScript extends ScriptEditor {
|
|||||||
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
|
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
|
||||||
setContext(context);
|
setContext(context);
|
||||||
// Need to check that before showing the window. Checking in execute() has no effect.
|
// Need to check that before showing the window. Checking in execute() has no effect.
|
||||||
if (!isMacroExectionEnabled()) {
|
if (!isMacroExecutionEnabled()) {
|
||||||
showErrorMessage("Macro Execution has been disabled.");
|
showErrorMessage("Macro Execution has been disabled.");
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user