Thank Remy, I'll give it a try . 2010/3/16 Remy Chi Jian Suen <[email protected]>: > On Tue, Mar 16, 2010 at 10:01 PM, Lars Vogel <[email protected]> > wrote: >> one of the target of e4 was the flexibl re-use of component. I believe >> I once saw an example where a view was re-used in a dialog. > > It should just be a matter of creating an MWindow and then moving the > MPart over to the MWindow. You may have to force some layout calls but > that's the basic gist of it. > > So first instantiate a new MWindow via the EMF factory, then attach it > to the application (or as a child of your top-level window), this > should cause a new Shell to be instantiated, if not you can ask the > IPresentationEngine to create the window (engine.createGUI(mwindow), > mwindow.getWidget() should be non-null). Then just add the MPart as a > children to the MWindow. > > Regards, > Remy > _______________________________________________ > e4-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/e4-dev >
-- Lars http://www.vogella.de - Tutorials about Java, Eclipse and Web programming http://www.twitter.com/vogella - Lars on Twitter _______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
