Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343920

Summary: ImpliedElementProperty ignores @Label annotation and <label> within <with>
Product: z_Archived Reporter: Shenxue Zhou <shenxue.zhou>
Component: SapphireAssignee: Project Inbox <sapphire.ui-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: konstantin
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Shenxue Zhou CLA 2011-04-26 18:17:50 EDT
I have the following section in my sdef:
                        <with>
                            <path>Initializer</path>
                            <label>Initializer</label>
                            <panel>
                                <key>IMethodExpression</key>
                                <content>
                                    <property-editor>
                                        <property>Expression</property>
                                        <hint>
                                            <name>show.label</name>
                                            <value>false</value>
                                        </hint>
                                    </property-editor>
                                </content>
                            </panel>
                        </with>
Here "Initializer" property is an ImpliedElementProperty:

    // *** Initializer ***
    
    @Type( base = IMethodExpression.class )
    @Label(standard = "initializer")
    @XmlBinding( path = "initializer" )
	
    ImpliedElementProperty PROP_INITIALIZER = new ImpliedElementProperty( TYPE, "Initializer" );	
    
    IMethodExpression getInitializer();

I don't get any label for the "Initializer" property. Both the @Label annotation on the Implied element property and the <label> within the "with" directive are ignored.
Comment 1 Konstantin Komissarchik CLA 2011-04-26 18:22:32 EDT
The label property of the with directive is only used under narrow set of circumstances and never for ImpliedElementProperty.

Use other Sapphire constructs (such as label, separator, group or section) to label content.