Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Progres monitor in doExecuteWithResult
Progres monitor in doExecuteWithResult [message #185712] Wed, 07 May 2008 11:21
Eclipse UserFriend
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
Previous Topic:Container layout problem
Next Topic:make contained eobjects moveable
Goto Forum:
  


Current Time: Fri Apr 19 20:44:09 GMT 2024

Powered by FUDForum. Page generated in 0.03768 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top