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 201361 - No check made for org.netbeans.core.windows which handles design mode
Summary: No check made for org.netbeans.core.windows which handles design mode
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 198318
  Show dependency tree
 
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
Exception Reporter:


Attachments

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
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.