Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317064 - "E4 Application Project" example is stale
Summary: "E4 Application Project" example is stale
Status: CLOSED WONTFIX
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 12:01 EDT by Tomasz Zarna CLA
Modified: 2013-01-24 15:31 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.