Progres monitor in doExecuteWithResult [message #185712] |
Wed, 07 May 2008 11:21 |
Eclipse User |
|
|
|
Originally posted by: novak.igor.gmail.com
Hi!
I define progress monitor as following:
"
AbstractTransactionalCommand command = new
AbstractTransactionalCommand(...){
protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info) throws ExecutionException {
monitor.beginTask("Updating model", 100);
doStuff(monitor);
monitor.done();
return CommandResult.newOKCommandResult();
}
};
Shell shell =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShel l();
ProgressMonitorPart progressMonitor = new ProgressMonitorPart(shell, null);
OperationHistoryFactory.getOperationHistory().execute(comman d,
progressMonitor, null);
"
but the progress monitor is not shown.
How to define a progress monitor to be shown in doExecuteWithResult or in
my doStuff method?
Thanks in advance, Igor Novak
|
|
|
Powered by
FUDForum. Page generated in 0.03768 seconds