Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus/Oxygen Work Description/NewFeature/CustomizeUMLLabelInModelExplorer"

 
Line 12: Line 12:
  
 
[[File:labelUMLCusto.png]]
 
[[File:labelUMLCusto.png]]
 +
 +
=== Customize labels from embedded preferences in your product applciation. ===
 +
 +
In your plugin_customization.ini file
 +
 +
<source lang="text">
 +
##Ensure facet is loading in the right order
 +
org.eclipse.papyrus.infra.ui.emf/defaultLoadedFacet=platform\:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/CustomizableUMLLabel.custom,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
 +
</source>
 +
<source lang="text">
 +
##Ensure we use the good type
 +
org.eclipse.papyrus.uml.modelexplorer/CustomizedTypes=label
 +
</source>
  
 
=== Related Tasks ===
 
=== Related Tasks ===
 
*[https://bugs.eclipse.org/bugs/show_bug.cgi?id=500219 Bug 500219] - [Model Explorer] Papyrus Should provide an other way to customize uml label  
 
*[https://bugs.eclipse.org/bugs/show_bug.cgi?id=500219 Bug 500219] - [Model Explorer] Papyrus Should provide an other way to customize uml label  
 
*[https://bugs.eclipse.org/bugs/show_bug.cgi?id=503039 Bug 503039] - [Model Explorer] Label Customization doesn't work for all uml Element
 
*[https://bugs.eclipse.org/bugs/show_bug.cgi?id=503039 Bug 503039] - [Model Explorer] Label Customization doesn't work for all uml Element

Latest revision as of 09:09, 16 October 2017

It's possible to directly customize labels from model explorer.

For example to have:

* Only the name
* The entire label with the stereotype, the metaclass and name
* the actual label
* the name, the stereotype in cold grey color.

By default, the customized label is not activate. To activate click at the icon "Customize Model Explorer". Add CustomizableUMLLabel to loaded customization then move it to the top of the list for the highter priority. Validate Changes. Then clic on "Customize UML Label..." to customize the label visualization:

LabelUMLCusto.png

Customize labels from embedded preferences in your product applciation.

In your plugin_customization.ini file

##Ensure facet is loading in the right order
org.eclipse.papyrus.infra.ui.emf/defaultLoadedFacet=platform\:/plugin/org.eclipse.papyrus.uml.modelexplorer/resource/CustomizableUMLLabel.custom,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
##Ensure we use the good type
org.eclipse.papyrus.uml.modelexplorer/CustomizedTypes=label

Related Tasks

  • Bug 500219 - [Model Explorer] Papyrus Should provide an other way to customize uml label
  • Bug 503039 - [Model Explorer] Label Customization doesn't work for all uml Element

Copyright © Eclipse Foundation, Inc. All Rights Reserved.