|Proposal for refresh behavior in Project Explorer [message #846681]
||Mon, 16 April 2012 16:59
| David Straayer
Registered: February 2012
Here is my situation: I use Eclipse on a lot of different computers, with workspaces on different local and network drives. Sometimes I want to copy a project from one workspace to another. For example, to copy a file I've checked out on a local drive into a network drive to share with my students.|
I can easily copy the subtree associated with the project from one workspace to another, no problem. But when I do, and open up Eclipse pointed to the workspace to which I've copied the subtree, Package Explorer doesn't "see" the files in the folder.
Someone suggested using Import/Export, but that isn't very convenient in a teaching and grading environment. I can FTP over a folder of src, but unless I run Eclipse on the other machine, I can't export. And Export is a cumbersome set of other operations that I usually use for building runnable jar files, so using it for this purpose causes it to "forget" my current jar build configuration.
I don't understand why right-clicking on a src folder or package icon, and clicking or "refresh" or stabbing F5 doesn't cause Eclipse to read the files in the folder, and create or delete items in the Package Explorer appropriately. My students are often downloading demo source code from my workspace, which I keep in a searchable directory on my web space. But they've got to go through extra steps to open the files in Eclipse. Creating a new class with the identical name to a file already in the directory seems to work, but that is cumbersome and error-prone.
Why not add a checkbox somewhere in preferences that says something like "Make F5 refresh src and package icons in Package Explorer.", default it to the current behavior (for whatever reason nobody seems to want F5 to refresh Package Explorer. I don't understand, but, hey, you've probably got a reason). That way, everybody who likes it the way it is now keeps it the way it is. And those of us who are teaching the way I am can get demo code into Package Explorer for ourselves (for grading) and for our students (for demo and trial modification in class).
Powered by FUDForum
. Page generated in 0.03929 seconds