• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it bad to place a file inside an src folder manually, via the file system?  RSS feed

 
Mark Richardson
Ranch Hand
Posts: 104
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MY question is two-fold. First, I will mention what I am perceiving to be a bug in Eclipse. I'm using Eclipse Neon.3 Release (4.6.3)

The "bug"

I right click on a package, click on "new" go to "other" and search for "Untitled Text File." This opens up a text file, which is unsaved until I try to save it.  Once again, Eclipse starts asking me for the path in which I want to save it in. This is absurd because I right clicked on a location and one would imagine that this is where I wanted the text file created, but now I have to drill down into the specify the folder.

Nobody has time for that.

So! I have started using Windows Explorer to simply create my text files. Then, I just click "refresh" or "F5" and the file materializes in my Eclipse IDE. Is this bad practice? and secondly, are you able to replicate this little annoyance on your end?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
Use type "file" instead of "untitled text file". The former saves the file to the folder in which you create it.

And it's not a problem to create the file on the file system in your workspace. Just more work than new > file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!