Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Libra » By using warproduct, Compilation errors occurred during the operation
By using warproduct, Compilation errors occurred during the operation [message #758499] Wed, 23 November 2011 13:18
ocean xue is currently offline ocean xueFriend
Messages: 107
Registered: November 2011
Senior Member
In the login dialog to add the Application class

public class Application implements IApplication {

public Object start(IApplicationContext context) throws Exception {
Display display = PlatformUI.createDisplay();
LoginDialog loginDialog = new LoginDialog(display.getActiveShell());
// 加载登录切入点
if (loginDialog.open() != Window.OK) {
return IApplication.EXIT_OK;
}
return PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
}

public void stop() {
// Do nothing
}

}

ERROR in D:\work\eoffice\src\eoffice\startup\Application.java (at line 21)
int result = loginDialog.open();
^^^^^^^^^^^
loginDialog cannot be resolved
Previous Topic:by using eclipse wtp3.3 create WAR product configuration,export war file,one error occurs
Next Topic:NPE trying to convert a JPA project into a OSGi project
Goto Forum:
  


Current Time: Sun Dec 21 00:41:31 GMT 2014

Powered by FUDForum. Page generated in 0.04070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software