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 212238

Summary: Platform without FX can be select for use in FX Project Properties
Product: javafx Reporter: Stepan Zebra <stezeb>
Component: PlatformAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal CC: psomol, tzezula
Priority: P3 Keywords: API_REVIEW_FAST
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: API change + patch resolving this issue

Description Stepan Zebra 2012-05-09 13:24:48 UTC
Product Version: NetBeans IDE Dev (Build 201205070400)
Java: 1.6.0_32; Java HotSpot(TM) 64-Bit Server VM 20.7-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)

In Project Properties of an FX project, non-FX Java Platform can be selected for use. This shouldn't be possible now according to issue 202300.
Comment 1 Petr Somol 2013-04-23 14:49:22 UTC
Created attachment 133718 [details]
API change + patch resolving this issue

We face the following problem: FX project as an extension of SE Project reuses SE infrastructure including UI components; because SE infrastructure knows nothing about the restrictions put on Java Platforms in FX projects, there is currently now way of preventing the users to select unusable Java Platform in standard project dialogs.

Please evaluate the API change that introduces optional filtering of platform lists that can be realized in SE project extensions. The attachment contains API change, change in project code to resolve this issue and tests.
Comment 2 Tomas Zezula 2013-04-23 15:01:37 UTC
Seems good to me.
Comment 3 Petr Somol 2013-04-30 12:28:21 UTC
as there was no more comments I pushed the change:
http://hg.netbeans.org/jet-main/rev/22dadcf56224
Comment 4 Quality Engineering 2013-05-02 14:13:37 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/22dadcf56224
User: Petr Somol <psomol@netbeans.org>
Log: #212238 - Platform without FX can be select for use in FX Project Properties