Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.

Commit

Permalink
DeveloperGuide: Migrate setup instructions to IntelliJ
Browse files Browse the repository at this point in the history
We are no longer using Eclipse as our development environment.

The instructions in the developer guide are outdated.

Let's migrate the setup instructions to IntelliJ.
  • Loading branch information
yamgent committed Aug 16, 2017
1 parent 735daca commit 1ae10bd
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions doc/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,32 @@

#### Prerequisites

1. **JDK 8** or later
2. **Eclipse** IDE
3. **e(fx)clipse** plugin for Eclipse (Do the steps 2 onwards given in
[this page](http://www.eclipse.org/efxclipse/install.html#for-the-ambitious))


#### Importing the project into Eclipse

0. Fork this repo, and clone the fork to your computer
1. Open Eclipse (Note: Ensure you have installed the **e(fx)clipse plugin** as given in the prerequisites above)
2. Click `File` > `Import`
3. Click `General` > `Existing Projects into Workspace` > `Next`
4. Click `Browse`, then locate the project's directory
5. Click `Finish`
* JDK 8 or later
* IntelliJ IDE

#### Importing the project into IntelliJ

1. Open IntelliJ (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project dialog first)
2. Set up the correct JDK version
1. Click `Configure` > `Project Defaults` > `Project Structure`
2. If JDK 8 is listed in the drop down, select it. If it is not, click `New...` and select the directory where you installed JDK 8.
3. Click `OK`.
3. Click `Import Project`
4. Locate the project directory and click `OK`
5. Select `Create project from existing sources` and click `Next`
6. Rename the project if you want. Click `Next`
7. Ensure that your `\src` and `\test\java` folder is checked. Keep clicking `Next`
8. Click `Finish`
9. Add JUnit 4 to classpath
1. Open any test file in `\test\java` and place your cursor over any `@Test` highlighted in red
2. Press <kbd>ALT</kbd>+<kbd>ENTER</kbd> and select `Add 'JUnit4' to classpath`
3. Select `Use 'JUnit4' from IntelliJ IDEA distribution` and click `OK`
10. Set the working directory of tests to the project directory
1. Ensure that you have run all the tests cases (if not, right-click the `test` folder, and click `Run 'All Tests'`)
2. Go to `Run` -> `Edit Configurations...`
3. On the list at the left, ensure that `All in test` is selected
4. Under `Configuration`, change the `Working directory` to the `addressbook-level3` folder
5. Click `OK`

## Design
<img src="images/mainClassDiagram.png"/>
Expand Down

0 comments on commit 1ae10bd

Please sign in to comment.