/** * Obtains the scheduling rule from the appropriate factories for a move operation. */ @Override public ISchedulingRule moveRule(IResource source, IResource destination) { if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; //treat a move across projects as a create on the destination and a delete on the source if (!source.getFullPath().segment(0).equals(destination.getFullPath().segment(0))) return MultiRule.combine(modifyRule(source.getProject()), modifyRule(destination.getProject())); return factoryFor(source).moveRule(source, destination); }
/** * Obtains the scheduling rule from the appropriate factories for a move operation. */ @Override public ISchedulingRule moveRule(IResource source, IResource destination) { if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; //treat a move across projects as a create on the destination and a delete on the source if (!source.getFullPath().segment(0).equals(destination.getFullPath().segment(0))) return MultiRule.combine(modifyRule(source.getProject()), modifyRule(destination.getProject())); return factoryFor(source).moveRule(source, destination); }
/** * Obtains the scheduling rule from the appropriate factories for a move operation. */ @Override public ISchedulingRule moveRule(IResource source, IResource destination) { if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; //treat a move across projects as a create on the destination and a delete on the source if (!source.getFullPath().segment(0).equals(destination.getFullPath().segment(0))) return MultiRule.combine(modifyRule(source.getProject()), modifyRule(destination.getProject())); return factoryFor(source).moveRule(source, destination); }
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
ISchedulingRule rule; if (isMove()) { rule = factory.moveRule(sourceResource, destResource); } else { rule = factory.copyRule(sourceResource, destResource);
monitor.beginTask(message, Policy.totalWork); IProject destination = workspace.getRoot().getProject(description.getName()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destination); try { workspace.prepareOperation(rule, monitor);
monitor.beginTask(message, Policy.totalWork); IProject destination = workspace.getRoot().getProject(description.getName()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destination); try { workspace.prepareOperation(rule, monitor);
monitor.beginTask(message, Policy.totalWork); IProject destination = workspace.getRoot().getProject(description.getName()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destination); try { workspace.prepareOperation(rule, monitor);
checkValidPath(destination, getType(), false); Resource destResource = workspace.newResource(destination, getType()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destResource); try { workspace.prepareOperation(rule, monitor);
checkValidPath(destination, getType(), false); Resource destResource = workspace.newResource(destination, getType()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destResource); try { workspace.prepareOperation(rule, monitor);
checkValidPath(destination, getType(), false); Resource destResource = workspace.newResource(destination, getType()); final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destResource); try { workspace.prepareOperation(rule, progress.split(1));