|
|
|
|
|
Re: Make Perspective from Model Fragment as pre-defined [message #1776744 is a reply to message #1776523] |
Tue, 21 November 2017 04:44 |
Eclipse User |
|
|
|
I haven't traced through the code to see exactly what the following code does:
// A custom perspective with its own name.
createDescriptor(perspective);
But realize that the E3.x Workbench's notion of a perspective is different from the E4 MPerspective: the E3.x perspective is a specification whereas the E4 MPerspective is a representation. E3.x treats a perspective like a stamp or mould: when a perspective is applied, the window page contents (the editors and views) are organized into a particular layout. After that, the perspective is basically ignored: there is no public representation of the current layout.
On the flip side, E4 doesn't have a specification of how a perspective should look. You can use an MPerspective as a snippet, and clone it or use it as an exemplar.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds