Rev 641 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 15 | arune | 1 | <html> |
| 2 | |||
| 3 | <head> |
||
| 4 | <title>Using IntelliJ IDEA for Macbeth development</title> |
||
| 5 | <link rel="StyleSheet" href="doc.style.css" type="Text/CSS"> |
||
| 6 | </head> |
||
| 7 | |||
| 8 | <body> |
||
| 9 | |||
| 10 | <h1>Using IntelliJ IDEA for Macbeth development</h1> |
||
| 11 | |||
| 12 | <h2>Installation</h2> |
||
| 13 | Download the most recent IntelliJ IDEA upgrade from <a href="http://www.intellij.com/download/idea/freeUpgrade"> |
||
| 14 | http://www.intellij.com/download/idea/freeUpgrade</a>. This is the full version, but it does of course require |
||
| 15 | that you have a serial number, so keep your serial number ready the first time you start IDEA. The installation |
||
| 16 | is very straight forward. Nothing particular to keep in mind there. |
||
| 17 | |||
| 18 | <h2>Basic Configuration</h2> |
||
| 19 | <p>Now you need to configure IDEA to use the Java SDK you have installed on your system (if you don't have |
||
| 20 | the SDK installed yet, just visit <a href="http://java.sun.com/">http://java.sun.com/</a> to download and |
||
| 21 | install the latest J2SE SDK before going on!)</p> |
||
| 22 | <p>Open the Macbeth project file with IDEA. Then choose <span class="mark_red">File->Project Properties</span>. |
||
| 23 | Go to the Paths-dialog and locate the drop-down list called <span class="mark_red">"Target JDK"</span>. This is |
||
| 24 | a list of the JDKs you have installed, and to get your installed Java SDK to show up here, you need to press the |
||
| 25 | <span class="mark_red">"..."-button</span> and then press the <span class="mark_red">"+"-button</span> in the |
||
| 26 | dialog box that shows up. Next, <span class="mark_red">locate your J2SDK-directory</span> (typically "C:\j2sdk1.4.2_03") |
||
| 27 | and press OK until you're back to the Project Properties dialog. Now, in the drop-down list, choose the JDK you just |
||
| 28 | configured and press OK.</p> |
||
| 29 | <p>IntelliJ IDEA is now ready for Macbeth development! You should be able to compile everything without |
||
| 30 | any errors.</p> |
||
| 31 | |||
| 32 | <h2>Code style</h2> |
||
| 33 | <p>If you plan to participate in Macbeth development, you should make sure you follow the code style |
||
| 34 | guidelines. Since IDEA does quite a lot of work for you while you're writing code, you might want to |
||
| 35 | make sure IDEA follows these guidelines as well. As a bare minimum, make sure that at least the settings |
||
| 36 | shown in the dialog below are set equally in your configuration (This is the <span class="mark_red"> |
||
| 37 | Options->IDE Settings</span> dialog)</p> |
||
| 38 | <center><img src="http://jm.csbnet.se/macbeth/images/IDEA.codestyle.indent.png" width="742" height="674" alt="code style"></center> |
||
| 39 | |||
| 40 | </body> |
||
| 41 | </html> |