Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Fact not displayed on empty field
Fact not displayed on empty field [message #1693599] Sun, 26 April 2015 11:00 Go to next message
Ralf S. is currently offline Ralf S.Friend
Messages: 5
Registered: April 2015
Junior Member
Hello,

I implemented a Editor for a XML-File. Elements of the XML structure have an optional attribute "name". For this attribute I added a @Fact explaining the behavior if the value is not given.

    @Label(standard = "name")
    @XmlBinding(path = "@name")
    //@Required
    @Unique(ignoreNullValues = true)
    @Service(impl = NameValidationService.class)
    @Fact(statement = "Optional name ... Default ...")
    ValueProperty PROP_NAME = new ValueProperty(TYPE, "Name");


Unfortunately the fact (and the little light bulb) is only displayed it the field is filled. It is not displayed on empty fields.

What do I have to do, so the fact is displayed for empty fields also?

Regards,

Ralf

Edit: Working with Sapphire 8.1.2


[Updated on: Sun, 26 April 2015 11:08]

Report message to a moderator

Re: Fact not displayed on empty field [message #1693696 is a reply to message #1693599] Mon, 27 April 2015 16:11 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
As you've discovered, the light bulb is only displayed when the field has a non-default value in it. This behavior is a key part of Sapphire user experience and cannot be configured.

The facts are also displayed in context-sensitive help (put focus on the field and press F1).

There is also an auxiliary text facility that will place a line of text beneath the property editor in dimmed font. This is often used for communicating text entry formats and may work for your usecase.

                            <property-editor>
                                <property>Rectangle</property>
                                <hint>
                                    <name>aux.text</name>
                                    <value>x, y, width, height</value>
                                </hint>
                            </property-editor>
Re: Fact not displayed on empty field [message #1694168 is a reply to message #1693696] Fri, 01 May 2015 11:47 Go to previous message
Ralf S. is currently offline Ralf S.Friend
Messages: 5
Registered: April 2015
Junior Member
Konstantin,

thanks for the tip. Again learned something new.

I will work with the fact annotation and F1.

The aux.text just doesn't fit with my editor. It would be only one field out of eight with a aux.text. That just looks strange.

Ralf
Previous Topic:"DateTimeBrowseActionHandler" is not a valid Java type name
Next Topic:Not enough space for icons in ubuntu.
Goto Forum:
  


Current Time: Thu Apr 25 23:43:40 GMT 2024

Powered by FUDForum. Page generated in 0.03333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top