| Using Existing File Systems [message #147227] |
Fri, 07 April 2006 09:29  |
Eclipse User |
|
|
|
Hey guys, I am sure this is a normal newbie question, but I wanted to ask.
I have been attempting to work on a Project which contains files that I
have stored in a given directory, from another tool.
I have created the Project. I have imported the File System (with the
selected files from said filesystem), and started working on the files in
the project. All seemed to go well for a while, until I noticed
something.
I found that the original files that I thought I was editing were not the
files that were actually getting modified. On further investigation, I
found that the files being worked on were getting stored into a
subdirectory in my workspace directory.
When importing, I noticed the options include:
- Checkbox for "Overwriting existing receources without warning"
- Radio Button indicating "Create complete folder structure"
- Radio Button indicating "Create Selected folders only".
Should I be using the checkbox item to do what I want? That description
makes me think it is more asking to prevent me from asking about
overwriting when saving ("Do you wish to overwrite the file?" type of
question), and not about writing to the original location.
What is the proper way for me to edit files contained in a specific
directory which have not been created as part of a project?
Am I just missing a basic concept ("missing the tree in the forest") when
working with workspaces, projects, and files in Eclipse?
Should I have simply made the original directory where the files were
contained, my workspace directory maybe?
|
|
|
| Re: Using Existing File Systems [message #147280 is a reply to message #147227] |
Fri, 07 April 2006 12:01  |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
Eric Bresie wrote:
> Hey guys, I am sure this is a normal newbie question, but I wanted to ask.
>
> I have been attempting to work on a Project which contains files that I
> have stored in a given directory, from another tool.
> I have created the Project. I have imported the File System (with the
> selected files from said filesystem), and started working on the files
> in the project. All seemed to go well for a while, until I noticed
> something.
> I found that the original files that I thought I was editing were not
> the files that were actually getting modified. On further
> investigation, I found that the files being worked on were getting
> stored into a subdirectory in my workspace directory.
>
> When importing, I noticed the options include:
>
> - Checkbox for "Overwriting existing receources without warning"
> - Radio Button indicating "Create complete folder structure" - Radio
> Button indicating "Create Selected folders only".
> Should I be using the checkbox item to do what I want? That description
> makes me think it is more asking to prevent me from asking about
> overwriting when saving ("Do you wish to overwrite the file?" type of
> question), and not about writing to the original location.
>
> What is the proper way for me to edit files contained in a specific
> directory which have not been created as part of a project?
>
> Am I just missing a basic concept ("missing the tree in the forest")
> when working with workspaces, projects, and files in Eclipse?
>
> Should I have simply made the original directory where the files were
> contained, my workspace directory maybe?
>
The Import->File system wizard copies the files into an existing
project. It sounds like you want to work on the files in their original
directory. If this is the first time creating an Eclipse project for
the files, you need to use the File->New->Project wizard. If it is a
Java project, select Java Project. This will open up the New Java
Project wizard. Give the project a name and click on Create project
from existing source. Browse to the directory where the project files
are stored and select it. Eclipse will try to determine the package
structure by looking at the files in the directory and its sub
directories. Check what Eclipse comes up with to confirm it is what you
need and make any necessary changes on the Java Settings page (clicking
Next on the initial page brings it up.)
If you have previously created an Eclipse project and the directory with
your source files contains the .classpath and .project files, you can
use the File->Import->Existing project into Workspace wizard. Start the
wizard and browse to the project directory.
If you need to add the files to a project that exists in your workspace,
You need to create a link to the project directory. Select the
project and right click. Select Properties. Select Java Build Path and
click on the Source tab. Click the Add Folder button. Click Create New
Folder. Give the folder a name and click on Advanced. Click Link to
folder in file system and click on Browse. Find the folder on your
system. If you plan on sharing the project with other developers, you
may want to use the Variables button instead of Browse.
The Eclipse help has a section on structuring projects that will help
you. Go to Help->Help Contents. Select Java Development User
Guide->Getting Started->Project configuration tutorial.
|
|
|
Powered by
FUDForum. Page generated in 0.08298 seconds