Skip to content

Commit cedfc02

Browse files
committed
Form code-behind updated by IntelliJ GUI designer
1 parent 0de4bf0 commit cedfc02

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

src/main/com/intellij/lang/jsgraphql/ui/GraphQLProjectSettingsForm.java

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
import com.intellij.openapi.options.ConfigurationException;
1212
import com.intellij.ui.IdeBorderFactory;
1313
import com.intellij.ui.components.fields.ExpandableTextField;
14+
import com.intellij.uiDesigner.core.GridConstraints;
15+
import com.intellij.uiDesigner.core.GridLayoutManager;
16+
import com.intellij.uiDesigner.core.Spacer;
1417

1518
import javax.swing.*;
1619
import java.awt.*;
@@ -77,4 +80,54 @@ boolean isModified() {
7780
return false;
7881
}
7982

83+
{
84+
// GUI initializer generated by IntelliJ IDEA GUI Designer
85+
// >>> IMPORTANT!! <<<
86+
// DO NOT EDIT OR ADD ANY CODE HERE!
87+
$$$setupUI$$$();
88+
}
89+
90+
/**
91+
* Method generated by IntelliJ IDEA GUI Designer
92+
* >>> IMPORTANT!! <<<
93+
* DO NOT edit this method OR call it in your code!
94+
*
95+
* @noinspection ALL
96+
*/
97+
private void $$$setupUI$$$() {
98+
rootPanel = new JPanel();
99+
rootPanel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
100+
final Spacer spacer1 = new Spacer();
101+
rootPanel.add(spacer1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
102+
introspectionPanel = new JPanel();
103+
introspectionPanel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
104+
rootPanel.add(introspectionPanel, 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));
105+
introspectionQueryTextField = new ExpandableTextField();
106+
introspectionQueryTextField.setEnabled(true);
107+
introspectionQueryTextField.setHorizontalAlignment(2);
108+
introspectionQueryTextField.setToolTipText("Use a different introspection query for cases where the GraphQL endpoint is incompatible with the plugin introspection query");
109+
introspectionPanel.add(introspectionQueryTextField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
110+
final JLabel label1 = new JLabel();
111+
label1.setText("Introspection Query (Leave blank for default)");
112+
introspectionPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
113+
automaticallyUpdateGraphQLFilesCheckBox = new JCheckBox();
114+
automaticallyUpdateGraphQLFilesCheckBox.setEnabled(false);
115+
automaticallyUpdateGraphQLFilesCheckBox.setText("Automatically update GraphQL files printed from introspection Json files when modified !TODO!");
116+
introspectionPanel.add(automaticallyUpdateGraphQLFilesCheckBox, 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));
117+
relayModernPanel = new JPanel();
118+
relayModernPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
119+
rootPanel.add(relayModernPanel, new GridConstraints(1, 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));
120+
enableRelayModernCheckBox = new JCheckBox();
121+
enableRelayModernCheckBox.setEnabled(true);
122+
enableRelayModernCheckBox.setText("Enable Relay Modern support");
123+
enableRelayModernCheckBox.setToolTipText("Adds Relay Modern directives to schema discovery and filters non-spec errors such as fragment arguments");
124+
relayModernPanel.add(enableRelayModernCheckBox, 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));
125+
}
126+
127+
/**
128+
* @noinspection ALL
129+
*/
130+
public JComponent $$$getRootComponent$$$() {
131+
return rootPanel;
132+
}
80133
}

0 commit comments

Comments
 (0)