Bug 201361

Summary: No check made for org.netbeans.core.windows which handles design mode
Product: apisupport Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED QA Contact: issues <issues.netbeans.org>
Priority: P3    
Version: 7.1   
Target Milestone: 7.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Issue Type: DEFECT Exception Report:
Bug Depends on:    
Bug Blocks: 198318    

Description Jesse Glick 2011-08-26 13:14:18 UTC
In the course of playing with bug #200748 I noticed a flaw in DesignSupport. The default NB platform version selected when you make a new Maven NBM app is RELEASE701, which will silently ignore the -Dorg.netbeans.core.WindowSystem.designMode=true property. (You can use SNAPSHOT to get a version which interprets it.)

But the same could be true of Ant-based app projects - there is no apparent attempt to verify that the target platform actually has a copy of the o.n.c.windows module that can handle design mode.

Checking the spec version could work. (NbModuleProvider.getDependencyVersion cannot currently be used for this purpose since the Maven impl will not reliably find non-API modules. If the app has been built at least once I think it will work.)

Or you could use a CLI parameter rather than a system property; if the target platform does not support it, there will be a clear error, rather than the current state where the platform starts and there is no indication something is missing.
Comment 1 Jaroslav Tulach 2011-08-27 16:44:24 UTC
ergonomics#420b5988ea3d
Comment 2 Quality Engineering 2011-08-29 14:15:00 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/420b5988ea3d
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #201361: Check for presence of org.openide.windows >= 6.45. If present the likeahood of design mode being supported in core.windows is high.
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo