|
|
# Create Logic
|
|
|
# Create Your simple plugin.
|
|
|
1. Create class `MyGenerator` in `org.xtext.example.mydsl.cli`
|
|
|
|
|
|
```Java
|
... | ... | @@ -135,3 +135,15 @@ public class Application implements IApplication { |
|
|
6. Add following imported packages:
|
|
|
- com.google.inject,
|
|
|
|
|
|
## Configure product
|
|
|
|
|
|
1. Open org.xtext.example.mydsl.product
|
|
|
2. Chose Contents tab
|
|
|
3. Add `org.xtext.example.mydsl.cli`
|
|
|
4. Click add requiered.
|
|
|
5. Add javax.annotations plugin if it is not in the list.
|
|
|
6. Select `Configuration` tab
|
|
|
7. Click `Add Recommended` in `Start Levels` menu
|
|
|
|
|
|
|
|
|
Run -Dmaven.repo.local=.m2/repository package |