use of com.intellij.struts2.reference.jsp.NamespaceReferenceProvider in project intellij-plugins by JetBrains.
the class StrutsUITaglibReferenceContributor method registerReferenceProviders.
@Override
public void registerReferenceProviders(@NotNull final PsiReferenceRegistrar registrar) {
// common attributes --------------------------------------
registerTags(new ThemeReferenceProvider(), "theme", registrar, TAGLIB_UI_FORM_TAGS);
registerBoolean("disabled", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(new StaticStringValuesReferenceProvider(false, "left", "top"), "labelposition", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(ACTION_PROPERTY_REFERENCE_PROVIDER, "name", registrar, TAGLIB_UI_FORM_INPUT_TAGS);
registerTags(ACTION_PROPERTY_REFERENCE_PROVIDER, "list", registrar, "doubleselect", "inputtransferselect", "optiontransferselect", "select", "updownselect");
registerBoolean("required", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(ID_REFERENCE_PROVIDER, "id", registrar, TAGLIB_UI_FORM_INPUT_TAGS);
registerTags(new StaticStringValuesReferenceProvider(false, "left", "right"), "requiredposition", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(wrappedPropertiesProvider, "key", registrar, TAGLIB_UI_FORM_INPUT_TAGS);
// elements with "readonly"
registerBoolean("readonly", registrar, "combobox", "password", "textarea", "textfield");
// selection elements with "emptyOption"|"multiple"
registerBoolean("emptyOption", registrar, "doubleselect", "inputtransferselect", "optiontransferselect", "select", "updownselect");
registerBoolean("multiple", registrar, "doubleselect", "inputtransferselect", "optiontransferselect", "select", "updownselect");
// elements with "action"
registerTags(ACTION_REFERENCE_PROVIDER, "action", registrar, "a", "form", "reset", "submit", "url");
registerTags(ACTION_REFERENCE_PROVIDER, "name", registrar, "action");
registerTags(new ActionMethodReferenceProvider(), "method", registrar, "a", "reset", "submit", "url");
// elements with "value" (relative path)
registerTags(RELATIVE_PATH_PROVIDER, "value", registrar, "include", "url");
// elements with "namespace"
registerTags(new NamespaceReferenceProvider(), "namespace", registrar, "a", "action", "form", "url");
// CSS classes
registerTags(CSS_CLASS_PROVIDER, "cssClass", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(CSS_CLASS_PROVIDER, "cssErrorClass", registrar, TAGLIB_UI_FORM_TAGS);
registerTags(CSS_CLASS_PROVIDER, "tooltipCssClass", registrar, TAGLIB_UI_FORM_TAGS);
// *transfer/double-tags
registerTags(CSS_CLASS_PROVIDER, "buttonCssClass", registrar, "inputtransferselect", "optiontransferselect");
registerTags(CSS_CLASS_PROVIDER, "doubleCssClass", registrar, "inputtransferselect", "optiontransferselect");
registerBoolean("doubleEmptyOption", registrar, "doubleselect", "inputtransferselect", "optiontransferselect");
registerTags(ACTION_PROPERTY_REFERENCE_PROVIDER, "doubleName", registrar, "doubleselect", "optiontransferselect");
registerTags(ACTION_PROPERTY_REFERENCE_PROVIDER, "doubleList", registrar, "doubleselect", "optiontransferselect");
// specific tags ---------------------------------------------------------------------------------------------------
// <action>
registerBoolean("flush", registrar, "action");
registerBoolean("executeResult", registrar, "action");
registerBoolean("ignoreContextParams", registrar, "action");
// <date>
registerBoolean("nice", registrar, "date");
// <form>
registerTags(new StaticStringValuesReferenceProvider(false, "application/x-www-form-urlencoded", "multipart/form-data"), "enctype", registrar, "form");
registerTags(new StaticStringValuesReferenceProvider("GET", "POST"), "method", registrar, "form");
registerTags(new StaticStringValuesReferenceProvider("_blank", "_parent", "_self", "_top"), "target", registrar, "form");
registerBoolean("validate", registrar, "form");
// <param>
registerTags(ACTION_PROPERTY_REFERENCE_PROVIDER, "name", registrar, "param");
// <property>
registerBoolean("escape", registrar, "property");
registerBoolean("escapeJavaScript", registrar, "property");
// <set>
registerTags(new StaticStringValuesReferenceProvider(false, "application", "session", "request", "page", "action"), "scope", registrar, "set");
// <submit>
registerTags(new StaticStringValuesReferenceProvider(false, "input", "button", "image", "submit"), "type", registrar, "submit");
registerTags(RELATIVE_PATH_PROVIDER, "src", registrar, "submit");
// <text>
registerTags(wrappedPropertiesProvider, "name", registrar, "text");
registerBoolean("searchValueStack", registrar, "text");
// <url>
registerBoolean("encode", registrar, "url");
registerBoolean("escapeAmp", registrar, "url");
registerBoolean("forceAddSchemeHostAndPort", registrar, "url");
registerBoolean("includeContext", registrar, "url");
registerTags(new StaticStringValuesReferenceProvider(false, "none", "get", "all"), "includeParams", registrar, "url");
}
Aggregations