Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343920 - ImpliedElementProperty ignores @Label annotation and <label> within <with>
Summary: ImpliedElementProperty ignores @Label annotation and <label> within <with>
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 18:17 EDT by Shenxue Zhou CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.