Skip to main content



      Home
Home » Archived » Sapphire » Not transform property label to upper case
Not transform property label to upper case [message #1067718] Wed, 10 July 2013 05:37 Go to next message
Eclipse UserFriend
Hey,

I'm showing a id that should remain exactly how it is (no transformation of the first character to upper case). My sdef file contains following line:

<label>${Id}</label>


I just found a way to define this programmatically.

final String label = property.getLabel( true, CapitalizationType.NO_CAPS, false );

Is there a way to define this directly in the sdef file?

Thank you.

Kon
Re: Not transform property label to upper case [message #1067865 is a reply to message #1067718] Wed, 10 July 2013 20:19 Go to previous messageGo to next message
Eclipse UserFriend
What sdef part are you referring to with the label element?
Re: Not transform property label to upper case [message #1069119 is a reply to message #1067865] Mon, 15 July 2013 03:42 Go to previous messageGo to next message
Eclipse UserFriend
Hey Konstantin,

I'm not sure if I got this right. Here the overall overview:

<editor-page>
  <root-node>
    <node>
      <label>${Id}</label>
      <section>
        ..
      </section>
    </node>
  </root-node>
</editor-page>


Is there any way to keep to actual case?

Thank you.

Kon
Re: Not transform property label to upper case [message #1069906 is a reply to message #1069119] Tue, 16 July 2013 17:24 Go to previous messageGo to next message
Eclipse UserFriend
I am afraid that there is no facility to configure this behavior.
Re: Not transform property label to upper case [message #1070198 is a reply to message #1067718] Wed, 17 July 2013 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Hey Konstantin,

I've been playing around and the only possibility I found needs to place some prefix in front of the Id. And I also need to make sure that there no whitespace between the prefix and the Id.

<label>[Prefix]${Id}</label>


I think it might be useful to preserve the case for certain fields. One good example is an unique id that might lead to some confusion if the first character is printed in upper case. Can I ask for a feature request Smile ?

Thank you for the great job!

Kon
Re: Not transform property label to upper case [message #1070329 is a reply to message #1070198] Wed, 17 July 2013 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Sure. Ask away.
Re: Not transform property label to upper case [message #1072844 is a reply to message #1070329] Tue, 23 July 2013 12:23 Go to previous messageGo to next message
Eclipse UserFriend
To clarify... In order to ask for a feature, you should file an enhancement request in Bugzilla.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sapphire
Re: Not transform property label to upper case [message #1073821 is a reply to message #1067718] Thu, 25 July 2013 10:47 Go to previous message
Eclipse UserFriend
Hey Konstantin,

I somehow forgot to fill the request. So, here the link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=413738

Thank you Smile

Kon
Previous Topic:New build server for Sapphire
Next Topic:XML schema data types like xs:Name
Goto Forum:
  


Current Time: Thu Apr 24 08:59:15 EDT 2025

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

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

Back to the top