227 Commits

Author SHA1 Message Date
Dmitry Jemerov
0caaec2817 Update action system tutorial
Clean up structure, link from necessary places, update sample plugin
code to demonstrate best practices, fix some English
2018-03-11 21:42:15 +01:00
Vitalii Dmitriev
f0c2d8a50c Remove passing a file extension explicitly.
Hello!

In this code, the `SimpleFileType` instance passed as the first argument and the `"simple"` file extension as the second parameter.

As far as I can see in FileTypeManagerImpl:263:
```java
@Override
public void consume(@NotNull FileType fileType) {
  register(fileType, parse(fileType.getDefaultExtension()));
}
```
There is no need to declare it explicitly as it is taken by calling `SimpleFileType.#getDefaultExtension()` by default, so this parameter is redundant.

To make tutorial more simple, I suggest this removal: seeing the second parameter is a bit confusing when we're passing the same value, returned from `getDefaultExtension()`.
Since the tutorial shows the basics, not a flexibility of an API, the parameter can be removed.

Thanks!
2018-02-13 23:12:24 +03:00
Yao
77113c1a6d remove unused ModuleType/Builder#getBigIcon according to this commit a09fc34ef2 (diff-6180cd1c5f27463e1236dfdea209a49c) (#60) 2017-11-04 18:00:07 +03:00
Matt Ellis
825956dde6 Update custom language tutorial 2017-10-12 12:11:42 +01:00
Ian Lesperance
78fc8cfd63 Explicitly depend on SimpleLanguage.INSTANCE (#34)
The use of `Language.findInstance()` implicitly depended on the fact that
`SimpleLanguage.INSTANCE` was referenced at some earlier point in time. In this
case, that happens because the instantiation of `SimpleParserDefinition`
triggers the instantiation of `COMMENTS`, which relies on
`SimpleTypes.COMMENT`.

When basing one's work on this sample project, however, one may run into
issues. Specifically, the absence of a custom comment token type will mean a
failure to correctly instantiate the singleton language object. Making the
dependence on `SimpleLanguage.INSTANCE` explicit prevents that issue from
occurring.
2017-02-16 00:12:29 +03:00
Yann Cébron
c2b516af32 gradle_plugin_demo: cleanup plugin.xml 2016-12-18 19:21:49 +01:00
Ekaterina Prigara
34e74f0676 Updated code snippets in Gradle tutorial 2016-12-05 15:04:01 +01:00
Yann Cébron
d452237c40 plugin descriptors: remove obsolete idea-plugin@version attribute (IDEA-163694) 2016-11-11 17:48:01 +01:00
cheptsov
6bcf8623e5 IJSDK-203 Confusing grammar and no info on comments and whitespaces 2016-11-03 16:45:34 +01:00
cheptsov
e3943a8d71 IJSDK-203 Confusing grammar and no info on comments and whitespaces 2016-11-03 13:23:01 +01:00
Yann Cébron
780bfb2863 sample projects plugin.xml: typos 2016-11-02 21:30:36 +01:00
Yann Cébron
a86e2b4480 sample projects plugin.xml: update confluence to jetbrains.org links 2016-11-02 21:26:45 +01:00
Yann Cébron
31ee8100bc project_model demo: fix plugin name 2016-11-02 21:06:54 +01:00
Yann Cébron
972a3ccf1b project_view_pane demo: fix plugin name/description 2016-11-02 21:05:57 +01:00
cheptsov
b31ca385c9 Fixed broken tests and compilation
Rollbacked some of Breandan's changes
2016-11-02 14:42:59 +01:00
Yann Cébron
189fa4c03b IJSDK-76 Optimize screenshot file sizes 2016-10-27 10:46:40 +02:00
Breandan Considine
7d6ac1b454 Fix broken links and remove author template 2016-03-21 17:29:12 -04:00
Breandan Considine
89638a3694 Prefer wildcard imports to maximize vertical visibility in code samples
Too bad there isn't a way to filter lines with Jekyll Liquid tags
2016-03-21 16:59:17 -04:00
Breandan Considine
615676f911 Fix some platform API change 2016-03-21 16:09:23 -04:00
Breandan Considine
7b03fa6f39 Tidy up code samples and wrap at 80 chars #IJSDK-24 2016-03-21 16:08:47 -04:00
breandan
4773cbe81e Add links to example Kotlin projects for the IntelliJ Platform 2016-01-28 06:52:50 -08:00
breandan considine
e2e94dadb4 First build for GH pages 2016-01-14 19:38:06 -08:00
breandan
9c6f9f06bb Live template tutorial pt. 2 2016-01-12 00:39:50 -08:00
breandan
c1bd6fa8e6 New Live Template tutorial 2016-01-12 00:32:32 -08:00
breandan
d2f6fdd4a7 Leverage caching to speed up Docker builds
Implement technique described here: http://ilikestuffblog.com/2014/01/06/how-to-skip-bundle-install-when-deploying-a-rails-app-to-docker/
2015-12-19 03:35:55 -05:00
breandan
93bea288e3 Small fixes 2015-12-18 07:01:01 -05:00
breandan
d30c85e66c Migrate Intentions and Inspections tutorials from Confluence and minor fixes
- https://confluence.jetbrains.com/display/IDEADEV/Creation+of+Intention+Action
-https://confluence.jetbrains.com/display/IDEADEV/Inspection+of+Code+Source
2015-12-11 15:05:46 -05:00
Yann Cébron
1793463daf simple_language_plugin: SimpleReferenceContributor cleanup 2015-12-09 20:27:56 +01:00
breandan
87ee6b5c8d Add Kotlin code sample 2015-12-09 10:12:40 -05:00
breandan
583e331206 Fix simple_language_plugin tests 2015-12-05 11:47:23 -05:00
breandan
2cf2e55eb9 Update plugin code samples to use canonical project structure 2015-12-05 08:56:10 -05:00
breandan
904dbd472c Switch IJSDK to Community and fix typo in tree_structure_provider 2015-12-04 05:52:16 -05:00
breandan
74a64dbc58 Unzipped MaxOpenedProjects and added Gradle module 2015-12-03 17:21:16 -05:00
breandan
459c3d52a4 Fix compiler error 2015-12-03 16:41:31 -05:00
breandan
a7578232fc Remove empty project 2015-12-03 16:34:46 -05:00
breandan
aeb55b1a27 Share run configurations and inherit the project output path 2015-12-03 16:23:33 -05:00
breandan
0bfab58cc8 Add code_sample projects as sub-modules inside intellij-sdk-docs 2015-12-03 15:28:36 -05:00
breandan
92f31335c7 Move *.png assets to resources/ 2015-12-02 12:44:49 -05:00
breandan
26b5695c8b Add missing files from IJSDK-103 2015-12-02 12:32:13 -05:00
breandan
89c331076b Migrate tool window sample, fixes IJSDK-103
Migrate "Creation of Tool Windows" (https://confluence.jetbrains.com/display/IDEADEV/Creation+of+Tool+Windows) and associated code sample (http://git.jetbrains.org/?p=idea/community.git;a=commit;h=cca55289efa57e969f90c12a064dde3f388adaa1) to the SDK docs.
2015-12-02 01:07:44 -05:00
breandan
9b3da17416 Add preliminary Gradle build system tutorial. 2015-11-25 10:59:04 -05:00
Vladimir Schneider
77a019842c change FindUsages getWordScanner not to be static.
If it is static then there are multi-threading issues. When indexing multiple threads are running and overwriting the lexer state that the word scanner uses.

I copied the SimplePlugin find usages class and spent hours chasing index out range bugs. I also noticed that the SimplePlugin which I have installed in my plugin dev environment would once in a while cause an exception but I did not pay it much attention. The static word scanner is the source.
2015-09-16 02:06:53 -04:00
cheptsov
77ee65c204 Renamed SimplePlugin to simple_language_plugin 2015-09-07 19:33:25 +03:00
cheptsov
5a55c97b74 Merge branch 'code_samples/simple_plugin' 2015-09-07 19:13:47 +03:00
cheptsov
7fe9c621d5 Moved from its repository 2015-09-07 19:13:20 +03:00
breandan
448e845261 Fix untracked IDEA config files 2015-08-19 08:16:30 -04:00
Anna Bulenkova
17e8ddd12d [code] cosmetics 2015-05-13 13:28:33 +02:00
Anna Bulenkova
ef54820f3c [code] "code inspections" sample stub 2015-05-13 11:29:09 +02:00
Anna Bulenkova
a7f7dc988f [source] link to confluence dropped 2015-05-08 13:01:52 +02:00
Anna Bulenkova
db017b189c Header fixed 2015-02-10 12:03:24 +01:00