custom lang support - screen shots fixed
@ -75,11 +75,11 @@ public class Test {
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
If we type an undefined property name, it will annotate the code with a error.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](psi_helpers_and_utilities.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -132,7 +132,7 @@ public class SimpleLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSe
|
||||
|
||||
### 6. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](formatter.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -54,7 +54,7 @@ public class SimpleCommenter implements Commenter {
|
||||
|
||||
### 3. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](code_style_settings.html)
|
||||
[Top](cls_support.html)
|
||||
|
@ -44,7 +44,7 @@ public class SimpleCompletionContributor extends CompletionContributor {
|
||||
|
||||
### 3. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](line_marker_provider.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -89,7 +89,7 @@ public class SimpleFindUsagesProvider implements FindUsagesProvider {
|
||||
|
||||
Now we can call *Find Usages* for any property with a reference.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](reference_contributor.html)
|
||||
[Top](custom_language_support.html)
|
||||
|
@ -82,7 +82,7 @@ public class SimpleFoldingBuilder extends FoldingBuilderEx {
|
||||
|
||||
Now when we open a Java file, it shows the property's value instead of the key.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](find_usages_provider.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -120,7 +120,7 @@ public class SimpleFormattingModelBuilder implements FormattingModelBuilder {
|
||||
|
||||
Now add some extra spaces and reformat the code via *⌥⌘L* shortcut.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](structure_view_factory.html)
|
||||
[Top](custom_language_support.html)
|
||||
|
@ -90,7 +90,7 @@ public class SimpleChooseByNameContributor implements ChooseByNameContributor {
|
||||
|
||||
Now we can navigate to a property definition by name pattern via *⌥⌘⇧N* shortcut.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](folding_builder.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -81,7 +81,7 @@ Now when the grammar is defined we can generate a parser with PSI classes via *G
|
||||
The Grammar-Kit will generate a parser and PSI elements in *gen* folder.
|
||||
Mark this folder as a source root and make sure everything is compiled without errors.
|
||||
|
||||

|
||||

|
||||
|
||||
-------
|
||||
[Previous](language_and_filetype.html)
|
||||
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 176 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
@ -110,7 +110,7 @@ public class SimpleFileTypeFactory extends FileTypeFactory{
|
||||
Create a file with extension *.simple*
|
||||
and IntelliJ IDEA will automatically associate it with our language.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](cls_prerequisites.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -66,7 +66,7 @@ The Grammar-Kit plugin uses JFlex lexer generation.
|
||||
If you run it for the first time it will offer you to choose a folder to download the JFlex library and skeleton to.
|
||||
Choose the project root directory.
|
||||
|
||||

|
||||

|
||||
|
||||
After that the IDE will generates two classes:
|
||||
*com.simpleplugin.SimpleLexer* and *com.simpleplugin.SimpleLexerAdapter*.
|
||||
@ -228,7 +228,7 @@ tab : \u0009
|
||||
|
||||
Now open the *PsiViewer* tool window and check how the lexer brake the content of the file into tokens, and the parser parsed the tokens into PSI elements.
|
||||
|
||||

|
||||

|
||||
|
||||
----------------
|
||||
|
||||
|
@ -105,7 +105,7 @@ public class MyLineMarkerProvider implements LineMarkerProvider {
|
||||
|
||||
Now you see the icon on the gutter and can navigate to the property definition.
|
||||
|
||||

|
||||

|
||||
|
||||
--------------
|
||||
|
||||
|
@ -33,15 +33,15 @@ To attach the Community Edition source files to the SDK, open the Sourcepath tab
|
||||
IntelliJ IDEA will scan the directory for roots and offer the list of roots to add, with everything checked by default.
|
||||
Accept the list of roots by pressing OK.
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
### 5. Create a project
|
||||
|
||||
Create an IntelliJ IDEA Plugin project and specify IntelliJ IDEA Plugin SDK.
|
||||
|
||||

|
||||

|
||||
|
||||
[Top](cls_tutorial.html)
|
||||
[Next](language_and_filetype.md)
|
||||
|
@ -173,7 +173,7 @@ public class SimpleAnnotator implements Annotator {
|
||||
|
||||
Now let's try to use a property which is not defined yet.
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](commenter.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -206,11 +206,11 @@ public class SimpleReferenceContributor extends PsiReferenceContributor {
|
||||
|
||||
As you see the IDE now resolves the property and provides completion.
|
||||
|
||||

|
||||

|
||||
|
||||
*Rename* refactoring available from definition and usages.
|
||||
|
||||

|
||||

|
||||
|
||||
### 9. Define a refactoring support provider
|
||||
|
||||
@ -239,7 +239,7 @@ public class SimpleRefactoringSupportProvider extends RefactoringSupportProvider
|
||||
|
||||
### 11. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](completion_contributor.html)
|
||||
[Top](cls_tutorial.html)
|
||||
|
@ -156,7 +156,7 @@ public class SimpleStructureViewElement implements StructureViewTreeElement, Sor
|
||||
|
||||
### 5. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
[Previous](go_to_symbol_contributor.html)
|
||||
[Top](custom_language_support.html)
|
||||
|
@ -95,7 +95,7 @@ public class SimpleSyntaxHighlighterFactory extends SyntaxHighlighterFactory {
|
||||
|
||||
### 4. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
### 5. Define a color settings page
|
||||
|
||||
@ -183,7 +183,7 @@ public class SimpleColorSettingsPage implements ColorSettingsPage {
|
||||
|
||||
### 7. Run the project
|
||||
|
||||

|
||||

|
||||
|
||||
-----------
|
||||
|
||||
|