[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.pde] Re: PDE and Maven?

I have tried to add this to my pom:


<build> <plugins> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <pde>true</pde> </configuration> </plugin> </plugins> </build>


But it does not help.



"klm" <ddd@xxxxxxx> wrote in message news:h8b2md$5kr$1@xxxxxxxxxxxxxxxxxxxx
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?