|
org.netbeans.modules.autoupdate.services 1.26.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.autoupdate.OperationSupport
public final class OperationSupport
Performs all operations scheduled on instance of OperationContainer.
Instance of OperationSupport can be obtained by calling OperationContainer.getSupport()
| Nested Class Summary | |
|---|---|
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) |
| Method Summary | |
|---|---|
void |
doCancel()
Cancels changes done in previous call doOperation(org.netbeans.api.progress.ProgressHandle) if supported. |
OperationSupport.Restarter |
doOperation(ProgressHandle progress)
Performs operation |
void |
doRestart(OperationSupport.Restarter restarter,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public OperationSupport.Restarter doOperation(ProgressHandle progress)
throws OperationException
progress - instance of ProgressHandle or null
OperationSupport.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)
OperationExceptionOperationException
public void doCancel()
throws OperationException
doOperation(org.netbeans.api.progress.ProgressHandle) if supported.
OperationExceptionOperationException
public void doRestart(OperationSupport.Restarter restarter,
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 changes
restarter - instance of Restarter obtained from previous call doOperation(org.netbeans.api.progress.ProgressHandle).
Mustn't be null.progress - instance of ProgressHandle or null
OperationExceptionOperationExceptionpublic 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 changes
restarter - instance of Restarter obtained from previous call doOperation(org.netbeans.api.progress.ProgressHandle).
Mustn't be null.
|
org.netbeans.modules.autoupdate.services 1.26.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||