Bug 201361 - No check made for org.netbeans.core.windows which handles design mode
No check made for org.netbeans.core.windows which handles design mode
Product: apisupport
Classification: Unclassified
Component: Project
PC Linux
: P3 (vote)
: 7.1
Assigned To: Jaroslav Tulach
Depends on:
Blocks: 198318
  Show dependency treegraph
Reported: 2011-08-26 13:14 UTC by Jesse Glick
Modified: 2011-08-29 14:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
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
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. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo