Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » xmi version of the workbench model, can these be used to create a workbench?
xmi version of the workbench model, can these be used to create a workbench? [message #467961] Mon, 03 August 2009 13:13 Go to next message
No real name is currently offline No real name
Messages: 113
Registered: July 2009
Senior Member
The current e4 platform has a loader for the Application.ecore model as
part of the workbench initialization. It uses standard EMF readers for
the model then attaches to the workbench as the workbench's "model".
That code is in org.eclipse.e4.workbench.ui.internal.Workbench.java here:

....
private MApplication<? extends MWindow> workbench;
....
private MApplication<? extends MWindow> loadDefaultModel(URI
defaultModelPath) {
Resource resource = new
ResourceSetImpl().getResource(defaultModelPath, true);
MApplication<MWindow> app = (MApplication<MWindow>)
resource.getContents().get(0);

final EList<MWindow> windows = app.getWindows();
for (MWindow window : windows) {
processPartContributions(resource, window);
}

return app;
}
....

So that works. However, is there a place where the Workbench model is
read in a similar way that creates the workbench? It looks like it would
need to happen in the WorkbenchApplication class but it looks like it is
all manually created.
Re: xmi version of the workbench model, can these be used to create a workbench? [message #479331 is a reply to message #467961] Mon, 10 August 2009 17:16 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You mean for the legacy workbench? No, save and restore was not fully implemented for 0.9

We try and write out the XMI of a legacy workbench (with some troubles) but we don't have the path that can correctly instantiate a Workbench/WorkbenchWindow/WorkbenchPage/Perspective out of an e4 workbench model.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=284473

PW


Re: xmi version of the workbench model, can these be used to create a workbench? [message #562117 is a reply to message #467961] Mon, 10 August 2009 17:17 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You mean for the legacy workbench? No, save and restore was not fully implemented for 0.9

We try and write out the XMI of a legacy workbench (with some troubles) but we don't have the path that can correctly instantiate a Workbench/WorkbenchWindow/WorkbenchPage/Perspective out of an e4 workbench model.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=284473

PW


Previous Topic:Using CSS styling in Eclipse 3.5 plugins
Next Topic:e4 and Eclipse 3.6
Goto Forum:
  


Current Time: Mon Sep 15 09:36:54 GMT 2014

Powered by FUDForum. Page generated in 0.02316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software