Skip to content

Commit

Permalink
Support all Intellij Products
Browse files Browse the repository at this point in the history
  • Loading branch information
implmnt committed Apr 28, 2021
1 parent eb4bdae commit 7bb56af
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 32 deletions.
40 changes: 16 additions & 24 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
<idea-plugin>
<id>im.plmnt.plugin.greek</id>
<name>Greek symbols</name>
<version>2.0</version>
<vendor email="georgy.davityan@gmail.com" url="http://plmnt.im/">Georgy Davityan</vendor>
<id>im.plmnt.plugin.greek</id>
<name>Greek Symbols</name>
<version>3.0</version>
<vendor email="georgy.davityan@gmail.com" url="http://plmnt.im/">Georgy Davityan</vendor>

<description><![CDATA[
Live Templates for Greek symbols<br>
<description><![CDATA[
Live Templates for Greek Symbols<br>
View details in Preferences -> Editor -> Live Templates -> Greek.
]]></description>

<change-notes><![CDATA[
<strong>v2.0.0</strong><br>
<li>More symbols.</li>
<change-notes><![CDATA[
<strong>v3.0.0</strong><br>
<li>Support all Intellij Products.</li>
]]>
</change-notes>
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="173.0"/>
<idea-version since-build="203.0"/>

<!-- 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>
-->
<depends>com.intellij.modules.lang</depends>

<extensions defaultExtensionNs="com.intellij">
<defaultLiveTemplatesProvider implementation="im.plmnt.plugin.greek.GreekTemplates"/>
</extensions>

<actions>
<!-- Add your actions here -->
</actions>
<extensions defaultExtensionNs="com.intellij">
<defaultLiveTemplates file="/templates.xml"/>
<liveTemplateContext implementation="im.plmnt.plugin.greek.GreekContext"/>
</extensions>

</idea-plugin>
7 changes: 7 additions & 0 deletions src/im/plmnt/plugin/greek/GreekContext.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package im.plmnt.plugin.greek

import com.intellij.codeInsight.template.{TemplateActionContext, TemplateContextType}

class GreekContext extends TemplateContextType("OTHER", "Greek") {
override def isInContext(tac: TemplateActionContext): Boolean = true
}
8 changes: 0 additions & 8 deletions src/im/plmnt/plugin/greek/GreekTemplates.scala

This file was deleted.

0 comments on commit 7bb56af

Please sign in to comment.