Results 1 to 3 of 3
Thread: remove source file from project
- 09-09-2010, 04:32 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 3
- Rep Power
- 0
remove source file from project
We are using Netbeans in class, and something really bothers me. In Visual Studio, if I am working on several different files for different problems, I can just right click on the source file, choose remove, and add my new source file and compile the new program.
In Netbeans there is no remove, just a delete, and I found out the hard way that deletes the file off of the disk(after spending 3 hours writing it). Is there a way that I can do this without having to create a new project for each of the 10 problems we have in this assignment?
- 09-09-2010, 05:17 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,451
- Rep Power
- 16
Why remove it?
I have a scratch project in which I dump all my brain fart code. Snippets for reading files, parsing xml, db code, image stuff, anything I happen to be testing out how it works (POI most recently). I haven't had to do a new project for each one, just either alter an existing main() or add a new one for running that particular thing.
- 09-14-2010, 12:27 PM #3
If you have spent 3hrs for writing code why delete it? Why not just keep it safe somewhere.
and if you 10 problems, then just create single project and write code in that project with different file name like(MyFirst.java, MySecond.java). To run MyFirst.java then i would do "Shift + F6" (This help to run single file not the entire project).
-Regards
Similar Threads
-
Project containing multiple source files
By mr smiley in forum EclipseReplies: 0Last Post: 04-25-2009, 10:31 PM -
How does eclipse choose existing source when new project is created?
By batkins61 in forum EclipseReplies: 0Last Post: 03-24-2009, 03:23 PM -
Same source file but different source folders for different build configurations?
By m3anman in forum EclipseReplies: 0Last Post: 01-29-2009, 10:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks