Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse, open a file outside a project

 
william wu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
One thing has been bugging me since I started using eclipse, that is I cannot find a way to a file outside project, could anyone tell me how?
Thanks,
William
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is a way open a file outside a project directory. However, each project can have a separate directory.
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All resources have to be associated with a project. You can open an existing file by selecting File|Import... from the menu. Then select the File System import source.
 
william wu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies, John and Junilu.
Sometimes it's convenient to open a file outside a project so that I don't have to fire up another editor.
I was looking for a plugin that allows me to browse file system, but didn't find any that works. You guys know any plugins like that? BTW, I am using eclipse 2.0.1(Build id: 200208291828).
Thanks a lot
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know about a plugin, but it's on the project plan for version 2.1.
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this same problem.
I want to browse a JAR in the JRE.
I am thinking of creating a project that starts at the root of my C:\ drive.
I can open or close this project at will.
What do you think?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rufus BugleWeed:
I want to browse a JAR in the JRE.

Adding it to the Build Path of a Java project will give you the ability to browse it in the Package Explorer.

I am thinking of creating a project that starts at the root of my C:\ drive.
I can open or close this project at will.
What do you think?

Eclipse won't allow this unless it is the only project residing on C: - project directories are not allowed to contain directories of other projects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic