Lines 286-296
Link Here
|
286 |
return getMoveProcessor().getDeclaringType().getElementName(); |
286 |
return getMoveProcessor().getDeclaringType().getElementName(); |
287 |
} |
287 |
} |
288 |
|
288 |
|
289 |
private static IStatus validateDestinationType(IType type, String typeName){ |
289 |
private IStatus validateDestinationType(IType type, String typeName){ |
290 |
if (type == null || ! type.exists()) |
290 |
if (type == null || ! type.exists()) |
291 |
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.OK, Messages.format(RefactoringMessages.MoveMembersInputPage_not_found, typeName), null); |
291 |
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.OK, Messages.format(RefactoringMessages.MoveMembersInputPage_not_found, typeName), null); |
292 |
if (type.isBinary()) |
292 |
if (type.isBinary()) |
293 |
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.OK, RefactoringMessages.MoveMembersInputPage_no_binary, null); |
293 |
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.OK, RefactoringMessages.MoveMembersInputPage_no_binary, null); |
|
|
294 |
if (type.equals(getMoveProcessor().getDeclaringType())) |
295 |
return new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.OK, RefactoringMessages.MoveMembersInputPage_same, null); |
294 |
return new Status(IStatus.OK, JavaPlugin.getPluginId(), IStatus.OK, "", null); //$NON-NLS-1$ |
296 |
return new Status(IStatus.OK, JavaPlugin.getPluginId(), IStatus.OK, "", null); //$NON-NLS-1$ |
295 |
} |
297 |
} |
296 |
|
298 |
|