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 1919import com .magento .idea .magento2plugin .magento .packages .HttpMethod ;
2020import com .magento .idea .magento2plugin .magento .packages .WebApiResource ;
2121import com .magento .idea .magento2plugin .ui .FilteredComboBox ;
22+ import com .magento .idea .magento2plugin .util .magento .GetAclResourcesListUtil ;
2223import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
2324import java .awt .event .KeyEvent ;
2425import java .awt .event .WindowAdapter ;
2526import java .awt .event .WindowEvent ;
27+ import java .util .List ;
2628import javax .swing .JButton ;
2729import javax .swing .JComboBox ;
2830import javax .swing .JComponent ;
@@ -172,7 +174,12 @@ private void createUIComponents() {
172174 for (final String method : HttpMethod .getHttpMethodList ()) {
173175 httpMethod .addItem (new ComboBoxItemData (method , method ));
174176 }
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 );
176183 }
177184
178185 /**
You can’t perform that action at this time.
0 commit comments