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.
Summary: | Migration of Woodstock Themes - detect if custom themes used | ||
---|---|---|---|
Product: | obsolete | Reporter: | _ krystyna <krystyna> |
Component: | visualweb | Assignee: | Winston Prakash <wjprakash> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | potingwu, yousufh |
Priority: | P3 | Keywords: | RELNOTE |
Version: | 6.x | ||
Hardware: | Other | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ krystyna
2007-08-27 18:56:29 UTC
The proposed solution - Get the project version and check if it is 5.1 project - Get the theme name from project String themeName = JsfProjectUtils.getProjectProperty(project, JsfProjectConstants.PROP_CURRENT_THEME); if (!themeName.equals("theme-default"){ // Replace the theme to default theme // Display a warning message giving appropriate information } Hi Po-ting, is there a way to accomplish the steps while opening the project. Do you mean you want to do some modification after opening a visualweb project? If so, looks into: org.netbeans.modules.visualweb.project.jsf.Install.OpenProjectsListener.propertyChange(...) you can either copy the codes to your module, or insert your actions into the following loop: for (Project project : jsfProjectsSet) { ... } This should be release noted for Beta1 that users should manually switch to the default theme before migrating. As we decided during Viusalweb i-team bug status council, downngrading this bug to p2. - Release note issue, so that user can switch to default theme. - Since user may not know why "No body found" error, we should post a dialog if a legacy Java EE 5 project is opened and it has custom theme. We don't have proper support from Theme Context for this now. So marking this for future release (When did this become a P3?) If nothing can be done, Migration docs / release notes should suggest the user not attempt to resolve the missing reference of the theme library but instead should remove the reference via Project Properties. They should remove the reference from the Libraries and the Build/Packaging. They will still receive a red Source File Error because no theme will be set by default. They need to explicitly then select the project Themes node and set Web UI Default Theme. No current plan to resolve it. Moving to 'later'. |