| FacetedProject question [message #229472] |
Tue, 24 March 2009 16:37  |
|
Originally posted by: eclipse-news.rizzoweb.com
While trying to call FacetedProject.modify() from a Job, I noticed that
method uses the workspace root as a scheduling rule. This means that it
is locking the entire workspace.
In an effort to be a Jobs API good citizen, my Job uses the project
being modified as its scheduling rule. But this causes an error when
FacetedProject.modify() tries to obtain the root lock.
final IWorkspace ws = ResourcesPlugin.getWorkspace();
ws.run( wr, ws.getRoot(), IWorkspace.AVOID_UPDATE, monitor );
The only workaround I can come up with is to either specify the root as
the rule for my own Job, or speficy no rule at all.
Is it intentional and necessary to be so broad in the
FacetedProject.modify() code?
This is the Ganymede version of WST (1.3.x of the
org.eclipse.est.common.facet.core plugin).
Eric
|
|
|