1 11 package org.eclipse.team.internal.core; 12 13 import org.eclipse.core.resources.*; 14 import org.eclipse.core.resources.team.ResourceRuleFactory; 15 import org.eclipse.core.runtime.jobs.ISchedulingRule; 16 17 22 public class PessimisticResourceRuleFactory extends ResourceRuleFactory { 23 24 IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); 25 26 29 public ISchedulingRule copyRule(IResource source, IResource destination) { 30 return root; 31 } 32 35 public ISchedulingRule createRule(IResource resource) { 36 return root; 37 } 38 41 public ISchedulingRule deleteRule(IResource resource) { 42 return root; 43 } 44 47 public ISchedulingRule modifyRule(IResource resource) { 48 return root; 49 } 50 53 public ISchedulingRule moveRule(IResource source, IResource destination) { 54 return root; 55 } 56 59 public ISchedulingRule refreshRule(IResource resource) { 60 return root; 61 } 62 65 public ISchedulingRule validateEditRule(IResource[] resources) { 66 return root; 67 } 68 69 72 public ISchedulingRule charsetRule(IResource resource) { 73 return root; 74 } 75 } 76 | Popular Tags |