bmaggi / library-training

:mortar_board: :books: The Library Training Material (Incoming Eclipse Papyrus Photon Year 2018-2019)
Eclipse Public License 1.0
12 stars 5 forks source link

List all preferences to customize Papyrus #8

Open bmaggi opened 7 years ago

bmaggi commented 7 years ago

List and group all preferences used in papyrus in releng/org.eclipse.papyrus.training.library.rcp/plugin_customization.ini

Comment the unused ones.

The main goal is to be able to use rcp and product as teaching material to create a custom product

bmaggi commented 7 years ago

1) Setting an embedded editor org.eclipse.papyrus.extensionpoints.editors.prefs

papyrus.directeditor.org.eclipse.uml2.uml.Property=Simple Direct Editor

2) Customize label in modelexplorer (Oxygen only)

org.eclipse.papyrus.uml.modelexplorer.prefs

CustomizedStyles=blue grey gold CustomizedTypes=stereotype metaclass label eclipse.preferences.version=1

3) Loadded facet

<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
    <section name="org.eclipse.papyrus.infra.ui.emf.customizationManager">
        <item value="false" key="platform:/plugin/org.eclipse.papyrus.infra.nattable.modelexplorer/resources/PapyrusTable.custom"/>
        <item value="true" key="platform:/plugin/org.eclipse.papyrus.views.modelexplorer/resources/ReadOnlyElement.custom"/>
        <item value="true" key="platform:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/StereotypeDisplay.custom"/>
        <item value="true" key="platform:/plugin/org.eclipse.papyrus.views.modelexplorer/resources/OpenedPage.custom"/>
        <item value="false" key="platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.modelexplorer/resources/PapyrusDiagram.custom"/>
        <item value="true" key="platform:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/SimpleUML.custom"/>
        <item value="false" key="platform:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/CustomizableUMLLabel.custom"/>
    </section>
</section>
bmaggi commented 7 years ago

To hide new Child menus or hide properties view the current trick may be found on papyrus-im : https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-informationmodeling.git/tree/plugins/org.eclipse.papyrus.information.modeling.simplifiedui/src/org/eclipse/papyrus/information/modeling/simplifiedui/internal

bmaggi commented 7 years ago

Bug 510761 [Facet] Allow preferences for default loaded facet

Example of .ini preferences

org.eclipse.papyrus.infra.ui.emf/defaultLoadedFacet=platform\:/plugin/org.eclipse.papyrus.infra.gmfdiag.modelexplorer/resources/PapyrusDiagram.custom, platform\:/plugin/org.eclipse.papyrus.views.modelexplorer/resources/ReadOnlyElement.custom,platform\:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/StereotypeDisplay.custom,platform\:/plugin/org.eclipse.papyrus.infra.nattable.modelexplorer/resources/PapyrusTable.custom,platform\:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/SimpleUML.custom