public final class OperationSupport extends Object
OperationContainer
.
Instance of OperationSupport
can be obtained by calling OperationContainer.getSupport()
Modifier and Type | Class | Description |
---|---|---|
static class |
OperationSupport.Restarter |
A helper object returned by a performer of the operation for invoking
methods
doRestart(org.netbeans.api.autoupdate.OperationSupport.Restarter, org.netbeans.api.progress.ProgressHandle) or doRestartLater(org.netbeans.api.autoupdate.OperationSupport.Restarter) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCancel() |
Cancels changes done in previous call
doOperation(org.netbeans.api.progress.ProgressHandle) if supported. |
OperationSupport.Restarter |
doOperation(org.netbeans.api.progress.ProgressHandle progress) |
Performs operation
|
void |
doRestart(OperationSupport.Restarter restarter,
org.netbeans.api.progress.ProgressHandle progress) |
Finishes operation, applies all changes and ensures restart of the application immediately.
|
void |
doRestartLater(OperationSupport.Restarter restarter) |
Finishes operation, all the changes will be completed after restart the application.
|
public OperationSupport.Restarter doOperation(org.netbeans.api.progress.ProgressHandle progress) throws OperationException
progress
- instance of ProgressHandle
or nullOperationSupport.Restarter
which is necessary
for next calls like doRestart(org.netbeans.api.autoupdate.OperationSupport.Restarter, org.netbeans.api.progress.ProgressHandle)
or doRestartLater(org.netbeans.api.autoupdate.OperationSupport.Restarter)
OperationException
OperationException
public void doCancel() throws OperationException
doOperation(org.netbeans.api.progress.ProgressHandle)
if supported.OperationException
OperationException
public void doRestart(OperationSupport.Restarter restarter, org.netbeans.api.progress.ProgressHandle progress) throws OperationException
doOperation(org.netbeans.api.progress.ProgressHandle)
returns non null instance of Restarter
then
this method must be called to apply all changesrestarter
- instance of Restarter
obtained from previous call doOperation(org.netbeans.api.progress.ProgressHandle)
.
Mustn't be null.progress
- instance of ProgressHandle
or nullOperationException
OperationException
public void doRestartLater(OperationSupport.Restarter restarter)
doOperation(org.netbeans.api.progress.ProgressHandle)
returns non null instance of Restarter
then
this method must be called to apply all changesrestarter
- instance of Restarter
obtained from previous call doOperation(org.netbeans.api.progress.ProgressHandle)
.
Mustn't be null.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.