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.
Summary: | Suggestions view does not work after IDE restart | ||
---|---|---|---|
Product: | editor | Reporter: | Jesse Glick <jglick> |
Component: | Hints & Annotations | Assignee: | Torbjorn Norbye <tor> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 34908 | ||
Bug Blocks: |
Description
Jesse Glick
2003-07-11 21:03:05 UTC
Part #2 of the bug is now fixed (version 1.11 of the suggestions module). The root problem was that the window system will not call TopComponent.componentShowing when the window is opened a second time (and third, fourth, etc.). It does correctly get called when the tab is raised. There was a problem with the event-coalescer too which I fixed. Part #1 is trickier. The reason the F12 button doesn't work after a restart, is that after the tasklist window has initialized itself and has hooked up the F12 action to its action performer, the Output Window's -initialization- code (not its componentOpened mind you - its constructor!) goes and steals the F12 key back - and sets it to disabled. There's not really anything I can do about that - other than to ask the output tab owner to change it such that the output window only touches the action performer when it's opened or activated! (There's no reason for it to disable it initially, it already gets disabled on startup (I Thread.dumpStacked within NextOutJumpAction.setEnabled): at org.netbeans.core.output.NextOutJumpAction.setEnabled(NextOutJumpAction.java:52) at org.openide.util.actions.CallbackSystemAction.updateEnabled(CallbackSystemAction.java:173) at org.openide.util.actions.CallbackSystemAction.setActionPerformer(CallbackSystemAction.java:136) at org.netbeans.core.output.NextOutJumpAction.setActionPerformer(NextOutJumpAction.java:58) at org.netbeans.core.output.OutputTabTerm$OutTermPane.updateNextPrevActions(OutputTabTerm.java:959) at org.netbeans.core.output.OutputTabTerm$OutTermPane.<init>(OutputTabTerm.java:786) at org.netbeans.core.output.OutputTabTerm.<init>(OutputTabTerm.java:193) at org.netbeans.core.output.OutputTabTerm.initialize(OutputTabTerm.java:340) at org.netbeans.core.output.OutputTabTerm.access$100(OutputTabTerm.java:81) at org.netbeans.core.output.OutputTabTerm$Factory.getStdOutputTab(OutputTabTerm.java:620) at org.netbeans.core.output.OutputTabTerm.getStdOutputTab(OutputTabTerm.java:234) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:622) What I -could- however fix is the code such that activating the suggestions window makes F12 work again. That used to work and had regressed; now fixed in tasklist/core version 1.12. So, I'm going to close this bug as fixed (as far as the tasklist window is concerned) and I will file a second issue against openide?/output requesting that it gets less aggressive about setting the output performer. The core issue which tracks the remainder of #1 is 34908. It was resolved in 3.6 time or earlier. |