Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2013-04-23 11:15:37 +0000
committercletavernie2013-04-23 11:15:37 +0000
commit8db6778b4068826b332d22403bd993dac5491595 (patch)
treeca1d8c19f280dd95244f82a80cf7521ec52a3057 /plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model
parent68bf15098f6e3a76d1255b526746fb81318566e6 (diff)
downloadorg.eclipse.papyrus-8db6778b4068826b332d22403bd993dac5491595.tar.gz
org.eclipse.papyrus-8db6778b4068826b332d22403bd993dac5491595.tar.xz
org.eclipse.papyrus-8db6778b4068826b332d22403bd993dac5491595.zip
399869: [Widgets] Papyrus shall implement extension filters on the “import…” UI
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399869
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model')
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model/properties/ui/SingleStyleSheetReference.xwt16
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model/properties/ui/SingleStyleSheetReference.xwt b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model/properties/ui/SingleStyleSheetReference.xwt
index 27312982a98..4be65ab7b03 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model/properties/ui/SingleStyleSheetReference.xwt
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/model/properties/ui/SingleStyleSheetReference.xwt
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets"
xmlns:x="http://www.eclipse.org/xwt"
+ xmlns:j="clr-namespace:java.lang"
xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout"
xmlns="http://www.eclipse.org/xwt/presentation">
<Composite.layout>
@@ -12,6 +13,19 @@
</Composite.layout>
<ppe:StringFileSelector allowFileSystem="false"
input="{Binding}" allowWorkspace="true"
- property="modelstylesheets:StyleSheetReference:path"></ppe:StringFileSelector>
+ property="modelstylesheets:StyleSheetReference:path">
+ <ppe:StringFileSelector.filterNames>
+ <x:Array Type="j:String">
+ <j:String>CSS Stylesheets</j:String>
+ <j:String>All</j:String>
+ </x:Array>
+ </ppe:StringFileSelector.filterNames>
+ <ppe:StringFileSelector.filterExtensions>
+ <x:Array Type="j:String">
+ <j:String>*.css</j:String>
+ <j:String>*</j:String>
+ </x:Array>
+ </ppe:StringFileSelector.filterExtensions>
+ </ppe:StringFileSelector>
</Composite>
</Composite> \ No newline at end of file

Back to the top