Developers Guide: Setting Up Your IDE - skratchdot/open-electribe-editor GitHub Wiki
Summary
This guide will show you how to compile the source code for "Open Electribe Editor" using the Eclipse IDE. It was written using Ubuntu 10.10, but the steps should be basically the same for Windows or Mac users.
STEPS
Step 1
Download Eclipse by visiting http://www.eclipse.org/downloads/. Since we make use of EMF, you will need to download the "Eclipse Modeling Components" version.
Step 2
If your download does not start automatically, choose a download mirror.
Step 3
Save the archive to your downloads folder: ~/Downloads
Step 4
Open a terminal window by using the following path in the menubar:
Applications->Accessories->Terminal
Now we'll switch to a superuser by entering the following command in the terminal (you will have to enter your root password afterwards):
sudo -s
Now change to the directory where we downloaded Eclipse to. In the terminal type the following command:
cd ~/Downloads
Now extract the Eclipse download to the /opt folder by entering the following command in the terminal:
tar -xvf eclipse-modeling-helios-SR2-incubation-linux-gtk.tar.gz && mv eclipse /opt
Change to the newly created Eclipse directory by entering:
cd /opt/eclipse
Now we can exit the terminal by entering:
exit
Step 5
Now right-click on the Desktop and select "Create Launcher".
Fill the following fields:
Type: Application
Name: Eclipse EMF 3.6
Command: /opt/eclipse/eclipse
Comment: Leave empty
(optional): click the icon button, and choose the following icon: /opt/eclipse/icon.xpm
Step 6
Now double-click on the desktop launcher you just created.
Step 7
When asked for a workspace, you can leave the default, and click OK: /home/[username]/workspace
Step 8
Now we can install eGit (http://download.eclipse.org/egit/), by adding a new update site in Eclipse:
a) In Eclipse, open the "Install New Software" dialog: "Help"->"Install New Software..."
b) When the "Install New Software" dialog opens, click the "add" button.
c) When the "Add Repository" dialog opens, enter the following information:
Name: eGit
Location: http://download.eclipse.org/egit/updates
d) Back in the "Install New Software" dialog, click the "Select All" button.
e) Click the "Next" button.
f) Click the "Next" button, and Accept the license agreement.
g) Click the "Finish" button.
Step 9
Click the "Restart Now" button.
Step 10
Now we can import the source code from GitHub:
a) "File"->"Import"->"Git"->"Projects from Git", and click "Next".
b) Click the "Clone" button.
c) Enter the following information, and click the "Next" button:
URI: https://github.com/skratchdot/open-electribe-editor.git
HOST: github.com
REPOSITORY PATH: /skratchdot/open-electribe-editor.git
PROTOCOL: https
d) Make sure "master" is checked, and click the "Next" button.
e) Choose the directory "/home/[username]/open-electribe-editor", and click the "Finish" button.
f) Select the repository you just cloned, and click the "Next" button.
g) Choose "Import Existing Projects" and click "Next".
h) Click "Select All", then click "Finish".
Step 11
Close the Welcome screen to get to your workbench.
Step 12
Expand the "com.skratchdot.electribe.model.esx.editor" project.
a) Right-Click on the "OpenElectribeEditor.product.launch" file and choose: "Run As"->"OpenElectribeEditor.product"
b) An error should have occured. Now try something similar, except Right-Click on the "OpenElectribeEditor.product.launch" file and choose: "Run As"->"Run Configurations".
c) Click on the "plugins" tab.
d) Click the "Deselect All" button. Now click the "Add Required Plugins" button multiple twice.
e) Click the "Run" button. The program should compile and "Open Electribe Editor" should open up.