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

Bug 340413

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: UIAssignee: 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 CLA 2011-03-18 07:27:09 EDT
Now that I can finally maximize views in 4.1, it'd be great if the live editor could be opened as a part.
Comment 1 Thomas Schindl CLA 2011-03-30 17:19:56 EDT
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.
Comment 2 Thomas Schindl CLA 2011-03-30 18:05:26 EDT
You can open the View using CTRL/CMD+3 and enter "Live Application Model"