descriptions & category

This commit is contained in:
Gregory Shrago
2010-07-20 03:38:04 +04:00
parent 75748f0292
commit bc87bcc2aa
17 changed files with 36 additions and 18 deletions
+4 -4
View File
@@ -20,20 +20,20 @@
<errorHandler implementation="com.intellij.diagnostic.ITNReporter" />
<intentionAction>
<className>org.intellij.plugins.intelliLang.inject.InjectLanguageAction</className>
<category>Language Injections</category>
<category>Language Injection</category>
</intentionAction>
<intentionAction>
<className>org.intellij.plugins.intelliLang.inject.UnInjectLanguageAction</className>
<!--<category>Language Injections</category>-->
<category>Language Injection</category>
</intentionAction>
<intentionAction>
<className>org.intellij.plugins.intelliLang.inject.EditInjectionSettingsAction</className>
<!--<category>Language Injections</category>-->
<category>Language Injection</category>
</intentionAction>
<intentionAction>
<className>org.intellij.plugins.intelliLang.inject.quickedit.QuickEditAction</className>
<!--<category>Language Injections</category>-->
<category>Language Injection</category>
</intentionAction>
<highlightErrorFilter implementation="org.intellij.plugins.intelliLang.inject.CustomErrorElementFilter"/>
@@ -0,0 +1,5 @@
<html>
<body>
<span style="font-family: verdana,serif; font-size: smaller;">Opens language injection settings if available.</span>
</body>
</html>
@@ -1,7 +1 @@
class XmlConstants {
String ROOT_TAG = "<root></root>";
void foo(){
"".replaceAll("[^a-b]", "");
}
}
XXX
@@ -1,3 +1 @@
class XmlConstants {
String ROOT_TAG = "<root></root>";
}
XXX
@@ -0,0 +1,5 @@
<html>
<body>
<span style="font-family: verdana,serif; font-size: smaller;">Injects language into text-holding program element (string literal, XML attribute and tag body, etc.).</span>
</body>
</html>
@@ -0,0 +1,5 @@
<html>
<body>
<span style="font-family: verdana,serif; font-size: smaller;">Edit injected fragment in a designated editor without outer language escaping and concatenations.</span>
</body>
</html>
@@ -0,0 +1,5 @@
<html>
<body>
<span style="font-family: verdana,serif; font-size: smaller;">Removes language injection if it is configurable.</span>
</body>
</html>
@@ -53,7 +53,7 @@ public class EditInjectionSettingsAction implements IntentionAction {
@NotNull
public String getFamilyName() {
return InjectLanguageAction.INJECT_LANGUAGE_FAMILY;
return "Edit Injection Settings";
}
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
@@ -51,7 +51,7 @@ import java.util.Collections;
import java.util.List;
public class InjectLanguageAction implements IntentionAction {
@NonNls protected static final String INJECT_LANGUAGE_FAMILY = "Inject Language";
@NonNls private static final String INJECT_LANGUAGE_FAMILY = "Inject Language";
@NotNull
public String getText() {
@@ -50,7 +50,7 @@ public class UnInjectLanguageAction implements IntentionAction {
@NotNull
public String getFamilyName() {
return InjectLanguageAction.INJECT_LANGUAGE_FAMILY;
return getText();
}
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
@@ -89,7 +89,7 @@ public class QuickEditAction implements IntentionAction {
@NotNull
public String getFamilyName() {
return "Quick Edit";
return "Edit Injected Fragment";
}
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {