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: | Cancel running task does not work | ||
---|---|---|---|
Product: | cnd | Reporter: | Alexander Pepin <apepin> |
Component: | Project | Assignee: | Thomas Preisler <thp> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Alexander Pepin
2008-03-21 21:01:28 UTC
This appears to be a more general projects issue, rather than a gdb-lite issue. The cancel action is ignored for both running and debugging. I looked through code and DefaultProjectActionHandler$StopAction doesn't enable the action so the isEnabled() check in the actionPerformed() method returns false and the process isn't stopped. I experimented by enabling the action in the constructor. By the time it reached the actionPerformed method it was again disabled. If I enabled it in actionPerformed (something I wouldn't do except while experimenting), it still did nothing in gdb-lite (because handleEvents.getExecutorTask() was null) and aborted NetBeans if Running a project. Anyway, I'm reassigning this to Thomas as it appears to be a project issue. The issue is not that you cannot cancel a run when we execute in an external terminal but that the cancel button at the bottom of output window is not disabled. The run is terminated simply by dismissing the terminal window. The problem is NB doesn't have an API to control enableness of the cancel button, and there is also no way to not show it. The button is always available. I can ask for an API but I doubt it can be done in 6.1. Is this really a P2? IMHO no. For both Run and Debug there are alternate ways of terminating the process. Will remove the cancel icon from the progress bar when executing in external window. The cancel icon will still be present (and work) during the build. To cancel the run when running in terminal window, simply dismiss the terminal window. The cancel icon is now only shown when it also does work. The icon is not shown when running in terminal window or when debugging. There are alternative ways to terminate the process in those two cases and doing it from the progress bar wouldn't work. The cancel icon is shown when building and running in internal window and it does work in those two cases. changeset 999b9f64cf4a in main details: http://hg.netbeans.org/main?cmd=changeset;node=999b9f64cf4a description: 130827 Cancel running task does not work changeset 078e07ce3dc6 in main details: http://hg.netbeans.org/main?cmd=changeset;node=078e07ce3dc6 description: 130827 Cancel running task does not work changeset 33e80d45492c in main details: http://hg.netbeans.org/main?cmd=changeset;node=33e80d45492c description: 130827 Cancel running task does not work verified in build 200803302302 *** Issue 129240 has been marked as a duplicate of this issue. *** |