Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2011-05-12 09:28:38 +0000
committervlorenzo2011-05-12 09:28:38 +0000
commitea51a38db3061e9bd7e666b9c18e0b4ccf676d5e (patch)
treea284f6ad89b7d9e5c523b4381b421bfc19599af5 /incoming
parenta4c3cc980e3a5ff8be775c4bc404914ac236a67e (diff)
downloadorg.eclipse.papyrus-ea51a38db3061e9bd7e666b9c18e0b4ccf676d5e.tar.gz
org.eclipse.papyrus-ea51a38db3061e9bd7e666b9c18e0b4ccf676d5e.tar.xz
org.eclipse.papyrus-ea51a38db3061e9bd7e666b9c18e0b4ccf676d5e.zip
NEW - bug 345392: [Property Editor] The Customization Tool should allow to define a custom label for the property editors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345392 C. Letavernier Contribution
Diffstat (limited to 'incoming')
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx1
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt2
2 files changed, 2 insertions, 1 deletions
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx b/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx
index e26f8cce2ed..8b259f1d149 100644
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx
+++ b/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx
@@ -861,6 +861,7 @@
<properties name="readOnly" type="Boolean" description="Indicates if this editor should be read-only. Note that in some cases, the read only state may be applied at runtime, independently of this field's value"/>
<properties name="widgetType" type="Reference" description="The type of this widget"/>
<properties name="showLabel" type="Boolean" description="If set to false, the property editor's label won't be displayed"/>
+ <properties name="customLabel" label="Custom label" description="Defines a custom label for this editor. The custom label will replace the property's default label (Only for this property editor)"/>
</elements>
<elements name="CompositeWidget" supertypes="//@dataContexts.0/@elements.2/@elements.2">
<properties name="layout" type="Reference" description="The layout of this widget"/>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt
index c9b74cf2bb4..6d1f40c36d4 100644
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt
+++ b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:BooleanRadio input="{Binding}" property="properties:ui:PropertyEditor:readOnly"></ppe:BooleanRadio><ppe:BooleanRadio input="{Binding}" property="properties:ui:PropertyEditor:showLabel"></ppe:BooleanRadio></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:ui:PropertyEditor:property"></ppe:ReferenceDialog><ppe:ReferenceDialog input="{Binding}" property="properties:ui:PropertyEditor:widgetType"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
+<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:BooleanRadio input="{Binding}" property="properties:ui:PropertyEditor:readOnly"></ppe:BooleanRadio><ppe:BooleanRadio input="{Binding}" property="properties:ui:PropertyEditor:showLabel"></ppe:BooleanRadio></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:ui:PropertyEditor:property"></ppe:ReferenceDialog><ppe:ReferenceDialog input="{Binding}" property="properties:ui:PropertyEditor:widgetType"></ppe:ReferenceDialog><ppe:StringEditor input="{Binding}" property="properties:ui:PropertyEditor:customLabel"></ppe:StringEditor></Composite></Composite> \ No newline at end of file

Back to the top