Bug 349562 - Rewrite error handling code for template preferences
Summary: Rewrite error handling code for template preferences
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Xiao Bin Chen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 09:55 EDT by Alice Connors CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alice Connors CLA 2011-06-16 09:55:45 EDT
The current Template preferences code is based on RBD code.  Error handling code needs to be rewritten.  

Here is my explanation from RTC defect 59578:

It looks like Eclipse must have changed since the time this code was written.  The code
- expects a default template to always exist
- wants to issue the message above ("Would you like to continue this operation using the default template?") when there is an error in the custom template.

What is actually happening is when I delete a template (e.g. basic program) from the preferences, both the custom and default templates are deleted.  The code tries to find the default template, can't find it, and keeps looping as long as you click Yes in that message.

If you click No, it stops trying to use a template but the part is already created.  However, the new part isn't open in the editor.

When a custom template contains an error, instead of issuing the message above to see if the default template should be used, it goes ahead and uses the custom template with the error.