Skip to content

Commit

Permalink
877: Enhanced error outputting for new Magento 2 db schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-harniuk committed Dec 23, 2021
1 parent d890d83 commit 63ef611
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<properties/>
<border type="none"/>
<children>
<grid id="40126" layout-manager="GridLayoutManager" row-count="2" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="40126" layout-manager="GridLayoutManager" row-count="3" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
Expand Down Expand Up @@ -92,7 +92,7 @@
</component>
<component id="a42c4" class="javax.swing.JLabel" binding="tableEngineLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<labelFor value="21a4a"/>
Expand All @@ -101,7 +101,7 @@
</component>
<component id="d636e" class="javax.swing.JLabel" binding="tableCommentLabel">
<constraints>
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="2" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<labelFor value="dd0b9"/>
Expand All @@ -110,15 +110,15 @@
</component>
<component id="dd0b9" class="javax.swing.JTextField" binding="tableComment">
<constraints>
<grid row="1" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<grid row="2" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
<component id="21a4a" class="javax.swing.JComboBox" binding="tableEngine">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
</component>
Expand All @@ -128,6 +128,14 @@
</constraints>
<properties/>
</component>
<component id="e5139" class="javax.swing.JLabel" binding="tableNameErrorMessage">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value=""/>
</properties>
</component>
</children>
</grid>
<component id="4443e" class="javax.swing.JLabel" binding="tableColumnsLabel">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

@SuppressWarnings({"PMD.TooManyFields", "PMD.ExcessiveImports"})
public class NewDbSchemaDialog extends AbstractDialog {

private static final String TABLE_NAME = "Table Name";

private final Project project;
Expand Down Expand Up @@ -85,6 +86,7 @@ public class NewDbSchemaDialog extends AbstractDialog {
private JLabel tableResourceLabel;//NOPMD
private JLabel tableCommentLabel;//NOPMD
private JLabel tableColumnsLabel;//NOPMD
private JLabel tableNameErrorMessage;//NOPMD

/**
* Constructor.
Expand Down

0 comments on commit 63ef611

Please sign in to comment.