Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Add IProgressMonitor to DeleteCommand
Add IProgressMonitor to DeleteCommand [message #426193] Thu, 18 December 2008 17:23 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

Is there a way to add progress monitor to DeleteCommand and more generally
to an EMF Command ?

Thank you for your response !
Sylvain
Re: Add IProgressMonitor to DeleteCommand [message #426196 is a reply to message #426193] Thu, 18 December 2008 20:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Sylvain,

I've never thought about it. It seems tricky. Does it really take that
long?


Sylvain Dudoit wrote:
> Hi,
>
> Is there a way to add progress monitor to DeleteCommand and more
> generally to an EMF Command ?
>
> Thank you for your response !
> Sylvain
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Add IProgressMonitor to DeleteCommand [message #426201 is a reply to message #426196] Fri, 19 December 2008 08:37 Go to previous messageGo to next message
exquisitus is currently offline exquisitusFriend
Messages: 18
Registered: July 2009
Junior Member
I'm using EMF 2.3 and I can have some nodes containing more than 100
subnodes.
So, when I use DeleteCommand for the parent node, it takes a while and
could frozes the application.

An idea of the best solution ? reimplement commands to add progres monitor
?

Thank,
Sylvain
Re: Add IProgressMonitor to DeleteCommand [message #426207 is a reply to message #426201] Fri, 19 December 2008 13:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Sylvain,

I'm really not sure how you will measure progress in a meaningful way.
Having a progress monitor come up when you do a "simple" delete might be
very annoying to the user. Unless your users are complaining, it seems
a lot of work with potentially negative gain...


Sylvain Dudoit wrote:
>
> I'm using EMF 2.3 and I can have some nodes containing more than 100
> subnodes.
> So, when I use DeleteCommand for the parent node, it takes a while and
> could frozes the application.
> An idea of the best solution ? reimplement commands to add progres
> monitor ?
> Thank,
> Sylvain
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Add IProgressMonitor to DeleteCommand [message #426211 is a reply to message #426207] Fri, 19 December 2008 14:26 Go to previous message
Sebastian Paul is currently offline Sebastian PaulFriend
Messages: 106
Registered: July 2009
Senior Member
Hi,
I agree with Ed, measuring the work would not be very precise here. Why
don't you just wrap your call into
org.eclipse.swt.custom.BusyIndicator.showWhile(Display, Runnable)? The
user would see an hour glass until the command has completed.

Kind regards, Sebastian
Previous Topic:different instances of ECorePackages
Next Topic:Problem loading model as a resource
Goto Forum:
  


Current Time: Tue Apr 16 06:09:26 GMT 2024

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

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

Back to the top