diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fb4364af..17094aa26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,10 @@ - Inspection rule: validate that `lang` modifier value is present in the `lang.packs` [#417](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/417) - Inspection rule: validate that `lang` modifier is used only for localized attributes [#418](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/418) +### `ImpEx` - `User Rights` 2.0 +- SAP Help Portal - [User Rights](https://help.sap.com/docs/SAP_COMMERCE/50c996852b32456c96d3161a95544cdb/e472718cafe840c39fbb5ceb00002e52.html?locale=en-US) +- Re-implemented from the scratch Lexer and Parser for `$START_USERRIGHTS` block [#435](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/435) + ### `FlexibleSearch` enhancements - Added possibility to copy FlexibleSearch from the Java 15 text block `"""SELECT * FROM {Product}"""` [#428](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/428) - Added FlexibleSearch language injection into Java 15 text block `"""SELECT * FROM {Product}"""` [#430](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/430) @@ -111,7 +115,7 @@ - Added generate Diagram run line marker for `items.xml` - Added generate Diagram run line marker for `extensioninfo.xml` [#332](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/332) -### FlexibleSearch 2.0 +### `FlexibleSearch` 2.0 - Rewritten from the Scratch - Folding support - Brand-new possibility to Unify case of the reserved words, change to upper or lowercase with a single click @@ -175,7 +179,7 @@ - Enabled possibility to disable validation of the generated classes [#313](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/313) - Project import will respect extensions registered via `path` with `autoload=true` [#319](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/319) -### New inspection rules for `items.xml` +### `items.xml` inspection rules - Relation qualifier and modifiers must not be declared for `navigable='false'` end [#307](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/307) - Only one side of many-to-many relation must be `navigable='false'` [#315](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/315) - Qualifier must exist for `navigable='true'` part in many-to-many relation [#318](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/318) diff --git a/gen/com/intellij/idea/plugin/hybris/impex/ImpexParser.java b/gen/com/intellij/idea/plugin/hybris/impex/ImpexParser.java index 806b1b44a..371e09df8 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/ImpexParser.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/ImpexParser.java @@ -793,6 +793,7 @@ private static boolean recover_parameters_0(PsiBuilder b, int l) { /* ********************************************************** */ // !( // CRLF + // | user_rights_start // | HEADER_MODE_INSERT // | HEADER_MODE_INSERT_UPDATE // | HEADER_MODE_REMOVE @@ -816,6 +817,7 @@ static boolean recover_root(PsiBuilder b, int l) { } // CRLF + // | user_rights_start // | HEADER_MODE_INSERT // | HEADER_MODE_INSERT_UPDATE // | HEADER_MODE_REMOVE @@ -832,6 +834,7 @@ private static boolean recover_root_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "recover_root_0")) return false; boolean r; r = consumeToken(b, CRLF); + if (!r) r = user_rights_start(b, l + 1); if (!r) r = consumeToken(b, HEADER_MODE_INSERT); if (!r) r = consumeToken(b, HEADER_MODE_INSERT_UPDATE); if (!r) r = consumeToken(b, HEADER_MODE_REMOVE); @@ -893,7 +896,8 @@ private static boolean root_1_2(PsiBuilder b, int l) { } /* ********************************************************** */ - // root_macro_usage + // user_rights + // | root_macro_usage // | header_line // | value_line // | comment @@ -904,38 +908,39 @@ static boolean root_group(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "root_group")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_); - r = root_macro_usage(b, l + 1); + r = user_rights(b, l + 1); + if (!r) r = root_macro_usage(b, l + 1); if (!r) r = header_line(b, l + 1); if (!r) r = value_line(b, l + 1); if (!r) r = comment(b, l + 1); if (!r) r = bean_shell(b, l + 1); - if (!r) r = root_group_5(b, l + 1); + if (!r) r = root_group_6(b, l + 1); if (!r) r = macro_declaration(b, l + 1); exit_section_(b, l, m, r, false, ImpexParser::not_line_break); return r; } // string (';')? - private static boolean root_group_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "root_group_5")) return false; + private static boolean root_group_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "root_group_6")) return false; boolean r; Marker m = enter_section_(b); r = string(b, l + 1); - r = r && root_group_5_1(b, l + 1); + r = r && root_group_6_1(b, l + 1); exit_section_(b, m, null, r); return r; } // (';')? - private static boolean root_group_5_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "root_group_5_1")) return false; - root_group_5_1_0(b, l + 1); + private static boolean root_group_6_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "root_group_6_1")) return false; + root_group_6_1_0(b, l + 1); return true; } // (';') - private static boolean root_group_5_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "root_group_5_1_0")) return false; + private static boolean root_group_6_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "root_group_6_1_0")) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, ";"); @@ -1056,6 +1061,285 @@ public static boolean sub_type_name(PsiBuilder b, int l) { return r; } + /* ********************************************************** */ + // user_rights_start CRLF (user_rights_header_line CRLF)? (user_rights_value_line CRLF)* user_rights_end + public static boolean user_rights(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights")) return false; + boolean r, p; + Marker m = enter_section_(b, l, _NONE_, USER_RIGHTS, ""); + r = user_rights_start(b, l + 1); + p = r; // pin = 1 + r = r && report_error_(b, consumeToken(b, CRLF)); + r = p && report_error_(b, user_rights_2(b, l + 1)) && r; + r = p && report_error_(b, user_rights_3(b, l + 1)) && r; + r = p && user_rights_end(b, l + 1) && r; + exit_section_(b, l, m, r, p, ImpexParser::recover_root); + return r || p; + } + + // (user_rights_header_line CRLF)? + private static boolean user_rights_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_2")) return false; + user_rights_2_0(b, l + 1); + return true; + } + + // user_rights_header_line CRLF + private static boolean user_rights_2_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_2_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = user_rights_header_line(b, l + 1); + r = r && consumeToken(b, CRLF); + exit_section_(b, m, null, r); + return r; + } + + // (user_rights_value_line CRLF)* + private static boolean user_rights_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_3")) return false; + while (true) { + int c = current_position_(b); + if (!user_rights_3_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "user_rights_3", c)) break; + } + return true; + } + + // user_rights_value_line CRLF + private static boolean user_rights_3_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_3_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = user_rights_value_line(b, l + 1); + r = r && consumeToken(b, CRLF); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // END_USERRIGHTS + public static boolean user_rights_end(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_end")) return false; + if (!nextTokenIs(b, END_USERRIGHTS)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, END_USERRIGHTS); + exit_section_(b, m, USER_RIGHTS_END, r); + return r; + } + + /* ********************************************************** */ + // user_rights_header_parameter (PARAMETERS_SEPARATOR user_rights_header_parameter)* + public static boolean user_rights_header_line(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_line")) return false; + boolean r, p; + Marker m = enter_section_(b, l, _NONE_, USER_RIGHTS_HEADER_LINE, ""); + r = user_rights_header_parameter(b, l + 1); + p = r; // pin = 1 + r = r && user_rights_header_line_1(b, l + 1); + exit_section_(b, l, m, r, p, ImpexParser::user_rights_header_line_recover); + return r || p; + } + + // (PARAMETERS_SEPARATOR user_rights_header_parameter)* + private static boolean user_rights_header_line_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_line_1")) return false; + while (true) { + int c = current_position_(b); + if (!user_rights_header_line_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "user_rights_header_line_1", c)) break; + } + return true; + } + + // PARAMETERS_SEPARATOR user_rights_header_parameter + private static boolean user_rights_header_line_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_line_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, PARAMETERS_SEPARATOR); + r = r && user_rights_header_parameter(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // !(CRLF | user_rights_end | user_rights_value_line ) + static boolean user_rights_header_line_recover(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_line_recover")) return false; + boolean r; + Marker m = enter_section_(b, l, _NOT_); + r = !user_rights_header_line_recover_0(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // CRLF | user_rights_end | user_rights_value_line + private static boolean user_rights_header_line_recover_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_line_recover_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, CRLF); + if (!r) r = user_rights_end(b, l + 1); + if (!r) r = user_rights_value_line(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // USER_RIGHTS_HEADER_PARAMETER_NAME + public static boolean user_rights_header_parameter(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_header_parameter")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, USER_RIGHTS_HEADER_PARAMETER, ""); + r = consumeToken(b, USER_RIGHTS_HEADER_PARAMETER_NAME); + exit_section_(b, l, m, r, false, ImpexParser::not_line_break_or_parameters_separator); + return r; + } + + /* ********************************************************** */ + // START_USERRIGHTS + public static boolean user_rights_start(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_start")) return false; + if (!nextTokenIs(b, START_USERRIGHTS)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, START_USERRIGHTS); + exit_section_(b, m, USER_RIGHTS_START, r); + return r; + } + + /* ********************************************************** */ + // USER_RIGHTS_VALUE DOT USER_RIGHTS_VALUE + static boolean user_rights_type_attribute(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_type_attribute")) return false; + if (!nextTokenIs(b, USER_RIGHTS_VALUE)) return false; + boolean r, p; + Marker m = enter_section_(b, l, _NONE_); + r = consumeTokens(b, 2, USER_RIGHTS_VALUE, DOT, USER_RIGHTS_VALUE); + p = r; // pin = 2 + exit_section_(b, l, m, r, p, null); + return r || p; + } + + /* ********************************************************** */ + // PERMISSION_DENIED + // | PERMISSION_ALLOWED + // | user_rights_type_attribute + // | USER_RIGHTS_VALUE + static boolean user_rights_value_dec(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_dec")) return false; + boolean r; + r = consumeToken(b, PERMISSION_DENIED); + if (!r) r = consumeToken(b, PERMISSION_ALLOWED); + if (!r) r = user_rights_type_attribute(b, l + 1); + if (!r) r = consumeToken(b, USER_RIGHTS_VALUE); + return r; + } + + /* ********************************************************** */ + // user_rights_value_dec (COMMA user_rights_value_dec)* + public static boolean user_rights_value_group(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_group")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, USER_RIGHTS_VALUE_GROUP, ""); + r = user_rights_value_dec(b, l + 1); + r = r && user_rights_value_group_1(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // (COMMA user_rights_value_dec)* + private static boolean user_rights_value_group_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_group_1")) return false; + while (true) { + int c = current_position_(b); + if (!user_rights_value_group_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "user_rights_value_group_1", c)) break; + } + return true; + } + + // COMMA user_rights_value_dec + private static boolean user_rights_value_group_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_group_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && user_rights_value_dec(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // user_rights_value_group? (FIELD_VALUE_SEPARATOR user_rights_value_group?)* + public static boolean user_rights_value_line(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, USER_RIGHTS_VALUE_LINE, ""); + r = user_rights_value_line_0(b, l + 1); + r = r && user_rights_value_line_1(b, l + 1); + exit_section_(b, l, m, r, false, ImpexParser::user_rights_value_line_recover); + return r; + } + + // user_rights_value_group? + private static boolean user_rights_value_line_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_0")) return false; + user_rights_value_group(b, l + 1); + return true; + } + + // (FIELD_VALUE_SEPARATOR user_rights_value_group?)* + private static boolean user_rights_value_line_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_1")) return false; + while (true) { + int c = current_position_(b); + if (!user_rights_value_line_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "user_rights_value_line_1", c)) break; + } + return true; + } + + // FIELD_VALUE_SEPARATOR user_rights_value_group? + private static boolean user_rights_value_line_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, FIELD_VALUE_SEPARATOR); + r = r && user_rights_value_line_1_0_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // user_rights_value_group? + private static boolean user_rights_value_line_1_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_1_0_1")) return false; + user_rights_value_group(b, l + 1); + return true; + } + + /* ********************************************************** */ + // !(CRLF | user_rights_end) + static boolean user_rights_value_line_recover(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_recover")) return false; + boolean r; + Marker m = enter_section_(b, l, _NOT_); + r = !user_rights_value_line_recover_0(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // CRLF | user_rights_end + private static boolean user_rights_value_line_recover_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "user_rights_value_line_recover_0")) return false; + boolean r; + r = consumeToken(b, CRLF); + if (!r) r = user_rights_end(b, l + 1); + return r; + } + /* ********************************************************** */ // (( FIELD_VALUE // | FIELD_VALUE_URL diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexFullHeaderParameter.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexFullHeaderParameter.java index 6b1c45dab..7abe0a3db 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexFullHeaderParameter.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexFullHeaderParameter.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexHeaderLine.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexHeaderLine.java index 06c4fdec9..750276102 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexHeaderLine.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexHeaderLine.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * @@ -20,6 +24,7 @@ import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; +import java.util.Collection; public interface ImpexHeaderLine extends PsiElement { @@ -35,4 +40,7 @@ public interface ImpexHeaderLine extends PsiElement { @Nullable ImpexFullHeaderParameter getFullHeaderParameter(@NotNull String parameterName); + @NotNull + Collection getValueLines(); + } diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexMacroDeclaration.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexMacroDeclaration.java index 4da236aa2..a6d4ee713 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexMacroDeclaration.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexMacroDeclaration.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexTypes.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexTypes.java index 39000bc35..bcccf5a5a 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexTypes.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexTypes.java @@ -50,6 +50,13 @@ public interface ImpexTypes { IElementType STRING = new ImpexElementType("STRING"); IElementType SUB_PARAMETERS = new ImpexElementType("SUB_PARAMETERS"); IElementType SUB_TYPE_NAME = new ImpexElementType("SUB_TYPE_NAME"); + IElementType USER_RIGHTS = new ImpexElementType("USER_RIGHTS"); + IElementType USER_RIGHTS_END = new ImpexElementType("USER_RIGHTS_END"); + IElementType USER_RIGHTS_HEADER_LINE = new ImpexElementType("USER_RIGHTS_HEADER_LINE"); + IElementType USER_RIGHTS_HEADER_PARAMETER = new ImpexElementType("USER_RIGHTS_HEADER_PARAMETER"); + IElementType USER_RIGHTS_START = new ImpexElementType("USER_RIGHTS_START"); + IElementType USER_RIGHTS_VALUE_GROUP = new ImpexElementType("USER_RIGHTS_VALUE_GROUP"); + IElementType USER_RIGHTS_VALUE_LINE = new ImpexElementType("USER_RIGHTS_VALUE_LINE"); IElementType VALUE = new ImpexElementType("VALUE"); IElementType VALUE_GROUP = new ImpexElementType("VALUE_GROUP"); IElementType VALUE_LINE = new ImpexElementType("VALUE_LINE"); @@ -71,6 +78,7 @@ public interface ImpexTypes { IElementType DOCUMENT_ID = new ImpexTokenType("DOCUMENT_ID"); IElementType DOT = new ImpexTokenType("DOT"); IElementType DOUBLE_STRING = new ImpexTokenType("DOUBLE_STRING"); + IElementType END_USERRIGHTS = new ImpexTokenType("END_USERRIGHTS"); IElementType FIELD_LIST_ITEM_SEPARATOR = new ImpexTokenType("FIELD_LIST_ITEM_SEPARATOR"); IElementType FIELD_VALUE = new ImpexTokenType("FIELD_VALUE"); IElementType FIELD_VALUE_IGNORE = new ImpexTokenType("FIELD_VALUE_IGNORE"); @@ -91,9 +99,14 @@ public interface ImpexTypes { IElementType MACRO_USAGE = new ImpexTokenType("MACRO_USAGE"); IElementType MACRO_VALUE = new ImpexTokenType("MACRO_VALUE"); IElementType PARAMETERS_SEPARATOR = new ImpexTokenType("PARAMETERS_SEPARATOR"); + IElementType PERMISSION_ALLOWED = new ImpexTokenType("PERMISSION_ALLOWED"); + IElementType PERMISSION_DENIED = new ImpexTokenType("PERMISSION_DENIED"); IElementType RIGHT_ROUND_BRACKET = new ImpexTokenType("RIGHT_ROUND_BRACKET"); IElementType RIGHT_SQUARE_BRACKET = new ImpexTokenType("RIGHT_SQUARE_BRACKET"); IElementType SINGLE_STRING = new ImpexTokenType("SINGLE_STRING"); + IElementType START_USERRIGHTS = new ImpexTokenType("START_USERRIGHTS"); + IElementType USER_RIGHTS_HEADER_PARAMETER_NAME = new ImpexTokenType("USER_RIGHTS_HEADER_PARAMETER_NAME"); + IElementType USER_RIGHTS_VALUE = new ImpexTokenType("USER_RIGHTS_VALUE"); IElementType VALUE_SUBTYPE = new ImpexTokenType("VALUE_SUBTYPE"); class Factory { @@ -165,6 +178,27 @@ else if (type == SUB_PARAMETERS) { else if (type == SUB_TYPE_NAME) { return new ImpexSubTypeNameImpl(node); } + else if (type == USER_RIGHTS) { + return new ImpexUserRightsImpl(node); + } + else if (type == USER_RIGHTS_END) { + return new ImpexUserRightsEndImpl(node); + } + else if (type == USER_RIGHTS_HEADER_LINE) { + return new ImpexUserRightsHeaderLineImpl(node); + } + else if (type == USER_RIGHTS_HEADER_PARAMETER) { + return new ImpexUserRightsHeaderParameterImpl(node); + } + else if (type == USER_RIGHTS_START) { + return new ImpexUserRightsStartImpl(node); + } + else if (type == USER_RIGHTS_VALUE_GROUP) { + return new ImpexUserRightsValueGroupImpl(node); + } + else if (type == USER_RIGHTS_VALUE_LINE) { + return new ImpexUserRightsValueLineImpl(node); + } else if (type == VALUE) { return new ImpexValueImpl(node); } diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRights.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRights.java new file mode 100644 index 000000000..43e18998e --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRights.java @@ -0,0 +1,42 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRights extends PsiElement { + + @Nullable + ImpexUserRightsEnd getUserRightsEnd(); + + @Nullable + ImpexUserRightsHeaderLine getUserRightsHeaderLine(); + + @NotNull + ImpexUserRightsStart getUserRightsStart(); + + @NotNull + List getUserRightsValueLineList(); + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsEnd.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsEnd.java new file mode 100644 index 000000000..7e8a9e31a --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsEnd.java @@ -0,0 +1,30 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsEnd extends PsiElement { + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderLine.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderLine.java new file mode 100644 index 000000000..e6dbea0f4 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderLine.java @@ -0,0 +1,33 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsHeaderLine extends PsiElement { + + @NotNull + List getUserRightsHeaderParameterList(); + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderParameter.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderParameter.java new file mode 100644 index 000000000..31733519c --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsHeaderParameter.java @@ -0,0 +1,30 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsHeaderParameter extends PsiElement { + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsStart.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsStart.java new file mode 100644 index 000000000..c542a2b93 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsStart.java @@ -0,0 +1,30 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsStart extends PsiElement { + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueGroup.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueGroup.java new file mode 100644 index 000000000..a797ca103 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueGroup.java @@ -0,0 +1,30 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsValueGroup extends PsiElement { + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueLine.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueLine.java new file mode 100644 index 000000000..35dfe5f79 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexUserRightsValueLine.java @@ -0,0 +1,33 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface ImpexUserRightsValueLine extends PsiElement { + + @NotNull + List getUserRightsValueGroupList(); + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexValueGroup.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexValueGroup.java index de00c7736..ef8c97774 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexValueGroup.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexValueGroup.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexVisitor.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexVisitor.java index aa6600b63..ebb18576a 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexVisitor.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/ImpexVisitor.java @@ -115,6 +115,34 @@ public void visitSubTypeName(@NotNull ImpexSubTypeName o) { visitPsiElement(o); } + public void visitUserRights(@NotNull ImpexUserRights o) { + visitPsiElement(o); + } + + public void visitUserRightsEnd(@NotNull ImpexUserRightsEnd o) { + visitPsiElement(o); + } + + public void visitUserRightsHeaderLine(@NotNull ImpexUserRightsHeaderLine o) { + visitPsiElement(o); + } + + public void visitUserRightsHeaderParameter(@NotNull ImpexUserRightsHeaderParameter o) { + visitPsiElement(o); + } + + public void visitUserRightsStart(@NotNull ImpexUserRightsStart o) { + visitPsiElement(o); + } + + public void visitUserRightsValueGroup(@NotNull ImpexUserRightsValueGroup o) { + visitPsiElement(o); + } + + public void visitUserRightsValueLine(@NotNull ImpexUserRightsValueLine o) { + visitPsiElement(o); + } + public void visitValue(@NotNull ImpexValue o) { visitPsiElement(o); } diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexFullHeaderParameterImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexFullHeaderParameterImpl.java index 43ecbe236..4ba3c917d 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexFullHeaderParameterImpl.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexFullHeaderParameterImpl.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexHeaderLineImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexHeaderLineImpl.java index b6db5eb3e..2d912f01c 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexHeaderLineImpl.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexHeaderLineImpl.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * @@ -26,6 +30,7 @@ import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; import com.intellij.idea.plugin.hybris.impex.psi.*; +import java.util.Collection; public class ImpexHeaderLineImpl extends ASTWrapperPsiElement implements ImpexHeaderLine { @@ -67,4 +72,10 @@ public ImpexFullHeaderParameter getFullHeaderParameter(@NotNull String parameter return ImpexPsiUtil.getFullHeaderParameter(this, parameterName); } + @Override + @NotNull + public Collection getValueLines() { + return ImpexPsiUtil.getValueLines(this); + } + } diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexMacroDeclarationImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexMacroDeclarationImpl.java index 4254750cd..8b2b28953 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexMacroDeclarationImpl.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexMacroDeclarationImpl.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsEndImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsEndImpl.java new file mode 100644 index 000000000..1306ffd63 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsEndImpl.java @@ -0,0 +1,50 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsEndImpl extends ASTWrapperPsiElement implements ImpexUserRightsEnd { + + public ImpexUserRightsEndImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsEnd(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderLineImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderLineImpl.java new file mode 100644 index 000000000..cb4f06ea6 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderLineImpl.java @@ -0,0 +1,56 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsHeaderLineImpl extends ASTWrapperPsiElement implements ImpexUserRightsHeaderLine { + + public ImpexUserRightsHeaderLineImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsHeaderLine(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getUserRightsHeaderParameterList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, ImpexUserRightsHeaderParameter.class); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderParameterImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderParameterImpl.java new file mode 100644 index 000000000..e70746d24 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsHeaderParameterImpl.java @@ -0,0 +1,50 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsHeaderParameterImpl extends ASTWrapperPsiElement implements ImpexUserRightsHeaderParameter { + + public ImpexUserRightsHeaderParameterImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsHeaderParameter(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsImpl.java new file mode 100644 index 000000000..71cef4a7f --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsImpl.java @@ -0,0 +1,74 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsImpl extends ASTWrapperPsiElement implements ImpexUserRights { + + public ImpexUserRightsImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRights(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public ImpexUserRightsEnd getUserRightsEnd() { + return findChildByClass(ImpexUserRightsEnd.class); + } + + @Override + @Nullable + public ImpexUserRightsHeaderLine getUserRightsHeaderLine() { + return findChildByClass(ImpexUserRightsHeaderLine.class); + } + + @Override + @NotNull + public ImpexUserRightsStart getUserRightsStart() { + return findNotNullChildByClass(ImpexUserRightsStart.class); + } + + @Override + @NotNull + public List getUserRightsValueLineList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, ImpexUserRightsValueLine.class); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsStartImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsStartImpl.java new file mode 100644 index 000000000..9d48bbcc7 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsStartImpl.java @@ -0,0 +1,50 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsStartImpl extends ASTWrapperPsiElement implements ImpexUserRightsStart { + + public ImpexUserRightsStartImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsStart(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueGroupImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueGroupImpl.java new file mode 100644 index 000000000..845d0cd3d --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueGroupImpl.java @@ -0,0 +1,50 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsValueGroupImpl extends ASTWrapperPsiElement implements ImpexUserRightsValueGroup { + + public ImpexUserRightsValueGroupImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsValueGroup(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueLineImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueLineImpl.java new file mode 100644 index 000000000..3e34ca887 --- /dev/null +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexUserRightsValueLineImpl.java @@ -0,0 +1,56 @@ +/* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * + * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. + * Copyright (C) 2019 EPAM Systems + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ +package com.intellij.idea.plugin.hybris.impex.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static com.intellij.idea.plugin.hybris.impex.psi.ImpexTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import com.intellij.idea.plugin.hybris.impex.psi.*; + +public class ImpexUserRightsValueLineImpl extends ASTWrapperPsiElement implements ImpexUserRightsValueLine { + + public ImpexUserRightsValueLineImpl(@NotNull ASTNode node) { + super(node); + } + + public void accept(@NotNull ImpexVisitor visitor) { + visitor.visitUserRightsValueLine(this); + } + + @Override + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof ImpexVisitor) accept((ImpexVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getUserRightsValueGroupList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, ImpexUserRightsValueGroup.class); + } + +} diff --git a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexValueGroupImpl.java b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexValueGroupImpl.java index a12c7a8b5..34d54c172 100644 --- a/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexValueGroupImpl.java +++ b/gen/com/intellij/idea/plugin/hybris/impex/psi/impl/ImpexValueGroupImpl.java @@ -1,4 +1,8 @@ /* + * ---------------------------------------------------------------- + * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! --- + * ---------------------------------------------------------------- + * * This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. * Copyright (C) 2019 EPAM Systems * diff --git a/resources/colorSchemes/ImpexDarcula.xml b/resources/colorSchemes/ImpexDarcula.xml index 76ef6348e..7d4718fbe 100644 --- a/resources/colorSchemes/ImpexDarcula.xml +++ b/resources/colorSchemes/ImpexDarcula.xml @@ -1,7 +1,7 @@