| Summary: | [ModelTooling] Make the live editor into a part so that it can be opened in 4.1 | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | tom.schindl |
| Version: | 1.0 | ||
| Target Milestone: | 0.11 M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Remy Suen
The problem i see with this is that the opening of the LiveDialog currently extends the IEclipseContext and pushes in there special values:
-----------8<-----------
final IEclipseContext childContext = application.getContext()
.createChild("EditorContext");
MemoryModelResource resource = new MemoryModelResource(application);
childContext.set(IModelResource.class, resource);
// ...
ContextInjectionFactory.make(ApplicationModelEditor.class, childContext);
-----------8<-----------
The problem is that i case of a MPart i don't control lifecycle and so can't push things into the IEclipseContext prior to creation. The only solution I see at the moment is to create a delegator class which does that and creates the real instance.
You can open the View using CTRL/CMD+3 and enter "Live Application Model" |