summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-14 16:01:23 +0200
committerNoel Grandin <noel@peralex.com>2015-10-14 16:07:50 +0200
commit3cc4b81b76a1f6a876bd9af7b99359b21652b439 (patch)
tree5cf6e1420429133a5b7e7826cc1047e2267405e1 /scripting
parentee3ebedbae54e80dfac53ed946153a6203a5331b (diff)
java:using "this" with a static field makes no sense
Change-Id: I79a38ff2ec50d3a3687cac7ed7688bbbcaf2208c
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
index 0f83d3f70d0a..c0c69051f4f6 100644
--- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
+++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
@@ -195,7 +195,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
initUI();
Scriptable scope = getScope(context);
- this.rhinoWindow.openFile(url, scope, new closeHandler(url));
+ rhinoWindow.openFile(url, scope, new closeHandler(url));
this.scriptURL = url;
}
@@ -207,7 +207,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
public Object execute() throws Exception {
rhinoWindow.toFront();
- return this.rhinoWindow.runScriptWindow(scriptURL);
+ return rhinoWindow.runScriptWindow(scriptURL);
}
/**
@@ -215,15 +215,15 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
*
*/
public void indicateErrorLine(int lineNum) {
- this.rhinoWindow.toFront();
- this.rhinoWindow.highlighLineInScriptWindow(scriptURL, lineNum);
+ rhinoWindow.toFront();
+ rhinoWindow.highlighLineInScriptWindow(scriptURL, lineNum);
}
// This code is based on the main method of the Rhino Debugger Main class
// We pass in the XScriptContext in the global scope for script execution
private void initUI() {
try {
synchronized (ScriptEditorForJavaScript.class) {
- if (this.rhinoWindow != null) {
+ if (rhinoWindow != null) {
return;
}
@@ -250,7 +250,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
shutdown();
}
});
- this.rhinoWindow = sdb;
+ rhinoWindow = sdb;
}
} catch (Exception exc) {
LogUtils.DEBUG(LogUtils.getTrace(exc));
@@ -259,7 +259,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
private void shutdown() {
// dereference Rhino Debugger window
- this.rhinoWindow = null;
+ rhinoWindow = null;
this.scriptURL = null;
// remove all scripts from BEING_EDITED