Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340413 - [ModelTooling] Make the live editor into a part so that it can be opened in 4.1
Summary: [ModelTooling] Make the live editor into a part so that it can be opened in 4.1
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.11 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 07:27 EDT by Remy Suen CLA
Modified: 2011-03-30 18:05 EDT (History)
1 user (show)

See Also:


Attachments

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