Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3cc4b81b
Kaydet (Commit)
3cc4b81b
authored
Eki 14, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java:using "this" with a static field makes no sense
Change-Id: I79a38ff2ec50d3a3687cac7ed7688bbbcaf2208c
üst
ee3ebedb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ScriptEditorForJavaScript.java
...mework/provider/javascript/ScriptEditorForJavaScript.java
+7
-7
No files found.
scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
Dosyayı görüntüle @
3cc4b81b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment