APAR status
Closed as program error.
Error description
Rational Business Developer V7.5.1.5: The Format function is done in the wrong file when the files are opened in the Search view by double clicking on any of the matches. To recreate this problem: 1. Import the 'BNB Workshop COBOL.zip' Project Interchange. 2. Select the 'BNB Workshop COBOL' project. 3. From the Search pulldown menu, select File.... 4. On the 'File Search' tab, type FUNCTION in the 'Containing text' field and click on Search. 5. In the Search view that is opened, under the 'BNB Workshop COBOL' project, expand EGL Source ? programas ? WSHOP001.egl and WSHOP002.egl. 6. Under WSHOP001.egl, double click on line '15:function main()'. The editor of WSHOP001.egl is opened. 7. Still in the Search view, under WSHOP002.egl, double click on line '15:function main()'. The editor of WSHOP002.egl is opened 'over' the editor of WSHOP001.egl. 8. In the editor for WSHOP002.egl, right click on the mouse to display the context menu and select 'Format'. 9. The editor for WSHOP001.egl is opened next to the editor for WSHOP002.egl. In other words, there is a tab for each of the files. The statements in WSHOP001.egl are formatted and the file is marked as modified while the statements in WSHOP002.egl are unformatted and the file is not marked as modified. In summary, when the Format function is selected in WSHOP002.egl, the statements in WSHOP001.egl are formatted instead of the statements in WSHOP002.egl. Note this problem also occurs when using the Show Next Match to scan through the matches to open the files.
Local fix
To workaround this problem: In step 7, instead of double-clicking on function main() in WSHOP002.egl, right click WSHOP002.egl and select Open, then double-click on function main().
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Users affected: RBD 7.5.1.x users who open ? 1 EGL file from the Search view, then click Format or Organize Imports from the EGL editor. Problem description: When you double-click on file1.egl in the Search results, by default, the file is opened with the EGL editor. If you double-click on file2.egl, Eclipse opens file2 "on top of" file1. There is only one tab - you only see file2, not file1. (The Search view belongs to Eclipse so I can't change this behavior.) However, if you click Format or Organize Imports in file2, file1 gets changed, not file2.
Problem conclusion
When the EGL editor is opened for file1, the filename is saved in a variable (fSelection) in the EGLFormattingAction class. When the editor is opened for file2, that code doesn't get invoked again so fSelection is still set to file1. When Format is clicked, the code is formats fSelection. Changed EGLFormattingAction to reset fSelection to the editor's input file name before formatting. Same applies to Organize Imports code.
Temporary fix
Comments
APAR Information
APAR number
PM20885
Reported component name
RATL BUS DEV
Reported component ID
5724S5000
Reported release
751
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-08-19
Closed date
2010-10-13
Last modified date
2010-10-13
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RATL BUS DEV
Fixed component ID
5724S5000
Applicable component levels
R751 PSN
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
13 October 2010