changeset 284:16ffa41b79df

RT-18928: TabPane testability issue. There is no way to get menu item in context menu of tab pane corresponding to Tab.
author Kinsley Wong
date Thu, 19 Jan 2012 15:23:33 -0800
parents 3492c5356f79
children c1cc0e7893d3
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java	Thu Jan 19 14:57:11 2012 -0800
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java	Thu Jan 19 15:23:33 2012 -0800
@@ -999,6 +999,7 @@
             getSkinnable().tabMinHeightProperty().addListener(controlListener);
             getSkinnable().tabMaxHeightProperty().addListener(controlListener);
             getProperties().put(Tab.class, tab);
+            getProperties().put(ContextMenu.class, tab.getContextMenu());
             
             setOnContextMenuRequested(new EventHandler<ContextMenuEvent>() {
                 @Override public void handle(ContextMenuEvent me) {