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(
36
36
final @ NotNull String dtoType ,
37
37
final @ NotNull String acl ,
38
38
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 ;
47
47
}
48
48
49
49
/**
Original file line number Diff line number Diff line change @@ -312,10 +312,10 @@ private void initPropertiesTable() {
312
312
313
313
addProperty .addActionListener (e -> {
314
314
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
319
319
});
320
320
});
321
321
@@ -324,8 +324,12 @@ private void initPropertiesTable() {
324
324
325
325
private void initPropertyTypeColumn () {
326
326
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
+ );
329
333
}
330
334
331
335
private DefaultTableModel getPropertiesTable () {
Original file line number Diff line number Diff line change 22
22
import com .magento .idea .magento2plugin .magento .packages .Package ;
23
23
import com .magento .idea .magento2plugin .util .GetFirstClassOfFile ;
24
24
import com .magento .idea .magento2plugin .util .GetPhpClassByFQN ;
25
-
26
- import javax .swing .*;
27
25
import java .util .Properties ;
26
+ import javax .swing .JOptionPane ;
28
27
29
28
public class QueryGenerator extends FileGenerator {
30
29
private final UiComponentDataProviderData uiComponentGridDataProviderData ;
You can’t perform that action at this time.
0 commit comments