Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Not transform property label to upper case
Not transform property label to upper case [message #1067718] Wed, 10 July 2013 09:37 Go to next message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior Member
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] Thu, 11 July 2013 00:19 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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 07:42 Go to previous messageGo to next message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior Member
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 21:24 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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 12:39 Go to previous messageGo to next message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior Member
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 18:51 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
Sure. Ask away.
Re: Not transform property label to upper case [message #1072844 is a reply to message #1070329] Tue, 23 July 2013 16:23 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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 14:47 Go to previous message
kon f is currently offline kon f
Messages: 112
Registered: March 2012
Senior Member
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: Sun Sep 21 18:12:54 GMT 2014

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

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