Project: JDT
Bug 19067 Useless error message
Reported: 2002-06-04 10:29:35 | Status: resolved fixed

F2 - create project Test with source folder src - create folder data - create Test.java in data - paste content class Test { public Object field; } class B extends Test { public Object field2; } - select field2 - select Refactor->Pullup... You get an error message saying: Pull up is not allowed on elements declared in this type. This error message isn't very usefull. Even if we disble the action in the case of java files not on build path we should improve the message for case in which it is used. Why can't I pull up elements.

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/MoveMembersAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java