Community
Participate
Working Groups
<response_by> martine marin at 2008.06.10.08.46.49 </response_by> OS: Linux Build: 0609 Component: WTP Testcase: 3.001180 Steps to reproduce: Right Click on JPATVT created project Select JPA Tools Click Generate DDL (the platform selected to create the project is Generic) Apostrophe missing in the error message displayed File is jpt_ui.properties Sentence is "DDL generation is not supported by the Generic Platform". Thanks, Martine <response_by> Karl Mittmann at 2008.06.11.08.30.33 </response_by> This article was reassigned from Category:''TVT/Testing,Inbox''.
Created attachment 104507 [details] 3_001180_Apostrophe_GenerateDDL.png
<cde:tctdetail> Testcase: 3.001180 Project: WSW34 Component: Xfer - Web Tools/jst.jsp Priority: 2 Subject: TVT FR - Apostrophe issue in Generate DDL Article ID: 775 Originator: mmarin@fr.ibm.com </cde:tctdetail>
[Added by CDE: Rejected by the CDE Bridge]
[Added by CDE: Updated by the CDE Bridge because the corresponding problem has moved out of the bridge domain]
<response_by> John Ryding at 2008.06.12.10.03.37 </response_by> This has been deferred. It will be considered for the 3.4.1 service pack.
<cde:tctdetail> Testcase: 3.001180 Project: Component: Xfer - Web Tools/jst.jsp Priority: 2 Subject: TVT FR - Apostrophe issue in Generate DDL Article ID: 775 Originator: mmarin@fr.ibm.com </cde:tctdetail>
This appears to be a translation issue, so guessing this should be an internal bug?
I think the problem is in org.eclipse.jpa/components/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/platform/generic/GenericPlatformUi.java protected void displayNotSupportedMessage(String title, String message) { String formattedMessage = MessageFormat.format(message, message); Shell currentShell = Display.getCurrent().getActiveShell(); MessageDialog.openInformation(currentShell, title, formattedMessage); } Normal practice is to process a string with MessageFormat ONLY IF it contains a subsitution variable like {0}. GenericPlatformUiDialog_notSupportedMessageText does not contain any subsitution variable. If the string is processed by MessageFormat, MessageFormat will remove the single quote.
Created attachment 107864 [details] proposed patch - HEAD patch removes the MessageFormat call, this method is not used anywhere else and since there are not arguments it is not necessary to use MessageFormat.
checked in to HEAD, no branch for maintenance yet