Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gradle-example
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leona
I
idea
plugin
gradle-example
Commits
0f4aa1a3
Commit
0f4aa1a3
authored
Oct 14, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add doc
parent
408dc3d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
32 deletions
+28
-32
plugin-gradle/build.gradle
plugin-gradle/build.gradle
+0
-27
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/action/HelloAction.java
.../duanledexianxianxian/plugin/idea/action/HelloAction.java
+20
-0
plugin-gradle/src/main/resources/META-INF/plugin.xml
plugin-gradle/src/main/resources/META-INF/plugin.xml
+8
-5
No files found.
plugin-gradle/build.gradle
deleted
100644 → 0
View file @
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
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/action/HelloAction.java
0 → 100644
View file @
0f4aa1a3
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
());
}
}
plugin-gradle/src/main/resources/META-INF/plugin.xml
View file @
0f4aa1a3
<idea-plugin>
<idea-plugin>
<id>
com.duanledexianxianxian.plugin-gradle
</id>
<id>
com.duanledexianxianxian.plugin-gradle
</id>
<name>
Plugin display name her
e
</name>
<name>
exampl
e
</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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment