File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 19
19
import com .magento .idea .magento2plugin .magento .packages .HttpMethod ;
20
20
import com .magento .idea .magento2plugin .magento .packages .WebApiResource ;
21
21
import com .magento .idea .magento2plugin .ui .FilteredComboBox ;
22
+ import com .magento .idea .magento2plugin .util .magento .GetAclResourcesListUtil ;
22
23
import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
23
24
import java .awt .event .KeyEvent ;
24
25
import java .awt .event .WindowAdapter ;
25
26
import java .awt .event .WindowEvent ;
27
+ import java .util .List ;
26
28
import javax .swing .JButton ;
27
29
import javax .swing .JComboBox ;
28
30
import javax .swing .JComponent ;
@@ -172,7 +174,12 @@ private void createUIComponents() {
172
174
for (final String method : HttpMethod .getHttpMethodList ()) {
173
175
httpMethod .addItem (new ComboBoxItemData (method , method ));
174
176
}
175
- aclResource = new FilteredComboBox (WebApiResource .getDefaultResourcesList ());
177
+
178
+ final List <String > aclResources = GetAclResourcesListUtil .execute (project );
179
+ final List <String > defaultResources = WebApiResource .getDefaultResourcesList ();
180
+ defaultResources .addAll (aclResources );
181
+
182
+ aclResource = new FilteredComboBox (defaultResources );
176
183
}
177
184
178
185
/**
You can’t perform that action at this time.
0 commit comments