11package de .espend .idea .php .annotation .ui ;
22
33import com .intellij .openapi .options .Configurable ;
4+ import com .intellij .uiDesigner .core .GridConstraints ;
5+ import com .intellij .uiDesigner .core .GridLayoutManager ;
6+ import com .intellij .uiDesigner .core .Spacer ;
47import de .espend .idea .php .annotation .ApplicationSettings ;
58import de .espend .idea .php .annotation .util .PluginUtil ;
69import org .jetbrains .annotations .Nls ;
710import org .jetbrains .annotations .Nullable ;
811
912import javax .swing .*;
13+ import java .awt .*;
1014import java .awt .event .MouseAdapter ;
1115import java .awt .event .MouseEvent ;
1216
@@ -50,7 +54,7 @@ public JComponent createComponent() {
5054 public boolean isModified () {
5155 return
5256 !appendRoundBracket .isSelected () == ApplicationSettings .getInstance ().appendRoundBracket
53- ;
57+ ;
5458 }
5559
5660 @ Override
@@ -71,4 +75,49 @@ private void updateUIFromSettings() {
7175 public void disposeUIResources () {
7276
7377 }
78+
79+ {
80+ // GUI initializer generated by IntelliJ IDEA GUI Designer
81+ // >>> IMPORTANT!! <<<
82+ // DO NOT EDIT OR ADD ANY CODE HERE!
83+ $$$setupUI$$$ ();
84+ }
85+
86+ /**
87+ * Method generated by IntelliJ IDEA GUI Designer
88+ * >>> IMPORTANT!! <<<
89+ * DO NOT edit this method OR call it in your code!
90+ *
91+ * @noinspection ALL
92+ */
93+ private void $$$setupUI$$$ () {
94+ panel = new JPanel ();
95+ panel .setLayout (new GridLayoutManager (4 , 1 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
96+ final JLabel label1 = new JLabel ();
97+ label1 .setText ("Autocomplete (Annotations)" );
98+ panel .add (label1 , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
99+ final Spacer spacer1 = new Spacer ();
100+ panel .add (spacer1 , new GridConstraints (3 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_VERTICAL , 1 , GridConstraints .SIZEPOLICY_WANT_GROW , null , null , null , 0 , false ));
101+ appendRoundBracket = new JCheckBox ();
102+ appendRoundBracket .setText ("Insert round bracket after class name" );
103+ panel .add (appendRoundBracket , new GridConstraints (2 , 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 ));
104+ final JPanel panel1 = new JPanel ();
105+ panel1 .setLayout (new GridLayoutManager (2 , 2 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
106+ panel .add (panel1 , new GridConstraints (0 , 0 , 1 , 1 , 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 ));
107+ final JLabel label2 = new JLabel ();
108+ label2 .setText ("Actions" );
109+ panel1 .add (label2 , new GridConstraints (0 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
110+ buttonCleanIndex = new JButton ();
111+ buttonCleanIndex .setText ("Schedule annotation reindex" );
112+ panel1 .add (buttonCleanIndex , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
113+ final Spacer spacer2 = new Spacer ();
114+ panel1 .add (spacer2 , new GridConstraints (1 , 1 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , 1 , null , null , null , 0 , false ));
115+ }
116+
117+ /**
118+ * @noinspection ALL
119+ */
120+ public JComponent $$$getRootComponent$$$ () {
121+ return panel ;
122+ }
74123}
0 commit comments