Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » FacetedProject question
FacetedProject question [message #229472] Tue, 24 March 2009 16:37 Go to previous message
Eclipse User
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
 
Read Message
Read Message
Read Message
Previous Topic:Wrong link to user doc
Next Topic:Need some classes in jars, in war
Goto Forum:
  


Current Time: Sat May 25 07:35:45 EDT 2013

Powered by FUDForum. Page generated in 0.01606 seconds