Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE and Maven?
PDE and Maven? [message #601454] Thu, 10 September 2009 14:32
Eclipse UserFriend
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?
Previous Topic:Selecting Eclipse application version in launch command
Next Topic:PDE and Maven?
Goto Forum:
  


Current Time: Thu Apr 25 10:01:03 GMT 2024

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

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

Back to the top