-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# IntelliJ project files | ||
*.iml | ||
.idea | ||
out | ||
gen | ||
.gradle/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
buildscript { | ||
repositories { | ||
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' } | ||
} | ||
|
||
} | ||
|
||
plugins { | ||
id "org.jetbrains.intellij" version "0.2.17" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
apply plugin: 'java' | ||
sourceCompatibility = 1.8 | ||
group 'org.myorg' | ||
version '1.0-SNAPSHOT' | ||
|
||
apply plugin: 'org.jetbrains.intellij' | ||
intellij { | ||
//For a full list of IntelliJ IDEA releases, please see https://www.jetbrains.com/intellij-repository/releases. | ||
version 'IC-2017.2.5' | ||
pluginName 'Sample-Plugin' | ||
updateSinceUntilBuild false | ||
plugins 'coverage' //Bundled plugin dependencies | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = 'SimplePlugin' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.myorg; | ||
|
||
import com.intellij.openapi.fileTypes.LanguageFileType; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import javax.swing.Icon; | ||
|
||
public class SimpleFileType extends LanguageFileType { | ||
|
||
public static final SimpleFileType INSTANCE = new SimpleFileType(); | ||
|
||
private SimpleFileType() { | ||
super(SimpleLanguage.INSTANCE); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getName() { | ||
return "Simple file"; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getDescription() { | ||
return "Simple language file"; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getDefaultExtension() { | ||
return "simple"; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public Icon getIcon() { | ||
return SimpleIcons.ICON; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.myorg; | ||
|
||
import com.intellij.openapi.fileTypes.FileTypeConsumer; | ||
import com.intellij.openapi.fileTypes.FileTypeFactory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class SimpleFileTypeFactory extends FileTypeFactory { | ||
|
||
@Override | ||
public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { | ||
fileTypeConsumer.consume(SimpleFileType.INSTANCE, "simple"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.myorg; | ||
|
||
import com.intellij.openapi.util.IconLoader; | ||
|
||
import javax.swing.*; | ||
|
||
public class SimpleIcons { | ||
public static final Icon ICON = IconLoader.getIcon("/icons/simple.png"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.myorg; | ||
|
||
import com.intellij.lang.Language; | ||
|
||
public class SimpleLanguage extends Language { | ||
public static final SimpleLanguage INSTANCE = new SimpleLanguage(); | ||
|
||
private SimpleLanguage() { | ||
super("Simple"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<idea-plugin> | ||
<id>org.myorg</id> | ||
<name>Simple</name> | ||
<version>1.0</version> | ||
<vendor email="sample@sample.com" url="sample.com">Sample</vendor> | ||
|
||
<description><![CDATA[ | ||
Enter short description for your plugin here.<br> | ||
<em>most HTML tags may be used</em> | ||
]]></description> | ||
|
||
<change-notes><![CDATA[ | ||
Add change notes here.<br> | ||
<em>most HTML tags may be used</em> | ||
]]> | ||
</change-notes> | ||
|
||
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description --> | ||
<idea-version since-build="162"/> | ||
|
||
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html | ||
on how to target different products --> | ||
<!-- uncomment to enable plugin in all products | ||
<depends>com.intellij.modules.lang</depends> | ||
--> | ||
|
||
<extensions defaultExtensionNs="com.intellij"> | ||
<fileTypeFactory implementation="org.myorg.SimpleFileTypeFactory"/> | ||
</extensions> | ||
|
||
<actions> | ||
<!-- Add your actions here --> | ||
</actions> | ||
|
||
</idea-plugin> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.