From 06875e84820bfc7051f5aa19a810e53bce711998 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 26 Oct 2023 12:51:36 +0200 Subject: [PATCH] framework.md: Make extension classes non-public and final --- topics/tutorials/framework.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/topics/tutorials/framework.md b/topics/tutorials/framework.md index dfeac75ce..d43f2d91a 100644 --- a/topics/tutorials/framework.md +++ b/topics/tutorials/framework.md @@ -12,7 +12,7 @@ The examples in this tutorial rely heavily on the [framework_basics](%gh-sdk-sam In oder to make a custom framework available and configurable for a project the [`FrameworkTypeEx`](%gh-ic%/java/idea-ui/src/com/intellij/framework/FrameworkTypeEx.java) class needs to be extended, in this example to make the [DemoFramework](%gh-sdk-samples%/framework_basics/src/main/java/org/intellij/sdk/framework/DemoFramework.java) class. ```java -public class DemoFramework extends FrameworkTypeEx { +final class DemoFramework extends FrameworkTypeEx { } ``` @@ -33,12 +33,12 @@ The framework component should have a unique name passed as a string literal to It is best if this is the FQN name of the class: ```java -public class DemoFramework extends FrameworkTypeEx { +final class DemoFramework extends FrameworkTypeEx { public static final String FRAMEWORK_ID = "org.intellij.sdk.framework.DemoFramework"; - protected DemoFramework() { + DemoFramework() { super(FRAMEWORK_ID); } } @@ -47,7 +47,7 @@ public class DemoFramework extends FrameworkTypeEx { The *Presentable name* and *icon* define the appearance of visual components related to the framework: ```java -public class DemoFramework extends FrameworkTypeEx { +final class DemoFramework extends FrameworkTypeEx { @NotNull @Override public String getPresentableName() {