Thanks for the reply Paul.

I would like to convert the perspective extensions at startup to model
elements. Currently we do this on request, i.e., if a users opens a
perspective the extension point information is converted to an application
model. Such a perspective is "active", i.e., the objects are created for it.

This creates the issue that we can for example not adjust the perspective
switcher in the IDE to work on the application model.

What is our suggestion to contribute a perspective to the Eclipse IDE
application model?

Best regards, Lars


2014-07-17 22:40 GMT+02:00 Paul Webster <[email protected]>:

> Hi Lars,
>
>
> On Thu, Jul 10, 2014 at 8:47 AM, Lars Vogel <[email protected]> wrote:
>
>> Hello,
>>
>> In the current runtime application model of the IDE, we create
>> perspectives based on the perspectives which were opened by the user or as
>> default perspective.
>>
>> I think the current model makes it difficult to migrate the existing
>> extension point based definition of perspectives to the application model.
>>
>> We could use model snippets (for perspectives) to model this, but I think
>> we should go for the same route as for ViewDescriptors or Toolbar and Menu
>> contributions.
>>
>
> I don't agree.  We already have an implementation that saves perspectives
> as snippets.  Why wouldn't you enhance that?
>
> The MPartDescriptors that in the model are really specializations of
> fragments because we needed very specific behaviour and didn't have the
> support for applying fragments in post-model-processing.  The toolbar and
> menu contributions are worse, we just didn't have another way to
> re-generate fragments on every "matching" creation (like adding a new
> MTrimmedWindow to the model should re-apply all relevant menu
> contributions, except we didn't have the proper fragment story and so it's
> done with hooks during rendering/post rendering).
>
> Later,
> PW
>
> --
> Paul Webster
> Hi floor.  Make me a sammich! - GIR
>
> _______________________________________________
> e4-dev mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
_______________________________________________
e4-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to