[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Programitically Load Perspectives
|
Mark wrote:
I think the showPerspective method needs the perspective ID. I'd like
to create the perspective from the XML string that's stored in the
preferences. Any idea how to do that?
You're going to have to do some digging. Check out
org.eclipse.ui.internal.WorkbenchPage.savePerspectiveAs(IPerspectiveDescriptor),
org.eclipse.ui.internal.Perspective.saveState(IMemento), and
org.eclipse.ui.internal.Perspective.restoreState(IMemento)
These are internal classes, so anything you do is a hack. But these
classes are responsible for creating the xml memento string that
contains view layout.
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm