Vitalii Dmitriev 10efd969a9
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
2015-12-19 05:13:11 -05:00
2017-07-14 11:16:58 -06:00
2017-09-29 16:26:48 +01:00
2017-12-20 15:59:37 +01:00
2018-02-05 03:48:23 -05:00
2017-09-19 12:58:27 +01:00
2017-12-20 15:59:37 +01:00
2017-10-04 15:30:37 +01:00
2017-07-14 11:16:58 -06:00
2016-03-24 14:02:35 -04:00
2017-12-04 11:37:52 +00:00
2015-04-28 11:06:23 +02:00
2017-08-30 15:03:32 +01:00
2017-09-29 15:15:59 +01:00
2016-01-12 00:39:50 -08:00
2017-09-29 15:15:59 +01:00

official JetBrains project

IntelliJ Platform SDK Documentation

This is a repository for IntelliJ Platform SDK Documentation site.

Reporting Bugs

Please inform about any content inconsistencies, outdated materials, cosmetic issues and other defects you find in the docs and samples by submitting an issue to YouTrack.

Working With the Site Locally

To check out and run a local copy of the site follow the steps described below.

Pre-requirements

  • Make sure you have a git client installed

  • This site requires Ruby 2.0 or higher. Follow the official Ruby language download and installation instructions to get Ruby working on your machine.

  • This site requires Jekyll, a Ruby-based site generating framework. To install Jekyll refer to it's installation guidelines. Note: If you are using Windows, you can face some specific aspects while installing Jekyll. See this Run Jekyll on Windows Guide to get more information.

Checking Out Site Repository

To check out the source code run the following command:

git clone https://github.com/JetBrains/intellij-sdk-docs.git

Initializing Submodules

The site uses JetBrains custom web templates. To enable custom templates locally you need to initialize repository submodules. Run the following command in the checkout directory to do so.

git submodule update --init --remote

Building and Previewing

A set of Rake tasks, a Make-like programs implemented in Ruby, provides short commands to build and run the site locally.

Building Site from Sources

  • Make sure you are in a project root directory
  • To build static site content run
    rake build
    

Previewing

Languages
Java 98.2%
Lex 0.9%
Kotlin 0.6%
HTML 0.3%