function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Preferred/Proper Way to Import Third Party Code into IDE

I'm using the IDE and trying to integrate other people's code from code share. Specifically, I'm trying to integrate Google Maps/Google Earth functionality by using Ron Hess's project (force-google-earth found at:
1. Is the preferred methodology to create a new folder under /src to add these source files?
2. Is it better to create an application? (ex) App Name = GoogleEarth, then copy all source files into the application)?
3. I tried to add the files in systematically into the respective source folders (ex) triggers/geocode.trigger from GoogleEarth project into my project) , but seem to get compile errors. Is there a specific order for how files should be added/deployed to ide to prevent compile errors?
If my question(s) are not clear, please let me know and I can try to provide additional details. Thanks in advance.
The best way to import a Code Share project like Ron Hess's Google Earth integration into the IDE is to create the project from the repository and then connect it to your Salesforce organization:

1. Start Eclipse having both the IDE and the Subclipse plug-in installed.
2. Choose New > Project... > SVN > Checkout Projects from SVN.
3. Create a new repository location pointing to the Subversion project (in this case, on Google Code).
4. Check out the project into your workspace at the project name level ("src" should be a top level folder beneath your project; you should not have a "Google Earth" folder inside your project).
5. Once the project has been created, right-click on the project root and select > Add Nature. Specify your credentials.
6. Right-click on the "src" folder and choose > Save to Server to push all the source files at once into your Salesforce organization.

For more detailed instructions, see the platform tutorial called "Downloading and Deploying an App using Code Share" in the Eclipse online help.

Also, since you asked, the IDE does not support user-defined project folders, and creating folders beneath "src" may prevent the IDE from properly synchronizing with the server, or it may just ignore these folders.  The only place where non-standard folders are allowed is for metadata types that use folders on the server, such as Reports.  In that case, the folder itself is also part of your Salesforce organization's metadata.

Jon Product Manager