File tree Expand file tree Collapse file tree 3 files changed +19
-16
lines changed
src/com/magento/idea/magento2plugin/actions/generation Expand file tree Collapse file tree 3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ public SaveEntityControllerFileData(
3636 final @ NotNull String dtoType ,
3737 final @ NotNull String acl ,
3838 final @ NotNull String entityId
39- ) {
40- this .entityName = entityName ;
41- this .moduleName = moduleName ;
42- this .namespace = namespace ;
43- this .saveCommandFqn = saveCommandFqn ;
44- this .dtoType = dtoType ;
45- this .acl = acl ;
46- this .entityId = entityId ;
39+ ) {
40+ this .entityName = entityName ;
41+ this .moduleName = moduleName ;
42+ this .namespace = namespace ;
43+ this .saveCommandFqn = saveCommandFqn ;
44+ this .dtoType = dtoType ;
45+ this .acl = acl ;
46+ this .entityId = entityId ;
4747 }
4848
4949 /**
Original file line number Diff line number Diff line change @@ -312,10 +312,10 @@ private void initPropertiesTable() {
312312
313313 addProperty .addActionListener (e -> {
314314 propertiesTable .addRow (new Object []{
315- "" ,
316- PropertiesTypes .valueOf (PropertiesTypes .INT .toString ())
317- .getPropertyType (),
318- PROPERTY_DELETE
315+ "" ,
316+ PropertiesTypes .valueOf (PropertiesTypes .INT .toString ())
317+ .getPropertyType (),
318+ PROPERTY_DELETE
319319 });
320320 });
321321
@@ -324,8 +324,12 @@ private void initPropertiesTable() {
324324
325325 private void initPropertyTypeColumn () {
326326 final TableColumn formElementTypeColumn = propertyTable .getColumn (PROPERTY_TYPE );
327- formElementTypeColumn .setCellEditor (new ComboBoxEditor (PropertiesTypes .getPropertyTypes ()));
328- formElementTypeColumn .setCellRenderer (new ComboBoxTableRenderer <>(PropertiesTypes .getPropertyTypes ()));
327+ formElementTypeColumn .setCellEditor (
328+ new ComboBoxEditor (PropertiesTypes .getPropertyTypes ())
329+ );
330+ formElementTypeColumn .setCellRenderer (
331+ new ComboBoxTableRenderer <>(PropertiesTypes .getPropertyTypes ())
332+ );
329333 }
330334
331335 private DefaultTableModel getPropertiesTable () {
Original file line number Diff line number Diff line change 2222import com .magento .idea .magento2plugin .magento .packages .Package ;
2323import com .magento .idea .magento2plugin .util .GetFirstClassOfFile ;
2424import com .magento .idea .magento2plugin .util .GetPhpClassByFQN ;
25-
26- import javax .swing .*;
2725import java .util .Properties ;
26+ import javax .swing .JOptionPane ;
2827
2928public class QueryGenerator extends FileGenerator {
3029 private final UiComponentDataProviderData uiComponentGridDataProviderData ;
You can’t perform that action at this time.
0 commit comments