Svatopluk Dedic created NETBEANS-5562:
-----------------------------------------

             Summary: Missing API to cancel Project action
                 Key: NETBEANS-5562
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5562
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Generic Infrastructure
            Reporter: Svatopluk Dedic


*ProjectActionProvider.invokeAction* can be called to invoke an (abstract) 
action on a project, like Build. The action may even internally create display 
some *ProgressHandle* that the end-user can use to terminate the action -  but 
the initiating code can not.

For higher-level tools, that use the project infrastructure, a programatic 
cancel is desirable. Discovered when I tried to implement *Download Sources* 
for Gradle - the process may take long, Gradle build displays a progress, but:
 * the progress UI is *outside* the modal dialog, and
 * dialog's Cancel button has no effect (no way how to cancel).

The code should be also able to *access* the *ProgressHandle*, or at least 
access some *ProgressControl* narrower interface, that could monitor *events* 
and eventually *cancel* and *extract components* as the Swing part allows to 
*embed* the presentation - currently the progress handle is presented in the 
global UI only.

The use-case is to that a code should control the process it launched, display 
its progress in a customized way.

// cc: [~jtulach], [~dbalek]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to