custom lang support - screen shots fixed

This commit is contained in:
Anna Bulenkova 2015-04-22 09:50:22 +02:00
parent e4b003dd4c
commit 3eaab83749
41 changed files with 24 additions and 24 deletions

View File

@ -75,11 +75,11 @@ public class Test {
}
```
![Annotator](img/cls_tutorial/annotator.png)
![Annotator](img/annotator.png)
If we type an undefined property name, it will annotate the code with a error.
![Unresolved property](img/cls_tutorial/unresolved_property.png)
![Unresolved property](img/unresolved_property.png)
[Previous](psi_helpers_and_utilities.html)
[Top](cls_tutorial.html)

View File

@ -132,7 +132,7 @@ public class SimpleLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSe
### 6. Run the project
![Code Style Settings](img/cls_tutorial/code_style_settings.png)
![Code Style Settings](img/code_style_settings.png)
[Previous](formatter.html)
[Top](cls_tutorial.html)

View File

@ -54,7 +54,7 @@ public class SimpleCommenter implements Commenter {
### 3. Run the project
![Commenter](img/cls_tutorial/commenter.png)
![Commenter](img/commenter.png)
[Previous](code_style_settings.html)
[Top](cls_support.html)

View File

@ -44,7 +44,7 @@ public class SimpleCompletionContributor extends CompletionContributor {
### 3. Run the project
![Completion](img/cls_tutorial/completion.png)
![Completion](img/completion.png)
[Previous](line_marker_provider.html)
[Top](cls_tutorial.html)

View File

@ -89,7 +89,7 @@ public class SimpleFindUsagesProvider implements FindUsagesProvider {
Now we can call *Find Usages* for any property with a reference.
![Find Usages](img/cls_tutorial/find_usages.png)
![Find Usages](img/find_usages.png)
[Previous](reference_contributor.html)
[Top](custom_language_support.html)

View File

@ -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.
![Folding](img/cls_tutorial/folding.png)
![Folding](img/folding.png)
[Previous](find_usages_provider.html)
[Top](cls_tutorial.html)

View File

@ -120,7 +120,7 @@ public class SimpleFormattingModelBuilder implements FormattingModelBuilder {
Now add some extra spaces and reformat the code via *⌥⌘L* shortcut.
![Formatter](img/cls_tutorial/formatter.png)
![Formatter](img/formatter.png)
[Previous](structure_view_factory.html)
[Top](custom_language_support.html)

View File

@ -90,7 +90,7 @@ public class SimpleChooseByNameContributor implements ChooseByNameContributor {
Now we can navigate to a property definition by name pattern via *⌥⌘⇧N* shortcut.
![Go To Symbol](img/cls_tutorial/go_to_symbol.png)
![Go To Symbol](img/go_to_symbol.png)
[Previous](folding_builder.html)
[Top](cls_tutorial.html)

View File

@ -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.
![Parser](img/cls_tutorial/generated_parser.png)
![Parser](img/generated_parser.png)
-------
[Previous](language_and_filetype.html)

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 176 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 164 KiB

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -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.
![File Type Factory](img/cls_tutorial/file_type_factory.png)
![File Type Factory](img/file_type_factory.png)
[Previous](cls_prerequisites.html)
[Top](cls_tutorial.html)

View File

@ -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.
![Download Flex](img/cls_tutorial/download_jflex.png)
![Download Flex](img/download_jflex.png)
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.
![PSI Elements](img/cls_tutorial/psi_elements.png)
![PSI Elements](img/psi_elements.png)
----------------

View File

@ -105,7 +105,7 @@ public class MyLineMarkerProvider implements LineMarkerProvider {
Now you see the icon on the gutter and can navigate to the property definition.
![Line Marker](img/cls_tutorial/line_marker.png)
![Line Marker](img/line_marker.png)
--------------

View File

@ -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.
![Project SDK](img/cls_tutorial/project_sdk.png)
![Project SDK](img/project_sdk.png)
![Plugins](img/cls_tutorial/plugins.png)
![Plugins](img/plugins.png)
### 5. Create a project
Create an IntelliJ IDEA Plugin project and specify IntelliJ IDEA Plugin SDK.
![New Project](img/cls_tutorial/new_project.png)
![New Project](img/new_project.png)
[Top](cls_tutorial.html)
[Next](language_and_filetype.md)

View File

@ -173,7 +173,7 @@ public class SimpleAnnotator implements Annotator {
Now let's try to use a property which is not defined yet.
![Quick Fix](img/cls_tutorial/quick_fix.png)
![Quick Fix](img/quick_fix.png)
[Previous](commenter.html)
[Top](cls_tutorial.html)

View File

@ -206,11 +206,11 @@ public class SimpleReferenceContributor extends PsiReferenceContributor {
As you see the IDE now resolves the property and provides completion.
![Reference Contributor](img/cls_tutorial/reference_contributor.png)
![Reference Contributor](img/reference_contributor.png)
*Rename* refactoring available from definition and usages.
![Rename](img/cls_tutorial/rename.png)
![Rename](img/rename.png)
### 9. Define a refactoring support provider
@ -239,7 +239,7 @@ public class SimpleRefactoringSupportProvider extends RefactoringSupportProvider
### 11. Run the project
![In Place Rename](img/cls_tutorial/in_place_rename.png)
![In Place Rename](img/in_place_rename.png)
[Previous](completion_contributor.html)
[Top](cls_tutorial.html)

View File

@ -156,7 +156,7 @@ public class SimpleStructureViewElement implements StructureViewTreeElement, Sor
### 5. Run the project
![Structure View](img/cls_tutorial/structure_view.png)
![Structure View](img/structure_view.png)
[Previous](go_to_symbol_contributor.html)
[Top](custom_language_support.html)

View File

@ -95,7 +95,7 @@ public class SimpleSyntaxHighlighterFactory extends SyntaxHighlighterFactory {
### 4. Run the project
![Syntax highlighter](img/cls_tutorial/syntax_highlighter.png)
![Syntax highlighter](img/syntax_highlighter.png)
### 5. Define a color settings page
@ -183,7 +183,7 @@ public class SimpleColorSettingsPage implements ColorSettingsPage {
### 7. Run the project
![Color Settings Page](img/cls_tutorial/color_settings_page.png)
![Color Settings Page](img/color_settings_page.png)
-----------