Commit 0f4aa1a3 authored by duanledexianxianxian's avatar duanledexianxianxian 😁

add doc

parent 408dc3d4
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.10'
}
group 'com.duanledexianxianxian'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2019.1'
}
patchPluginXml {
changeNotes """
Add change notes here.<br>
<em>most HTML tags may be used</em>"""
}
\ No newline at end of file
package com.duanledexianxianxian.plugin.idea.action;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
/**
* @author Administrator
*/
public class HelloAction extends AnAction {
public HelloAction() {
super("Hello");
}
public void actionPerformed(AnActionEvent event) {
Project project = event.getProject();
Messages.showMessageDialog(project, "Hello world!", "Greeting", Messages.getInformationIcon());
}
}
<idea-plugin> <idea-plugin>
<id>com.duanledexianxianxian.plugin-gradle</id> <id>com.duanledexianxianxian.plugin-gradle</id>
<name>Plugin display name here</name> <name>example</name>
<vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor> <vendor email="fengyuchenglun@foxmail.com" url="https://github.com/fengyuchenglun">duanledexianxianxian</vendor>
<description><![CDATA[ <description><![CDATA[
Enter short description for your plugin here.<br> Create idea plguin by gradle Just fot test
<em>most HTML tags may be used</em>
]]></description> ]]></description>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
...@@ -20,5 +19,9 @@ ...@@ -20,5 +19,9 @@
<actions> <actions>
<!-- Add your actions here --> <!-- Add your actions here -->
<group id="MyPlugin.SampleMenu" text="Greeting" description="Greeting menu">
<add-to-group group-id="MainMenu" anchor="last"/>
<action id="Myplugin.Textboxes" class="com.duanledexianxianxian.plugin.idea.action.HelloAction" text="Hello" description="Says hello"/>
</group>
</actions> </actions>
</idea-plugin> </idea-plugin>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment