Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-07-22 16:03:56 +0000
committerCamille Letavernier2014-07-22 16:03:56 +0000
commit5edaae1ba8194030a65e4661f953807bb87b9d17 (patch)
tree27a256e1bfcf65b6adc91ec2087e278d33dca5ea /plugins
parenta00d0eb456b83a7366a421982e38aa3cdb4a1a37 (diff)
downloadorg.eclipse.papyrus-5edaae1ba8194030a65e4661f953807bb87b9d17.tar.gz
org.eclipse.papyrus-5edaae1ba8194030a65e4661f953807bb87b9d17.tar.xz
org.eclipse.papyrus-5edaae1ba8194030a65e4661f953807bb87b9d17.zip
440140: [All Diagrams] Hide the name of most links in diagrams in the
default Themes https://bugs.eclipse.org/bugs/show_bug.cgi?id=440140 - Add a new UML Stylesheet (Contributed to default themes) to hide link name labels by default
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/build.properties3
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/plugin.xml15
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/uml.css13
3 files changed, 30 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/build.properties b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/build.properties
index e3693a3b66e..2f171c96e42 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/build.properties
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/build.properties
@@ -3,5 +3,6 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
about.html,\
- plugin.xml
+ plugin.xml,\
+ theme/
src.includes = about.html
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/plugin.xml
index 61d2dc7da72..00008741209 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/plugin.xml
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/plugin.xml
@@ -7,5 +7,20 @@
factory="org.eclipse.papyrus.uml.diagram.css.dom.GMFUMLElementProviderFactory"
order="50">
</factory>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.gmfdiag.css.theme">
+ <themeContribution
+ id="org.eclipse.papyrus.css.blacknwhite_theme">
+ <stylesheet
+ stylesheetPath="theme/uml.css">
+ </stylesheet>
+ </themeContribution>
+ <themeContribution
+ id="org.eclipse.papyrus.css.papyrus_theme">
+ <stylesheet
+ stylesheetPath="theme/uml.css">
+ </stylesheet>
+ </themeContribution>
</extension>
</plugin>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/uml.css b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/uml.css
new file mode 100644
index 00000000000..3ff65297c8c
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/uml.css
@@ -0,0 +1,13 @@
+/* Hide the name label for most links */
+
+Dependency > Label:name,
+Usage > Label:name,
+Realization > Label:name,
+InterfaceRealization > Label:name,
+Abstraction > Label:name,
+Substitution > Label:name,
+Connector > Label:name,
+InformationFlow > Label:name
+{
+ visible: false;
+}

Back to the top