-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added quick start on creating new and importing existing project.
- Loading branch information
Virtlink
committed
Mar 4, 2016
1 parent
57226a9
commit eb71f59
Showing
27 changed files
with
136 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Building a language specification | ||
|
||
```eval_rst | ||
.. todo:: This part of the documentation has not been written yet. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Building a project | ||
|
||
```eval_rst | ||
.. todo:: This part of the documentation has not been written yet. | ||
``` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Importing an existing language specification | ||
|
||
```eval_rst | ||
.. todo:: This part of the documentation has not been written yet. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Importing an existing project | ||
Follow this quick start guide to change an existing Java project such that you | ||
can use Metaborg languages in it. | ||
|
||
1. Open the project in IntelliJ IDEA. | ||
|
||
2. Go to the _Project Structure_ dialog, either through the _File_ → | ||
_Project Structure..._ menu item, or by pressing <kbd>Ctrl</kbd>+ | ||
<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd>. | ||
|
||
3. Go to the _Facets_ tab. | ||
|
||
4. Click the ![Plus](button_plus.png) button and select _Metaborg_ from the drop-down menu. | ||
|
||
!["Project Structure" dialog](projectstructure_addmetaborgfacet.png) | ||
|
||
5. Select the module to add the facet to, and click _OK_. | ||
|
||
6. In the _Modules_ tab, select the module. | ||
|
||
7. Go to the _Dependencies_ tab. | ||
|
||
8. Select the _Metaborg SDK_ as the module's SDK. | ||
|
||
![Select the "Metaborg SDK"](projectstructure_setmetaborgsdk.png) | ||
|
||
```eval_rst | ||
.. include:: module-sdk.txt | ||
``` | ||
|
||
5. Click _OK_ to apply the changes. | ||
|
||
The Java project will have the _Metaborg facet_, indicating that the | ||
project uses Metaborg languages. It will also have a `metaborg.yaml` file, | ||
which specifies the language dependencies of the project. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
========================= | ||
IntelliJ IDEA Environment | ||
========================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
new-project | ||
existing-project | ||
build-project | ||
new-language-spec | ||
existing-language-spec | ||
build-language-spec | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. note:: If the *Module SDK* displays *<None>* and you can't select the | ||
Metaborg SDK, then you need to add it first. | ||
|
||
1. Click the *New...* button next to the *Module SDK* field. | ||
|
||
2. Select *Metaborg SDK*. | ||
|
||
.. image:: projectstructure_newsdkmenu.png | ||
|
||
3. You may get a warning if you have no Java JDK configured. Click *OK* | ||
and configure the JDK's home location. The suggested home | ||
directory is usually correct. Click *OK*. | ||
|
||
4. Select a home directory for the Metaborg SDK. The default is the | ||
Spoofax plugin's ``lib/`` folder, which is sufficient as it contains | ||
all the core dependencies. | ||
|
||
5. Click *OK*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Creating a new language specification | ||
|
||
```eval_rst | ||
.. todo:: This part of the documentation has not been written yet. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. note:: If the *Project SDK* displays *<None>* and you can't select the | ||
Metaborg SDK, then you need to add it first. | ||
|
||
1. Click the *New...* button next to the *Project SDK* field. | ||
|
||
2. Select *Metaborg SDK*. | ||
|
||
.. image:: newprojectform_newsdkmenu_small.png | ||
|
||
3. You may get a warning if you have no Java JDK configured. Click *OK* | ||
and configure the JDK's home location. The suggested home | ||
directory is usually correct. Click *OK*. | ||
|
||
4. Select a home directory for the Metaborg SDK. The default is the | ||
Spoofax plugin's ``lib/`` folder, which is sufficient as it contains | ||
all the core dependencies. | ||
|
||
5. Click *OK*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Creating a new project | ||
Follow this quick start guide to create a new Java project in which you can use | ||
Metaborg languages. | ||
|
||
1. Choose _Create New Project_ from the welcome dialog, or the _File_ → _New_ → | ||
_Project..._ menu item, to open the _New Project_ dialog. | ||
|
||
2. Select the _Java_ project type. | ||
|
||
3. Check the _Metaborg_ framework. | ||
|
||
!["New Project" dialog](newprojectform_checkmetaborgframework.png) | ||
|
||
4. Select the _Metaborg SDK_ as the project's SDK. | ||
|
||
![Select the "Metaborg SDK"](newprojectform_selectmetaborgsdk_small.png) | ||
|
||
```eval_rst | ||
.. include:: new-project-sdk.txt | ||
``` | ||
|
||
5. Click _Next_. | ||
|
||
6. Pick a project name and location, and click _Finish_. | ||
|
||
![Pick a project name](newprojectform_javaprojectname.png) | ||
|
||
The created Java project will have the _Metaborg facet_, indicating that the | ||
project uses Metaborg languages. It will also have a `metaborg.yaml` file, which | ||
specifies the language dependencies of the project. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.2 KB
source/langdev/manual/env/intellij/newprojectform_checkmetaborgframework.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.6 KB
source/langdev/manual/env/intellij/newprojectform_javaprojectname.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
source/langdev/manual/env/intellij/newprojectform_newsdkmenu_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.7 KB
source/langdev/manual/env/intellij/newprojectform_selectmetaborgsdk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.1 KB
source/langdev/manual/env/intellij/newprojectform_selectmetaborgsdk_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.1 KB
source/langdev/manual/env/intellij/projectstructure_addmetaborgfacet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.9 KB
source/langdev/manual/env/intellij/projectstructure_setmetaborgsdk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ Language Development Manual | |
:maxdepth: 2 | ||
|
||
env/eclipse | ||
env/intellij | ||
env/intellij/index | ||
project | ||
config |