Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8093561

Undo stack not synched when using Undo/Redo keyboard shortcuts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      D&D an AnchorPane
      Hit CMD Z - the AnchorPane is removed
      Hit Shift CMD Z - bug - nothing happens (we would expect the AnchorPane should be re-inserted).
      Click the Edit menu - bug - the Redo item is greyed.
      Dimiss and click the Edit menu again - the Redo item is now available
      Hit Shift CMD Z - the AnchorPane is re-inserted.
      Hit Shift CMD Z again - bug - SB tries to perform another Redo although there should not be one available and the following exception is thrown:

      SEVERE: An exception was thrown:
      java.lang.AssertionError
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$RedoActionController.perform(MenuBarController.java:1474)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.handleOnActionMenu(MenuBarController.java:1093)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.lambda$new$17(MenuBarController.java:1087)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$$Lambda$72/1338788322.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.control.MenuItem.fire(MenuItem.java:462)
      at com.sun.javafx.scene.control.GlobalMenuAdapter.lambda$bindMenuItemProperties$16(GlobalMenuAdapter.java:153)
      at com.sun.javafx.scene.control.GlobalMenuAdapter$$Lambda$308/1815318171.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.control.MenuItem.fire(MenuItem.java:462)
      at com.sun.javafx.tk.quantum.GlassSystemMenu$1.action(GlassSystemMenu.java:218)

      May 29, 2014 7:19:34 PM com.oracle.javafx.scenebuilder.app.SceneBuilderApp$SceneBuilderUncaughtExceptionHandler uncaughtException
      SEVERE: An exception was thrown:
      java.lang.AssertionError
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$RedoActionController.perform(MenuBarController.java:1474)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.handleOnActionMenu(MenuBarController.java:1093)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.lambda$new$17(MenuBarController.java:1087)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$$Lambda$72/1338788322.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.control.MenuItem.fire(MenuItem.java:462)
      at com.sun.javafx.scene.control.GlobalMenuAdapter.lambda$bindMenuItemProperties$16(GlobalMenuAdapter.java:153)
      at com.sun.javafx.scene.control.GlobalMenuAdapter$$Lambda$308/1815318171.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.control.MenuItem.fire(MenuItem.java:462)
      at com.sun.javafx.tk.quantum.GlassSystemMenu$1.action(GlassSystemMenu.java:218)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slions Sandra Lions-piron
              Reporter:
              mchicharro Moises Chicharro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: