mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
add one function and change private to public
This commit is contained in:
parent
786efa8279
commit
2f38b8743a
@ -228,6 +228,7 @@ public class DesktopEngine extends JSEngine {
|
|||||||
|
|
||||||
public Object invokeFunction(String functionName, Object... args) {
|
public Object invokeFunction(String functionName, Object... args) {
|
||||||
Invocable cal = engine;
|
Invocable cal = engine;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return cal.invokeFunction(functionName, args);
|
return cal.invokeFunction(functionName, args);
|
||||||
} catch (ScriptException e) {
|
} catch (ScriptException e) {
|
||||||
@ -235,6 +236,7 @@ public class DesktopEngine extends JSEngine {
|
|||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user