Community
Participate
Working Groups
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.