Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2007, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2007, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 106-111
Link Here
|
106 |
try { |
106 |
try { |
107 |
IResource resource= getResource(); |
107 |
IResource resource= getResource(); |
108 |
if (resource == null || !resource.exists()) { |
108 |
if (resource == null || !resource.exists()) { |
|
|
109 |
if (fDeleteContent) |
110 |
return null; // see https://bugs.eclipse.org/343584 |
109 |
throw new CoreException(new Status(IStatus.ERROR, RefactoringCorePlugin.getPluginId(), RefactoringCoreMessages.DeleteResourceChange_error_resource_not_exists)); |
111 |
throw new CoreException(new Status(IStatus.ERROR, RefactoringCorePlugin.getPluginId(), RefactoringCoreMessages.DeleteResourceChange_error_resource_not_exists)); |
110 |
} |
112 |
} |
111 |
|
113 |
|