JDK-8144872 : Remove ContextMenu.impl_showRelativeToWindow API
Type:Enhancement
Component:javafx
Sub-Component:controls
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2015-12-07
Updated:2015-12-08
Resolved:2015-12-08
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
This API is only used by Control in one special case, and that can be handled through a package-private method, rather than public API. See attached patch.
Looking into this, the only place the 'hiddenProperties' set is used is in the Scene Builder MetadataIntrospector. Looking at the code it appears the algorithm introspects a bean, iterates through all of its properties, and populates a list of properties only when the propertyMetaData is null and the hiddenProperties set does not contain the property name. Therefore, it seems reasonable to update this patch and to remove the line mentioned in the comment above.
07-12-2015
SceneBuilder seems to reference this property (through reflection, I would guess) :
rt/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/metadata/Metadata.java:
hiddenProperties.add(new PropertyName("impl_showRelativeToWindow"));