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 94160

Summary: Themes node does not have a "Add Theme JAR " action
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: Gregory Murphy <gjmurphy>
Status: NEW ---    
Severity: blocker CC: krystyna
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description bugbridge 2007-02-02 22:35:34 UTC
The Setting Theme UI Spec calls for an "Add Theme Jar" action and error checking on 
the Theme node, and suggested a message for a non-identifiable theme jar:

             The selected JAR file does not contain a Theme. Choose a JAR file
             that is properly  formatted and contains theme information.

Currently there is no error checking attempting to add a new libary theme jar
via Tools->AddLibrary , Library Type theme libraries (or Class libraries for
that matter..)

- allows to add a named jar but no jar attached. The "empty" theme will be
  added to the project themes node. Attempting to switch to this  
  theme via context menu "Set As Current Theme" will work so far as 
  the Information dialog sent to designer (to restart server, clean & build, etc.)
  but after OK'ing that dialog we immediately get a Red Component Error. 
  (see exception listing below).
- same happens for adding a bogus jar without any theme

If we implement the action on the project themes node we can avoid the Component 
error, and exception to the designer screen.