Community
Participate
Working Groups
I beginRule() on the underlying IResource as a for the ICompilationUnit I'm working with. When I invoke delete() on an IField (IMethod, IImportDeclaration, etc) the delete tries to run within the WorkspaceRoot scheduling rule. This causes a "inner scope rule doesn't match other scope rule" exception. I don't think I should be required to use the entire WS Root as the rule when I want to delete a field from a single IResource. The delete() operation should be modified to only require the underlying IResource as the rule it needs not the entire WorkspaceRoot.
Added getSchedulingRule() on DeleteElementsOperation to return the modifyRule from the workspace's rule factory. Added regression test DeleteTests#deleteField3()
Verified for 3.1M3 with build I20041102