我有一个使用 anorg.eclipse.swt.widget.Display
作为参数的函数。我将该项目用作另一个项目的库并调用该函数并使用相同的类,但我的 IDE(eclipse 和 ItelliJ IDEA CE)说该参数不是预期的。
那里有什么问题?
这是代码:
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
startServer(port, getSession());
} catch (RmiException e) {
e.printStackTrace();
SWTErrorDialog.show(e, "Error while attaching JavaEngineServer to rmiregistry.exe", Display.getDefault());
}
return null;
}
});