Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cme-dev] Need to be able to cancel concern model building.

Regarding bug 59589:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=59589

I've just committed part of a fix for this, to org.eclipse.cme.ui. If you 
have chance please try it out and report any problems to me. If the 
concern model building operation is cancelled, the concern space is 
cleared, so that it is not left in an incomplete state. Also if cancelled, 
the refresh button is left enabled, so that a rebuild can be initiated 
later. Evaluating a query also triggers a build if necessary, so I've made 
that cope with a cancelling of the build there.

Most phases of the concern model building respond quickly to a cancel 
request, except for the infer relationships phase, which is the missing 
part of the fix. As this phase can be time consuming, I think we should 
address it now if possible, but we need to agree how to handle it. In the 
UI code we call isCanceled() on our IProgressMonitor at suitable points in 
the processing, and then return immediately if it is true. So the infer 
relationships processing in project conman.loader.shrike needs to do the 
same, but being part of the core it's not dependent on the Eclipse 
plugins, so can't use IProgressMonitor directly. Any ideas how we could do 
this? The util.env.eclipse project has Eclipse dependencies, so how about 
we add a wrapper around IProgressMonitor there that conman.loader.shrike 
can use? I doubt this is the only time we'll need to do this (executing 
queries is probably another one).

Matt.

-- 
Matt Chapman
CME Development


Back to the top