Bug 236680

Summary: TVT34:TCT775: TVT FR - Apostrophe issue in Generate DDL
Product: [WebTools] Dali JPA Tools Reporter: CDE Administration <cdeadmin>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: camle, hjzhang, karenfbutzke, kitlo, neil.hauge
Version: unspecifiedFlags: neil.hauge: review+
Target Milestone: 2.0.1   
Hardware: PC   
OS: Linux-GTK   
URL: 775
Whiteboard:
Attachments:
Description Flags
3_001180_Apostrophe_GenerateDDL.png
none
proposed patch - HEAD none

Description CDE Administration CLA 2008-06-11 12:57:22 EDT
<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''.
Comment 1 CDE Administration CLA 2008-06-11 12:57:31 EDT
Created attachment 104507 [details]
3_001180_Apostrophe_GenerateDDL.png
Comment 2 CDE Administration CLA 2008-06-11 12:57:37 EDT
<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>
Comment 3 CDE Administration CLA 2008-06-11 13:31:17 EDT
[Added by CDE: Rejected by the CDE Bridge]
Comment 4 CDE Administration CLA 2008-06-11 13:31:24 EDT
[Added by CDE: Updated by the CDE Bridge because the corresponding problem has moved out of the bridge domain]
Comment 5 CDE Administration CLA 2008-06-12 11:32:29 EDT
<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.
Comment 6 CDE Administration CLA 2008-06-12 11:32:46 EDT
<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>
Comment 7 Neil Hauge CLA 2008-07-08 09:56:53 EDT
This appears to be a translation issue, so guessing this should be an internal bug?
Comment 8 Kit Lo CLA 2008-07-12 12:53:06 EDT
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.
Comment 9 Karen Butzke CLA 2008-07-18 16:29:53 EDT
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.
Comment 10 Karen Butzke CLA 2008-07-21 15:17:32 EDT
checked in to HEAD, no branch for maintenance yet