Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Nebula/Contributions/Setup IDE"
(→Setup Your IDE) |
|||
Line 1: | Line 1: | ||
== Setup Your IDE== | == Setup Your IDE== | ||
− | To provide patches to Nebula, create an Eclipse account, get your Gerrit password and push your changes to the Gerrit git repo. | + | To provide patches to Nebula, create an Eclipse account, get your Gerrit password and push your changes to the Gerrit git repo. To setup your IDE there are three possibilities. Using Oomph is the easiest for newcomers. |
+ | |||
+ | # Use Oomph | ||
+ | # Import our PSF file | ||
+ | # Setup manually | ||
=== Create an Eclipse Account === | === Create an Eclipse Account === | ||
Line 10: | Line 14: | ||
[https://git.eclipse.org/r/#/settings/http-password Get your Gerrit password] | [https://git.eclipse.org/r/#/settings/http-password Get your Gerrit password] | ||
− | + | === 1. Import with Oomph === | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | === Import with Oomph === | + | |
Use the Eclipse installer or, if you have already installed Oomph, use the Oomph import wizard and select Nebula. If Nebula is not in the list, add this setup file. | Use the Eclipse installer or, if you have already installed Oomph, use the Oomph import wizard and select Nebula. If Nebula is not in the list, add this setup file. | ||
<br/> | <br/> | ||
[https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/oomph.setup https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/oomph.setup] | [https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/oomph.setup https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/oomph.setup] | ||
− | === | + | === 2. Import our psf file === |
Copy and paste [http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/releng/org.eclipse.nebula.feature/Nebula_All.psf this file] into a file.psf inside an eclipse project select it and use "Import Project Set..." from the context menu. | Copy and paste [http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/releng/org.eclipse.nebula.feature/Nebula_All.psf this file] into a file.psf inside an eclipse project select it and use "Import Project Set..." from the context menu. | ||
(http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/releng/org.eclipse.nebula.feature/Nebula_All.psf) | (http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/releng/org.eclipse.nebula.feature/Nebula_All.psf) | ||
− | === | + | === 3. clone the GIT repo === |
or clone the following repo https://'''''yourname'''''@git.eclipse.org/r/nebula/org.eclipse.nebula.git | or clone the following repo https://'''''yourname'''''@git.eclipse.org/r/nebula/org.eclipse.nebula.git | ||
C:\>git clone https://'''''yourname'''''@git.eclipse.org/r/nebula/org.eclipse.nebula.git | C:\>git clone https://'''''yourname'''''@git.eclipse.org/r/nebula/org.eclipse.nebula.git | ||
− | === Change the push URI === | + | ==== Change the push URI ==== |
Change the push URI to https://'''''yourname'''''@git.eclipse.org/r/<big>'''''p'''''</big>/nebula/org.eclipse.nebula.git | Change the push URI to https://'''''yourname'''''@git.eclipse.org/r/<big>'''''p'''''</big>/nebula/org.eclipse.nebula.git | ||
Line 37: | Line 36: | ||
C:\org.eclipse.nebula>git remote set-url --push origin https://'''''yourname'''''@git.eclipse.org/r/p/nebula/org.eclipse.nebula.git | C:\org.eclipse.nebula>git remote set-url --push origin https://'''''yourname'''''@git.eclipse.org/r/p/nebula/org.eclipse.nebula.git | ||
− | === Start Eclipse === | + | ==== Start Eclipse ==== |
Open your Eclipse IDE and open the Git perspective | Open your Eclipse IDE and open the Git perspective | ||
− | === Add local Git repo === | + | ==== Add local Git repo ==== |
Add a local Git repository and find your freshly created repo | Add a local Git repository and find your freshly created repo | ||
− | === Configure Gerrit === | + | ==== Configure Gerrit ==== |
Open Remotes/origin and open the context menu. Select Gerrit Configuration. | Open Remotes/origin and open the context menu. Select Gerrit Configuration. | ||
Line 55: | Line 54: | ||
[[Image:nebula_ide2.png]] | [[Image:nebula_ide2.png]] | ||
− | === Import Projects === | + | ==== Import Projects ==== |
If you did not use the psf file you are you are ready to import the relevant projects. Import all widgets from the widgets directory and import the first two example projects from the example directory. | If you did not use the psf file you are you are ready to import the relevant projects. Import all widgets from the widgets directory and import the first two example projects from the example directory. | ||
[[Image:nebula_proj_1.png]] | [[Image:nebula_proj_1.png]] | ||
− | === Run Eclipse === | + | ==== Run Eclipse ==== |
Create a new run configuration and press Run | Create a new run configuration and press Run | ||
[[Image:nebula_ide3.png]] | [[Image:nebula_ide3.png]] | ||
− | === Open Nebula Perspective === | + | ==== Open Nebula Perspective ==== |
Open the Nebula perspective and find the example view for your widget and test your changes. You can also test your changes by using the widget in a snippet or in your own project. | Open the Nebula perspective and find the example view for your widget and test your changes. You can also test your changes by using the widget in a snippet or in your own project. |
Revision as of 04:17, 21 September 2015
Contents
Setup Your IDE
To provide patches to Nebula, create an Eclipse account, get your Gerrit password and push your changes to the Gerrit git repo. To setup your IDE there are three possibilities. Using Oomph is the easiest for newcomers.
- Use Oomph
- Import our PSF file
- Setup manually
Create an Eclipse Account
Create an Eclipse Account (or use your existing one)
Sign the CLA
Get your Gerrit password
1. Import with Oomph
Use the Eclipse installer or, if you have already installed Oomph, use the Oomph import wizard and select Nebula. If Nebula is not in the list, add this setup file.
https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/oomph.setup
2. Import our psf file
Copy and paste this file into a file.psf inside an eclipse project select it and use "Import Project Set..." from the context menu.
3. clone the GIT repo
or clone the following repo https://yourname@git.eclipse.org/r/nebula/org.eclipse.nebula.git
C:\>git clone https://yourname@git.eclipse.org/r/nebula/org.eclipse.nebula.git
Change the push URI
Change the push URI to https://yourname@git.eclipse.org/r/p/nebula/org.eclipse.nebula.git
C:\>cd org.eclipse.nebula C:\org.eclipse.nebula>git remote set-url --push origin https://yourname@git.eclipse.org/r/p/nebula/org.eclipse.nebula.git
Start Eclipse
Open your Eclipse IDE and open the Git perspective
Add local Git repo
Add a local Git repository and find your freshly created repo
Configure Gerrit
Open Remotes/origin and open the context menu. Select Gerrit Configuration.
Review and press Finish
Import Projects
If you did not use the psf file you are you are ready to import the relevant projects. Import all widgets from the widgets directory and import the first two example projects from the example directory.
Run Eclipse
Create a new run configuration and press Run
Open Nebula Perspective
Open the Nebula perspective and find the example view for your widget and test your changes. You can also test your changes by using the widget in a snippet or in your own project.