United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6669869 Beans.isDesignTime() and other queries should be per-AppContext
JDK-6669869 : Beans.isDesignTime() and other queries should be per-AppContext

Details
Type:
Bug
Submit Date:
2008-02-29
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
generic
Sub-Component:
java.beans
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
Beans.isDesignTime() and other queries should be per-AppContext. We have run into situations in NetBeans where people want to use JOGL both in the Matisse GUI builder and as a plugin in NetBeans. In order to operate within Matisse JOGL requires that Beans.isDesignTime() returns true, but if that is set globally for the entire NetBeans application then plugins which use JOGL will never display any content, since JOGL disables its OpenGL work based on the query of this property.

This and other properties on the Beans class should be per-AppContext, if it is acceptable to add a tie between the Beans class and the sun.awt package. If not then some other way of scoping the query should be invented.
One bug report describing the problem can be seen at
http://www.netbeans.org/issues/show_bug.cgi?id=127935

                                    

Comments
EVALUATION

The static properties designTime and guiAvailable should use AppContext.
                                     
2009-01-29



Hardware and Software, Engineered to Work Together