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 - Ability to restore standard design patterns
Summary: Ability to restore standard design patterns
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
Depends on:
Reported: 2008-02-04 18:42 UTC by Craig Conover
Modified: 2008-02-04 18:44 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.