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.
Now in new watch dialog enter just do line break, not closes the window (OK) like it was before. Looks like a regression.
I can reproduce this only when there is no selected file in Editor. In that case some default text editor kit is used. As soon as I select e.g. a Java file, the Enter works correctly.
Not necessary. Steps to reproduce: - have several java files opened - in projects view select project or package (not a java file) and leave focus there - after that new watch action issued from main menu or from variables tab will have no code completion and will not close on enter And there are many more cases when getMostRecentFile will return something without EditorCookie.
Can be fixed by: KeyStroke enterKs = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0); editorPane.getInputMap().put(enterKs, "none"); I'll put this into Utilities.createScrollableLineEditor() after issue #181523 is implemented.
I've fixed it for now in changeset: 163730:607cb2fb7859, until issue #181523 is resolved. http://hg.netbeans.org/main/rev/607cb2fb7859