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.

Bug 236405 - Allow desriptor to be cancellable only
Summary: Allow desriptor to be cancellable only
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks: 236397
  Show dependency tree
 
Reported: 2013-09-26 07:47 UTC by Tomas Mysik
Modified: 2015-10-14 13:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2013-09-26 07:47:50 UTC
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.
Comment 1 Petr Hejl 2015-10-14 13:01:01 UTC
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.