PDE and Maven? [message #601454] |
Thu, 10 September 2009 14:32 |
Eclipse User |
|
|
|
Originally posted by: ddd.asd.com
I am trying to create a Maven module containing the PDE "Hello World"
example.
/**
* the command has been executed, so extract extract the needed information
* from the application context.
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window =
HandlerUtil.getActiveWorkbenchWindowChecked(event);
MessageDialog.openInformation(window.getShell(),"Test", "Hello, Eclipse
world");
But the above call:
window.getShell()
gives the error:
The type org.eclipse.swt.widgets.Shell cannot be resolved. It is indirectly
referenced from required .class files
Even though I have made the following dependencies in my POM file:
<dependency>
<groupId>swt</groupId>
<artifactId>jface</artifactId>
<version>3.0m8</version>
</dependency>
<dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>commands</artifactId>
<version>3.3.0-I20070605-0010</version>
</dependency>
<dependency>
<groupId>org.eclipse.ui</groupId>
<artifactId>workbench</artifactId>
<version>3.3.0-I20070608-1100</version>
</dependency>
Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.03101 seconds