-
Notifications
You must be signed in to change notification settings - Fork 168
Getting Started
If you are new to Git and GitHub, you might consider completing this interactive tutorial or this guide from GitHub.
If you are new to Eclipse RCP and RAP development, you might consider purchasing a copy of Eclipse Plug-ins 3rd Edition.
We are using Eclipse Mars 4.5 as our target platform. As long as we are not using any special features, we should be able to easily support all Eclipse 4.x versions. We are no longer able to support the older Eclipse 3.x versions. Eventually, the goal is to migrate completely to the E4 Platform.
You should download the Eclipse IDE for RCP and RAP Developers from http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/mars2.
Regardless of which version of Eclipse you use, ensure that you are building with Java 8.
The Force.com IDE uses Tycho as its build system. Tycho is maven-centric. Unfortunately, Eclipse has some issues with certain lifecycles in Maven. To make those lifecycles work, we need to install some connectors that adapt them.
- In Eclipse, navigate to Preferences > Maven > Discovery.
- Click on the "Open Catalog" button.
- Search for "Tycho" and select it.
- Follow the installation instructions and, when prompted, restart Eclipse.
- Clone this repository.
- Create a new workspace for working with the Force.com IDE. This ensures that you can set up a new Target Platform for the plug-ins and not interfere with your other projects.
- In Eclipse, choose File > Import > General > Existing Projects into Workspace. Import the projects from your cloned Git repository.
Select all of the projects from this ide.core repository. These are the plug-ins that power the Force.com IDE. If you are an internal committer, you should have access to other repositories such as ide.test, ide.build, etc.
This step ensures that you are only referencing plug-ins and features that are available in Eclipse 4.5 (and not something that's only available in a later version of Eclipse). For more information see PDE/Target Definition.
- Open the file com.salesforce.ide.targetdefinition.external.target in Eclipse.
- Wait patiently for the list of plug-ins and features to refresh. You must let this step complete before you proceed. You can monitor the progress in the bottom right corner of your screen.
- Once list has finished refreshing, click the Set as Target Platform link in the upper right corner of the editor (see screenshot below). This will import the necessary prerequisite plug-ins for you. This takes about 5 minutes.
- At this point, the workspace will build successfully, albeit with many warnings. You might notice that we are importing some plug-ins (such as SWTBot) that are not directly referenced from ide.core. That's correct. These are the plug-ins that are required for the tests in the other projects.

- In Eclipse, choose Run > Debug Configurations...
- You should see the ForceComIDE launch configuration (see screenshot below).
- Launch the IDE in debug more.

- Ensure that you have Maven 3 installed.
- Open a terminal.
- In the directory where you cloned ide.core, issue
mvn clean package -Dexternal=true. The first time you do this, it will take a long time (around 20 minutes), where Maven attempts to download all the required packages. - After the previous step completes, you have an installable set of plug-ins at com.salesforce.ide.repository.external/target/repository
Here is a screencast that illustrates the steps:
