diff --git a/framework/resources/META-INF/plugin.xml b/framework/resources/META-INF/plugin.xml index 4734dfb32..2ce41ec98 100644 --- a/framework/resources/META-INF/plugin.xml +++ b/framework/resources/META-INF/plugin.xml @@ -1,18 +1,43 @@ + + - com.intellij.demo.framework - Framework example - 1.0 - JetBrains - Demonstrates basic Framework support with custom Configurable + + org.intellij.sdk.framework + + SDK: Framework Sample Project + + + 2.0 + + com.intellij.modules.java - - + + + + + + +
  • 2.0.0 Convert to Gradle-based plugin, rename to framework_basics, change plugin ID
  • +
  • 1.0.0 Release 2018.3 and earlier.
  • + + ]]> +
    + + + IntelliJ Platform SDK + + + +
    \ No newline at end of file diff --git a/framework/resources/META-INF/pluginIcon.svg b/framework/resources/META-INF/pluginIcon.svg new file mode 100644 index 000000000..613290897 --- /dev/null +++ b/framework/resources/META-INF/pluginIcon.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/resources/icons/sdk_16.svg b/framework/resources/icons/sdk_16.svg new file mode 100644 index 000000000..011462b8a --- /dev/null +++ b/framework/resources/icons/sdk_16.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/framework/src/icons/SdkIcons.java b/framework/src/icons/SdkIcons.java new file mode 100644 index 000000000..1475ff91d --- /dev/null +++ b/framework/src/icons/SdkIcons.java @@ -0,0 +1,11 @@ +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. + +package icons; + +import com.intellij.openapi.util.IconLoader; + +import javax.swing.*; + +public class SdkIcons { + public static final Icon Sdk_default_icon = IconLoader.getIcon("/icons/sdk_16.svg"); +} diff --git a/framework/src/com/intellij/tutorials/framework/DemoFramework.java b/framework/src/org/intellij/sdk/framework/DemoFramework.java similarity index 73% rename from framework/src/com/intellij/tutorials/framework/DemoFramework.java rename to framework/src/org/intellij/sdk/framework/DemoFramework.java index 31f47f9ca..1f6218927 100644 --- a/framework/src/com/intellij/tutorials/framework/DemoFramework.java +++ b/framework/src/org/intellij/sdk/framework/DemoFramework.java @@ -1,4 +1,6 @@ -package com.intellij.tutorials.framework; +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. + +package org.intellij.sdk.framework; import com.intellij.framework.FrameworkTypeEx; import com.intellij.framework.addSupport.*; @@ -6,15 +8,14 @@ import com.intellij.icons.AllIcons; import com.intellij.ide.util.frameworkSupport.FrameworkSupportModel; import com.intellij.openapi.module.*; import com.intellij.openapi.roots.*; +import icons.SdkIcons; import org.jetbrains.annotations.*; import javax.swing.*; -/** - * @author Anna Bulenkova - */ public class DemoFramework extends FrameworkTypeEx { - public static final String FRAMEWORK_ID = "Demo"; + + public static final String FRAMEWORK_ID = "org.intellij.sdk.framework.DemoFramework"; protected DemoFramework() { super(FRAMEWORK_ID); @@ -37,14 +38,15 @@ public class DemoFramework extends FrameworkTypeEx { @Nullable @Override public JComponent createComponent() { - return new JCheckBox("Extra Option"); + return new JCheckBox("SDK Extra Option"); } @Override public void addSupport(@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ModifiableModelsProvider provider) { - //do what you want here: setup a library, generate a specific file, etc + // This is the place to set up a library, generate a specific file, etc + // and actually add framework support to a module. } }; } @@ -59,12 +61,12 @@ public class DemoFramework extends FrameworkTypeEx { @NotNull @Override public String getPresentableName() { - return "Demo Framework"; + return "SDK Demo Framework"; } @NotNull @Override public Icon getIcon() { - return AllIcons.Providers.Apache; + return SdkIcons.Sdk_default_icon; } }