Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add Existing Files / Folders to Eclipse

Tags:

eclipse

I have a folder structure like this in eclipse for my project,

Application
-- assets
   -- www
      -- phonegap.js
-- res
   -- xml
      -- phonegap.xml

The problem is that the phonegap.js file has been copied onto disk, but is not in the project. Also the xml folder has been copied onto disk but not in the project.

How can I import these into the project? In VS you can just go 'Add -> Existing Item'

I tried to 'Import -> General -> File System' but this seems to add a link to my file / folder as though it is not in the project.

like image 986
peter Avatar asked Jan 19 '12 21:01

peter


2 Answers

I see. It is as simple as selecting 'File -> Refresh' and they are added.

http://www.velocityreviews.com/forums/t259737-eclipse-how-to-add-file-to-project.html

like image 67
peter Avatar answered Oct 19 '22 05:10

peter


To import an external file in the project you can drag the file from the filesystem to the package explorer view of eclipse, then you will be asked to choose if copy the file into the project or just link the file ...

like image 25
aleroot Avatar answered Oct 19 '22 04:10

aleroot