18
18
import com .magento .idea .magento2plugin .actions .generation .generator .xml .WebApiDeclarationGenerator ;
19
19
import com .magento .idea .magento2plugin .magento .packages .HttpMethod ;
20
20
import com .magento .idea .magento2plugin .magento .packages .WebApiResource ;
21
- import com .magento .idea .magento2plugin .ui .FilteredComboBox ;
22
21
import com .magento .idea .magento2plugin .util .magento .GetAclResourcesListUtil ;
23
22
import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
24
23
import java .awt .event .KeyEvent ;
@@ -56,7 +55,7 @@ public class NewWebApiDeclarationDialog extends AbstractDialog {
56
55
private JComboBox <ComboBoxItemData > httpMethod ;
57
56
private JTextField serviceClass ;
58
57
private JTextField serviceMethod ;
59
- private JComboBox aclResource ;
58
+ private JComboBox < ComboBoxItemData > aclResource ;
60
59
61
60
// labels
62
61
private JLabel routeUrlLabel ;//NOPMD
@@ -170,6 +169,7 @@ private void fillPredefinedValuesAndDisableInputs() {
170
169
@ SuppressWarnings ({"PMD.UnusedPrivateMethod" , "PMD.AvoidInstantiatingObjectsInLoops" })
171
170
private void createUIComponents () {
172
171
httpMethod = new ComboBox <>();
172
+ aclResource = new ComboBox <>();
173
173
174
174
for (final String method : HttpMethod .getHttpMethodList ()) {
175
175
httpMethod .addItem (new ComboBoxItemData (method , method ));
@@ -179,7 +179,9 @@ private void createUIComponents() {
179
179
final List <String > defaultResources = WebApiResource .getDefaultResourcesList ();
180
180
defaultResources .addAll (aclResources );
181
181
182
- aclResource = new FilteredComboBox (defaultResources );
182
+ for (final String acl : defaultResources ) {
183
+ aclResource .addItem (new ComboBoxItemData (acl , acl ));
184
+ }
183
185
}
184
186
185
187
/**
0 commit comments