mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-37004 TLD: tag/body-content value could be supported
This commit is contained in:
@@ -21,4 +21,22 @@ import com.intellij.xml.XmlElementDescriptor;
|
||||
* @author Maxim.Mossienko
|
||||
*/
|
||||
public interface JspElementDescriptor extends XmlElementDescriptor {
|
||||
|
||||
/**
|
||||
* The body of the tag contains nested JSP syntax.
|
||||
* @see #getContentType()
|
||||
*/
|
||||
int CONTENT_TYPE_JSP = CONTENT_TYPE_MIXED;
|
||||
|
||||
/**
|
||||
* The body accepts only template text, EL Expressions, and JSP action elements.
|
||||
* No scripting elements are allowed.
|
||||
*/
|
||||
int CONTENT_TYPE_SCRIPTLESS = 101;
|
||||
|
||||
/**
|
||||
* The body of the tag is interpreted by the tag implementation itself,
|
||||
* and is most likely in a different "language", e.g embedded SQL statements.
|
||||
*/
|
||||
int CONTENT_TYPE_TAG_DEPENDENT = 102;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class CheckTagEmptyBodyInspection extends XmlSuppressableInspectionTool {
|
||||
|
||||
if (node != null &&
|
||||
node.getElementType() == XmlTokenType.XML_END_TAG_START) {
|
||||
final LocalQuickFix localQuickFix = new ReplaceEmptyTagBodyByEmptyEndFix();
|
||||
final LocalQuickFix localQuickFix = new Fix();
|
||||
holder.registerProblem(
|
||||
tag,
|
||||
XmlBundle.message("xml.inspections.tag.empty.body"),
|
||||
@@ -98,7 +98,7 @@ public class CheckTagEmptyBodyInspection extends XmlSuppressableInspectionTool {
|
||||
return "CheckTagEmptyBody";
|
||||
}
|
||||
|
||||
private static class ReplaceEmptyTagBodyByEmptyEndFix implements LocalQuickFix {
|
||||
public static class Fix implements LocalQuickFix {
|
||||
@Override
|
||||
@NotNull
|
||||
public String getName() {
|
||||
|
||||
Reference in New Issue
Block a user