Ah, well then, have at it! 😉 If you have any problems with the Welcome Page as you work through this, it would be good to ask questions on the Papyrus forum to expose the welcome page to a wider audience. And, although it is implemented on the same infrastructure as the Properties view, there are some limitations. For example, it has a preference page to select which contributions are shown, but it doesn’t provide the UI that would let users clone/customize/replace the stock content; that level of customization requires developing plug-ins.
Christian
On 15 June, 2016 at 08:37:07, ZEITOUN Xavier (xavier.zeitoun@xxxxxx) wrote:
Hi Christian,
Thank you for these very helpful hints.
I agree with you about the non-replication of properties view in welcome page in the general case.
I am planning to it for a customized product using papyrus that hides many elements of the editor including the Property
view and this customization shall not be committed into the main repository.
Cheers,
Xavier
The contributions to the Welcome Page are exactly as in the Properties view. Think of it as an embedded instance of the Papyrus property sheet. The difference
is that properties context models for the Welcome Page are bound to the welcome page’s preference-page instead of the property sheet’s (the content of the welcome page is user customizable as is the property sheet). See the org.eclipse.papyrus.infra.gmfdiag.welcome
plug-ins for an example.
However, I would not like to see the Welcome Page replicate what is presented already in the Properties view. What you are describing is the responsibility
of the Properties view. It would be confusing and redundant to have these properties also in the Welcome Page.
On 15 June, 2016 at 07:39:55, ZEITOUN Xavier (xavier.zeitoun@xxxxxx)
wrote:
Dear Papyrus developers,
I noticed a new interesting feature in Papyrus Neon, the Papyrus Welcome Page.
I wonder about the extension possibilities of this Welcome Page.
I would like this "extended Welcome Page" to display the properties of an UML::Element.
This UML::Element would be:
- When the opening Papyrus Editor on a model, the top UML::Model.
- When selecting an element in the model explorer, the currently selected UML::Element.
Do you think the Papyrus Welcome Page can be extended to achieve this display? If so, could you please provide a sketch of the needed steps to build such an extension?
Otherwise, would you have a sketch of the process to build a new Welcome Page from scratch?
Thanks in advance,
Best regards,
Xavier Zeitoun
xavier.zeitoun@xxxxxx
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
|