Bug 123496 [IDE] Use operation validation API for IDE actions
We should use the Resources/Core operation validation API in the IDE actions for manipulating resources.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
if (sourceLocation == null) {
				if (sourceResource.isLinked()) {
					
					
					return NLS
							.bind(
									IDEWorkbenchMessages.CopyFilesAndFoldersOperation_missingPathVariable,
									sourceResource.getName());
				}
				return NLS
						.bind(
								IDEWorkbenchMessages.CopyFilesAndFoldersOperation_resourceDeleted,
								sourceResource.getName());
			}
			if (sourceLocation.equals(destinationLocation)) {
				return NLS
						.bind(
								IDEWorkbenchMessages.CopyFilesAndFoldersOperation_sameSourceAndDest,
								sourceResource.getName());
			}
			
			if (sourceLocation.isPrefixOf(destinationLocation)) {
				return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_destinationDescendentError;
			}
			String linkedResourceMessage = validateLinkedResource(destination,
					sourceResource);
			if (linkedResourceMessage != null) {
				return linkedResourceMessage;
			}
		}