This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 126641

Summary: Ability to restore standard design patterns
Product: uml Reporter: Craig Conover <conover>
Component: Design CenterAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Craig Conover 2008-02-04 18:42:14 UTC
If any of the design patterns that are shipped with UML tools are deleted or modified, there should be a menu action to
restore them.

Current workaround is to delete the userdir and restart the NetBeans IDE.
Another workaround is:
- in your OS filesystem, go to the NetBeans install folder, then navigate to folder uml4\modules
- find the org-netbeans-modules-uml.jar file and open it
- find the file, and open it
- extract all files under the .uml/config/DesignCenter/DesignPatterns to your userdir folder. 
- to just restore certain design patterns, filter your extraction of the design patter files as needed.
Comment 1 Craig Conover 2008-02-04 18:44:16 UTC
A better workaround:
add below section to DesignPatternCatalog.etw file in user-dir/.uml/config/DesignCenter/DesignPatterns

<EMBT:WSProject baseDirectory=".\GoF" name="GoF">
   <EMBT:WSElement href="./GoF/GoF.etpat" name="_MetaData__" data="DCE.D5981FAA-AD6A-4E6F-AE5B-0E11E391B26D"/>

and restart the IDE.

Similar for other design patterns other than GOF.