Community
Participate
Working Groups
Build 20041020 For now, using IFile.setContents(...) uses a scheduling rule that is the IFile itself. Thus CreateElementInCUOperation uses a scheduling rule that is the IFile too. However if IFile.setContents(...) was to change its behavior and use a scheduling rule that is the parent folder, CreateElementInCUOperation would fail. Thus this operation (and Java model operations in general) should use an IResourceRuleFactory (see IWorkspace.getRuleFactory()) to create the scheduling rule, so that it is not dependent on the Platform Core behavior.
Fixed CommitWorkingCopyOperation, CreateCompilationUnitOperation and CreateElementInCUOperation to use IResourceRuleFactory.modifyRule(IResource) and createRule(IResource)
Verified for 3.0M7