Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Why Does IFileModificationValidator Encounter "does not match outer scope rule" Error?
Why Does IFileModificationValidator Encounter "does not match outer scope rule" Error? [message #230329] Sat, 17 April 2004 02:22 Go to next message
Jim White is currently offline Jim WhiteFriend
Messages: 3
Registered: July 2009
Junior Member
I have an implementation of IFileModificationValidator.validateEdit() that
copies a file before it's first edited and that stores the copy in another
branch of the resource tree. A few months ago, when I upgraded to a new
integration build, the implementation stopped working. Now when it tries to
create a folder to hold the file copy, the implementation encounters this
error:



java.lang.IllegalArgumentException: Attempted to beginRule: P/Test, does not
match outer scope rule: F/Test/src/test

at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java :56)

at
org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.illega lPush(ImplicitJo
bs.java:86)

at
org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.push(I mplicitJobs.java
:167)

at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJo bs.java:241)

at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManag er.java:149)

at
org.eclipse.core.internal.resources.WorkManager.checkIn(Work Manager.java:88)

at
org.eclipse.core.internal.resources.Workspace.prepareOperati on(Workspace.jav
a:1521)

at org.eclipse.core.internal.resources.Folder.create(Folder.jav a:84)

at org.eclipse.core.internal.resources.Folder.create(Folder.jav a:116)

....



It appears that a rule is in place that limits the effect of validateEdit()
to the branch of the resource tree that holds the file original. Can anyone
help me understand what's actually going on and suggest a way around this
obstacle? Thanks. /Jim White
Re: Why Does IFileModificationValidator Encounter "does not match outer scope rule" Error? [message #230424 is a reply to message #230329] Sat, 17 April 2004 11:39 Go to previous message
Jean-Michel Lemieux is currently offline Jean-Michel LemieuxFriend
Messages: 136
Registered: July 2009
Senior Member
See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=50631 for more
details. We will be fixing this for M9.


Jim White wrote:
> I have an implementation of IFileModificationValidator.validateEdit() that
> copies a file before it's first edited and that stores the copy in another
> branch of the resource tree. A few months ago, when I upgraded to a new
> integration build, the implementation stopped working. Now when it tries to
> create a folder to hold the file copy, the implementation encounters this
> error:
>
>
>
> java.lang.IllegalArgumentException: Attempted to beginRule: P/Test, does not
> match outer scope rule: F/Test/src/test
>
> at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java :56)
>
> at
> org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.illega lPush(ImplicitJo
> bs.java:86)
>
> at
> org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.push(I mplicitJobs.java
> :167)
>
> at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJo bs.java:241)
>
> at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManag er.java:149)
>
> at
> org.eclipse.core.internal.resources.WorkManager.checkIn(Work Manager.java:88)
>
> at
> org.eclipse.core.internal.resources.Workspace.prepareOperati on(Workspace.jav
> a:1521)
>
> at org.eclipse.core.internal.resources.Folder.create(Folder.jav a:84)
>
> at org.eclipse.core.internal.resources.Folder.create(Folder.jav a:116)
>
> ...
>
>
>
> It appears that a rule is in place that limits the effect of validateEdit()
> to the branch of the resource tree that holds the file original. Can anyone
> help me understand what's actually going on and suggest a way around this
> obstacle? Thanks. /Jim White
>
>
Previous Topic:who do I have to kill to get ctrl+space to work?
Next Topic:Can't Export RCP 3M8 "srcdir attribute must be set!"
Goto Forum:
  


Current Time: Sun Jul 07 06:57:04 GMT 2024

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

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

Back to the top