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.
Currently, ExecutionDescriptor can be only controllable() - it means that one can stop it and rerun it. I would need (for better fix for issue #236397) a way to set descriptor to be only cancellable, it means stop action/icon present but no rerun action/icon available (it is for unit test runner and the whole test suite must be rerun to get proper results, not only external process). Thanks.
This looks like scope creeping of the API. The API is focused around java.lang.Process (it does not necessarily mean OS process). It allows it to stop it and run again if the user wants to. The case where stop should stop the process but to rerun you need something more seems to be breaking this encapsulation. Perhaps that "something more" should/could be wrapped into the Process. Feel free to reopen.