Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tm-dev] RE: MessageFormat in SftpService / FTPService, and other problems with your checkin

My fault, sorry.
NLS.bind() does deal with duplicated apostrophes properly -- two ' characters: ''
are properly converted into a single ' character in the output.
No worries.
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 


From: dsdp-tm-dev-bounces@xxxxxxxxxxx [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of David McKnight
Sent: Donnerstag, 21. Februar 2008 20:43
To: Oberhuber, Martin
Cc: Target Management developer discussions
Subject: [dsdp-tm-dev] RE: MessageFormat in SftpService / FTPService, and other problems with your checkin


I'm not sure what you mean by "apostrophe duplication".   For a simple test, this works fine:

format        "Compare ({0}-{1})"        

producing:

title        "Compare (bingo.txt-bingo2.txt)"        

Is there something I'm missing?

____________________________________
David McKnight    
Phone:   905-413-3902 , T/L:  969-3902
Internet: dmcknigh@xxxxxxxxxx
Mail:       D1/YFY/8200/TOR
____________________________________



"Oberhuber, Martin" <Martin.Oberhuber@xxxxxxxxxxxxx>

21/02/2008 02:12 PM

To
David McKnight/Toronto/IBM@IBMCA
cc
"Target Management developer discussions" <dsdp-tm-dev@xxxxxxxxxxx>
Subject
RE: MessageFormat in SftpService / FTPService, and other problems with your checkin





In SystemCompareInput, you also cannot use NLS.bind() because
the String uses '' apostrophe duplication. Better use
    Utilities.getFormattedString()
in this case -- or duplicate the String in your own plugin in order
to awoid Platform "internal" API access.
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm

Back to the top