| OLD | NEW |
| 1 Notes about Dart Editor workspace setup, development, build, and deploy. | 1 Notes about Dart Editor workspace setup, development, build, and deploy. |
| 2 | 2 |
| 3 ==================================== | 3 ==================================== |
| 4 Installation | 4 Installation |
| 5 ==================================== | 5 ==================================== |
| 6 | 6 |
| 7 * Install Eclipse 3.7 | 7 * Install Eclipse 3.7 |
| 8 http://eclipse.org/downloads/ | 8 http://eclipse.org/downloads/ |
| 9 | 9 |
| 10 * Install SVN support into Eclipse 3.7 | 10 * Install SVN support into Eclipse 3.7 |
| 11 Subclipse SVN tools | 11 Subclipse SVN tools |
| 12 from http://subclipse.tigris.org/update_1.6.x | 12 from http://subclipse.tigris.org/update_1.6.x |
| 13 | 13 |
| 14 * Install the depot_tools | 14 * Install the depot_tools |
| 15 http://dev.chromium.org/developers/how-tos/depottools | 15 http://dev.chromium.org/developers/how-tos/depottools |
| 16 (username is full email address) | 16 (username is full email address) |
| 17 | 17 |
| 18 ==================================== | 18 ==================================== |
| 19 Get the Source | 19 Get the Source |
| 20 ==================================== | 20 ==================================== |
| 21 | 21 |
| 22 * See http://dartlang.org to check out the Dart source. | 22 * See http://code.google.com/p/dart/wiki/GettingTheSource to check out the Dart
source. |
| 23 | 23 |
| 24 ==================================== | 24 ==================================== |
| 25 Workspace Configuration | 25 Workspace Configuration |
| 26 ==================================== | 26 ==================================== |
| 27 | 27 |
| 28 Macintosh users: Note that on the Macintosh version of Eclipse, "Preferences" | 28 Macintosh users: Note that on the Macintosh version of Eclipse, "Preferences" |
| 29 is under the "Eclipse" menu, not under "Window". | 29 is under the "Eclipse" menu, not under "Window". |
| 30 | 30 |
| 31 ------------- Dependent Plugins ----------- | 31 ------------- Dependent Plugins ----------- |
| 32 | 32 |
| 33 Install the Chrome developer tools... | 33 Install the Chrome developer tools... |
| 34 Update Site: dart/trunk/dart/third_party/chromesdk/0.3.0 | 34 Update Site: dart/third_party/chromesdk/0.3.0 |
| 35 You just need the ChromeDevTools SDK feature. | 35 You just need the ChromeDevTools SDK feature. |
| 36 | 36 |
| 37 ------------- Linked Resources ------------ | 37 ------------- Linked Resources ------------ |
| 38 | 38 |
| 39 Create a "Path Variable" in the "General > Workspace > Linked Resources" prefere
nce page | 39 Create a "Path Variable" in the "General > Workspace > Linked Resources" prefere
nce page |
| 40 called "DART_TRUNK" that points to the SVN dart/trunk/dart directory | 40 called "DART_TRUNK" that points to the SVN dart/trunk/dart directory |
| 41 that you checked out as specified in the instructions above. | 41 that you checked out as specified in the instructions above. |
| 42 | 42 |
| 43 -------------Classpath Variables ----------- | 43 -------------Classpath Variables ----------- |
| 44 | 44 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 67 Disable "Use Tabs Instead of Spaces" | 67 Disable "Use Tabs Instead of Spaces" |
| 68 Set "Maximum Line Width" to 80 | 68 Set "Maximum Line Width" to 80 |
| 69 Enable "Wrap Long Element Tags" | 69 Enable "Wrap Long Element Tags" |
| 70 | 70 |
| 71 ---------------- Spelling ----------------- | 71 ---------------- Spelling ----------------- |
| 72 | 72 |
| 73 Window->Preferences->General->Editors->Text Editors->Spelling | 73 Window->Preferences->General->Editors->Text Editors->Spelling |
| 74 Enable spell checking | 74 Enable spell checking |
| 75 Use <DART_TRUNK>/editor/docs/english.dictionary". | 75 Use <DART_TRUNK>/editor/docs/english.dictionary". |
| 76 | 76 |
| 77 ------------ Output Filtering -------------- | |
| 78 | |
| 79 <NONE> | |
| 80 | |
| 81 ----------- Code Templates ---------------- | 77 ----------- Code Templates ---------------- |
| 82 | 78 |
| 83 Window->Preferences->Java->Code Style->Code Templates | 79 Window->Preferences->Java->Code Style->Code Templates |
| 84 | 80 |
| 85 Comments->Files template should look like this: | 81 Comments->Files template should look like this: |
| 86 | 82 |
| 87 /* | 83 /* |
| 88 * Copyright (c) ${year}, the Dart project authors. | 84 * Copyright (c) ${year}, the Dart project authors. |
| 89 * | 85 * |
| 90 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 86 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 156 |
| 161 - Potential programming problems > Serializable class w/o serialVersionUID | 157 - Potential programming problems > Serializable class w/o serialVersionUID |
| 162 - Unnecessary Code > Parameter is never read | 158 - Unnecessary Code > Parameter is never read |
| 163 | 159 |
| 164 ==================================== | 160 ==================================== |
| 165 Importing the Eclipse projects | 161 Importing the Eclipse projects |
| 166 ==================================== | 162 ==================================== |
| 167 | 163 |
| 168 File -> Import -> General -> Existing Projects into Workspace | 164 File -> Import -> General -> Existing Projects into Workspace |
| 169 | 165 |
| 170 Import the existing projects in <DART_TRUNK>/compiler/eclipse.workspace | |
| 171 | |
| 172 Import the existing projects in <DART_TRUNK>/editor | 166 Import the existing projects in <DART_TRUNK>/editor |
| 173 (including the "docs" project containing this README.txt file) | 167 (including the "docs" project containing this README.txt file) |
| 174 | 168 |
| 175 Import the project in <DART_TRUNK>/third_party/closure_compiler_src | 169 Import the project in <DART_TRUNK>/third_party/closure_compiler_src |
| 176 | 170 |
| 177 ==================================== | 171 ==================================== |
| 178 Building Closure | 172 Building Closure |
| 179 ==================================== | 173 ==================================== |
| 180 | 174 |
| 181 We now build the closure compiler from source. To do this, right click on closur
e-compiler/build.xml | 175 We require the closure compiler to build dartc. To build it, right click on clos
ure-compiler/build.xml |
| 182 and choose Run As > Ant Build (the default option, not the Ant Build... option).
This will create | 176 and choose Run As > Ant Build (the default option, not the Ant Build... option).
This will create |
| 183 the closure-compiler/build/compiler.jar library, which will be picked up by the | 177 the closure-compiler/build/compiler.jar library, which will be picked up by the |
| 184 com.google.dart.compiler.js project. | 178 com.google.dart.compiler.js project. |
| 185 | 179 |
| 186 Refresh the closure-compiler project for Eclipse to see the new files. | 180 Alternatively, run ant from the third_party/closure_compiler directory. |
| 181 |
| 182 Refresh the closure-compiler and com.google.dart.compiler.js projects for Eclips
e to see the new |
| 183 files. |
| 187 | 184 |
| 188 ==================================== | 185 ==================================== |
| 189 Launching the Plugin | 186 Launching the Dart Editor |
| 190 ==================================== | 187 ==================================== |
| 191 | 188 |
| 192 Once your projects have been imported, go to the Package Explorer and | 189 Once your projects have been imported, go to the Package Explorer and open the |
| 193 right-click on the "com.google.dart.tools.ui" project. Go to "Run As", and selec
t | 190 dart_feature.product file in the com.google.dart.tools.deploy project. Under the |
| 194 "Eclipse Application". Another instance of Eclipse should launch, running the Da
rt | 191 Testing section, click on the 'Launch an Eclipse Application' link. Another inst
ance of |
| 195 plugin! | 192 Eclipse should launch, running the Dart Editor! |
| 196 | 193 |
| 197 ==================================== | 194 ==================================== |
| 198 Building Dart Editor | 195 Building the Dart Editor |
| 199 ==================================== | 196 ==================================== |
| 200 | 197 |
| 201 Run the build_rcp.xml ant script in the com.google.dart.tools.deploy.feature_rel
eng project. | 198 See the dart/editor/build/README.txt file for build instructions. |
| OLD | NEW |