|
Lines 123-129
Link Here
|
| 123 |
} |
123 |
} |
| 124 |
|
124 |
|
| 125 |
protected void performEdit(IFile[] files, IProgressMonitor monitor) throws CVSException { |
125 |
protected void performEdit(IFile[] files, IProgressMonitor monitor) throws CVSException { |
| 126 |
getProvider(files).edit(files, false /* recurse */, true /* notify server */, true /* notify for writtable files */, ICVSFile.NO_NOTIFICATION, monitor); |
126 |
int notify; |
|
|
127 |
if (CVSProviderPlugin.getPlugin().isWatchOnEdit()) { |
| 128 |
notify = ICVSFile.NOTIFY_ON_ALL; |
| 129 |
} |
| 130 |
else { |
| 131 |
notify = ICVSFile.NO_NOTIFICATION; |
| 132 |
} |
| 133 |
getProvider(files).edit(files, false /* recurse */, true /* notify server */, true /* notify for writtable files */, notify, monitor); |
| 127 |
} |
134 |
} |
| 128 |
|
135 |
|
| 129 |
private boolean needsCheckout(IFile file) { |
136 |
private boolean needsCheckout(IFile file) { |
|
Lines 199-205
Link Here
|
| 199 |
|
206 |
|
| 200 |
public ISchedulingRule validateEditRule(CVSResourceRuleFactory factory, IResource[] resources) { |
207 |
public ISchedulingRule validateEditRule(CVSResourceRuleFactory factory, IResource[] resources) { |
| 201 |
IFileModificationValidator override = getUIValidator(); |
208 |
IFileModificationValidator override = getUIValidator(); |
| 202 |
if (override instanceof CVSCoreFileModificationValidator) { |
209 |
if (override instanceof CVSCoreFileModificationValidator && override.getClass() != getClass()) { |
| 203 |
CVSCoreFileModificationValidator ui = (CVSCoreFileModificationValidator) override; |
210 |
CVSCoreFileModificationValidator ui = (CVSCoreFileModificationValidator) override; |
| 204 |
return ui.validateEditRule(factory, resources); |
211 |
return ui.validateEditRule(factory, resources); |
| 205 |
} |
212 |
} |