use of org.eclipse.ecf.internal.sync.resources.core.FileChangeMessage in project ecf by eclipse.
the class WorkbenchAwareResourcesShare method lock.
protected void lock(IModelChange[] remoteChanges) {
DocShare docShare = SyncResourcesUI.getDocShare(getContainerID());
if (docShare != null) {
List paths = new ArrayList(remoteChanges.length);
for (int i = 0; i < remoteChanges.length; i++) {
if (remoteChanges[i] instanceof FileChangeMessage) {
String path = ((FileChangeMessage) remoteChanges[i]).getPath();
paths.add(path);
}
}
docShare.lock((String[]) paths.toArray(new String[paths.size()]));
}
super.lock(remoteChanges);
}
use of org.eclipse.ecf.internal.sync.resources.core.FileChangeMessage in project ecf by eclipse.
the class WorkbenchAwareResourcesShare method unlock.
protected void unlock(IModelChange[] remoteChanges) {
super.unlock(remoteChanges);
DocShare docShare = SyncResourcesUI.getDocShare(getContainerID());
if (docShare != null) {
List paths = new ArrayList(remoteChanges.length);
for (int i = 0; i < remoteChanges.length; i++) {
if (remoteChanges[i] instanceof FileChangeMessage) {
String path = ((FileChangeMessage) remoteChanges[i]).getPath();
paths.add(path);
}
}
docShare.unlock((String[]) paths.toArray(new String[paths.size()]));
}
}
Aggregations