andyMatthews.net

jQuery and AIR: Importing an AIR project into an existing workspace

video camera icon Now that AIR tutorials and articles are becoming more and more widespread, and bloggers such as myself are offering complete projects which can be downloaded, I thought it would be a good idea to quickly review the proper way to take an existing project created in Aptana and import it into your Eclipse workspace. Sure you could create a new project on your own, then manually import the files...but that's too much work. Let Aptana work for you. As always, you can watch the video to the right for a quick reference. We'll be importing the project created during my jQuery and AIR: Writing content to the file system via drag and drop blog post. If you're using this project, go ahead and download that, then come back and we'll get started.

  1. Start by opening Aptana, and making sure the Aptana perspective is currently active.
  2. Right click anywhere in the open area in the projects view, select Import. Alternately you can select File > Import.
  3. In the Import dialog box, begin typing "Existing", and you'll see that Aptana filters out the extraneous options leaving "Existing Projects into Workspace". Select that option, then click "Next".
  4. On the next screen click "Browse" next to "Select Root Directory". Browse to the location of your project. Click okay, and, if everything is going right, you should see the name of the selected project show up under the Projects section.
  5. Make sure that the selected project is checked, uncheck "Copy projects into workspace" (unless you WANT to do that), then click Finish.
  6. Your project should now be installed and ready to run.

A note. At the time of writing this article, Aptana is pushing Jaxer, their server side JavaScript server. I have yet to investigate, but Aptana has seen fit to install Jaxer files into every imported project. If these files make their way into this newly created project, feel free to delete them outright. The folder's name is "jaxer_bin".

Also, while this post is directed at importing an AIR project, this method should work for any Eclipse project that has a .project file.