Skip to content

Commit

Permalink
Fix links to framework_basics files
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHake committed Sep 12, 2019
1 parent ca57bb7 commit 9b36928
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tutorials/framework.md
Expand Up @@ -2,10 +2,11 @@
title: Supporting Frameworks
---

The following tutorial shows how to support a custom framework type for a project and make this framework type embedded in a project wizard as a UI component.
The following tutorial shows how to support a custom framework type for a project and make this framework type embedded in a project wizard as a UI component.n
The examples in this tutorial rely heavily on the [framework_basics](https://github.com/JetBrains/intellij-sdk-docs/tree/master/code_samples/framework_basics) code sample.

## 1. Creating a new framework
In oder to make a custom framework available and configurable for a project the [FrameworkTypeEx](upsource:///java/idea-ui/src/com/intellij/framework/FrameworkTypeEx.java) class needs to be extended, in this example to make the [DemoFramework](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/framework/src/com/intellij/tutorials/framework/DemoFramework.java) class.
In oder to make a custom framework available and configurable for a project the [FrameworkTypeEx](upsource:///java/idea-ui/src/com/intellij/framework/FrameworkTypeEx.java) class needs to be extended, in this example to make the [DemoFramework](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/framework_basics/src/main/java/org/intellij/sdk/framework/DemoFramework.java) class.

```java
public class DemoFramework extends FrameworkTypeEx {
Expand All @@ -14,7 +15,7 @@ public class DemoFramework extends FrameworkTypeEx {

## 2. Registering framework
The newly created framework class should be registered as an extension point by putting *framework.type* attribute into `<extensions>` section of the
[plugin.xml](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/framework/resources/META-INF/plugin.xml)
[plugin.xml](https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/framework_basics/src/main/resources/META-INF/plugin.xml)
configuration file:

```xml
Expand Down Expand Up @@ -96,12 +97,13 @@ public FrameworkSupportInModuleProvider createProvider() {
}
```

After compiling and running the code sample above an extra option for configuring the newly created Demo custom framework should be available in the Project Wizard:
After compiling and running the code sample above an extra option for configuring the newly created Demo custom framework should be available in the Project Wizard:

![Custom Framework Support](framework/img/custom_framework.png)

----------

[Source code](https://github.com/JetBrains/intellij-sdk-docs/tree/master/code_samples/framework/src/com/intellij/tutorials/framework)





Expand Down

0 comments on commit 9b36928

Please sign in to comment.