@@ -67,6 +67,7 @@ public class SettingsForm implements Configurable {
6767 private JCheckBox featureTwigIcon ;
6868 private JButton buttonAutoConfigure ;
6969 private JCheckBox featureTypeProvider ;
70+ private JCheckBox dismissYamlSchemaNotification ;
7071
7172 public SettingsForm (@ NotNull final Project project ) {
7273 this .project = project ;
@@ -143,6 +144,7 @@ public boolean isModified() {
143144 || !codeFoldingTwigConstant .isSelected () == getSettings ().codeFoldingTwigConstant
144145 || !featureTwigIcon .isSelected () == getSettings ().featureTwigIcon
145146 || !featureTypeProvider .isSelected () == getSettings ().featureTypeProvider
147+ || !dismissYamlSchemaNotification .isSelected () == getSettings ().dismissYamlSchemaNotification
146148
147149 || !directoryToApp .getText ().equals (getSettings ().directoryToApp )
148150 || !directoryToWeb .getText ().equals (getSettings ().directoryToWeb )
@@ -165,6 +167,7 @@ public void apply() throws ConfigurationException {
165167 getSettings ().codeFoldingTwigConstant = codeFoldingTwigConstant .isSelected ();
166168 getSettings ().featureTwigIcon = featureTwigIcon .isSelected ();
167169 getSettings ().featureTypeProvider = featureTypeProvider .isSelected ();
170+ getSettings ().dismissYamlSchemaNotification = dismissYamlSchemaNotification .isSelected ();
168171
169172 getSettings ().directoryToApp = directoryToApp .getText ();
170173 getSettings ().directoryToWeb = directoryToWeb .getText ();
@@ -198,6 +201,7 @@ private void updateUIFromSettings() {
198201 codeFoldingTwigConstant .setSelected (getSettings ().codeFoldingTwigConstant );
199202 featureTwigIcon .setSelected (getSettings ().featureTwigIcon );
200203 featureTypeProvider .setSelected (getSettings ().featureTypeProvider );
204+ dismissYamlSchemaNotification .setSelected (getSettings ().dismissYamlSchemaNotification );
201205
202206 directoryToApp .setText (getSettings ().directoryToApp );
203207 directoryToWeb .setText (getSettings ().directoryToWeb );
@@ -275,7 +279,7 @@ public static void show(@NotNull Project project) {
275279 panel1 = new JPanel ();
276280 panel1 .setLayout (new GridLayoutManager (2 , 5 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
277281 final JPanel panel2 = new JPanel ();
278- panel2 .setLayout (new FormLayout ("fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow" , "center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:6dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow" ));
282+ panel2 .setLayout (new FormLayout ("fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow" , "center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:6dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow " ));
279283 panel1 .add (panel2 , new GridConstraints (1 , 0 , 1 , 5 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_BOTH , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , null , null , null , 0 , false ));
280284 directoryToWebLabel = new JLabel ();
281285 directoryToWebLabel .setText ("Web Directory" );
@@ -332,19 +336,23 @@ public static void show(@NotNull Project project) {
332336 panel2 .add (featureTwigIcon , cc .xy (3 , 25 ));
333337 directoryToAppLabel = new JLabel ();
334338 directoryToAppLabel .setText ("App Directory" );
335- panel2 .add (directoryToAppLabel , cc .xy (1 , 31 ));
339+ panel2 .add (directoryToAppLabel , cc .xy (1 , 33 ));
336340 directoryToApp = new TextFieldWithBrowseButton ();
337- panel2 .add (directoryToApp , cc .xy (3 , 31 , CellConstraints .FILL , CellConstraints .DEFAULT ));
341+ panel2 .add (directoryToApp , cc .xy (3 , 33 , CellConstraints .FILL , CellConstraints .DEFAULT ));
338342 directoryToAppReset = new JButton ();
339343 directoryToAppReset .setText ("Default" );
340- panel2 .add (directoryToAppReset , cc .xy (5 , 31 ));
344+ panel2 .add (directoryToAppReset , cc .xy (5 , 33 ));
341345 final JLabel label5 = new JLabel ();
342346 label5 .setText ("Legacy Features" );
343- panel2 .add (label5 , cc .xy (1 , 29 ));
347+ panel2 .add (label5 , cc .xy (1 , 31 ));
344348 featureTypeProvider = new JCheckBox ();
345349 featureTypeProvider .setText ("Type Provider" );
346350 featureTypeProvider .setToolTipText ("Resolve return type via parameter eg \" ContainerInterface::get, EntityManager::find\" " );
347- panel2 .add (featureTypeProvider , cc .xy (3 , 27 ));
351+ panel2 .add (featureTypeProvider , cc .xy (3 , 29 ));
352+ dismissYamlSchemaNotification = new JCheckBox ();
353+ dismissYamlSchemaNotification .setText ("Dismiss YAML Schema Notification" );
354+ dismissYamlSchemaNotification .setToolTipText ("Don't show notification banner suggesting to add YAML schema hint for Symfony service files" );
355+ panel2 .add (dismissYamlSchemaNotification , cc .xy (3 , 27 ));
348356 pluginEnabled = new JCheckBox ();
349357 pluginEnabled .setText ("Enable for Project (needs restart)" );
350358 panel1 .add (pluginEnabled , new GridConstraints (0 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
0 commit comments