Bug 20051 Renaming: Operation cannot be performed
Using the 06/12 integration build. 1. Create a plug-in project. 2. Try to rename it using refactor->rename..., you get the Java message dialog saying: "The resource is not on the build path of a Java project". First, what does this message mean? Second, are we not allowed to change the name of a PDE project after it is created?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ActionUtil.java
public static boolean isProcessable(Shell shell, Object element) {
		if (!(element instanceof IJavaElement))
			return true;
			
		if (checkJavaElement((IJavaElement)element))
			return true;
		MessageDialog.openInformation(shell, 
			ActionMessages.getString("ActionUtil.notOnBuildPath.title"),  
			ActionMessages.getString("ActionUtil.notOnBuildPath.message")); 
		return false;
	}
	private static boolean checkJavaElement(IJavaElement element) {	
		IJavaProject project= element.getJavaProject();
		try {
			if (!project.isOnClasspath(element))
				return false;
			IProject resourceProject= project.getProject();
			if (resourceProject == null)
				return false;
			IProjectNature nature= resourceProject.getNature(JavaCore.NATURE_ID);
			
			if (nature != null)
				return true;
		} catch (CoreException e) {
		}
		return false;
	}
}