Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317064

Summary: "E4 Application Project" example is stale
Product: [Technology] XWT Reporter: Tomasz Zarna <tomasz.zarna>
Component: CoreAssignee: Project Inbox <e4.xwt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse, yves.yang
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2010-06-16 12:01:59 EDT
e4 I20100510-1530

Steps:
1. New > Project
2. e4 > e4 Application Project, press Next
3. enter a project name, press Next
4. press Finish

=> The project created contains errors:

1. SaveHandler.java 

"The method invoke(Object, Class<? extends Annotation>, IEclipseContext, Object) in the type ContextInjectionFactory is not applicable for the arguments (Object, String, IEclipseContext, null)"

Line:

ContextInjectionFactory.invoke(clientObject, "doSave", pmContext, null);

should be replaced with:

ContextInjectionFactory.invoke(clientObject, Persist.class, pmContext, null);

2. SaveHandler.java 

org.eclipse.e4.ui.di.Persist import is missing

3. QuitHandler.java

org.eclipse.e4.workbench.ui.IWorkbench import should be replaced with org.eclipse.e4.ui.workbench.IWorkbench. "Organize import" does the job.

4. MANIFEST.MF

org.eclipse.e4.ui.di dependecy is missing. It's required in 1. and 2.

I will be happy to provide a patch if you agree this is a valid bug.
Comment 1 Yves YANG CLA 2012-04-13 19:18:36 EDT
In light of WB, VDE is not supported anymore.