package ;
import ;
import ;
import ;
import ;
import ;
import ;
import .*;
import .*;
public class SettingDialog extends JFrame {
private JPanel contentPane;
private JRadioButton fieldPublicRadioButton;
private JRadioButton fieldPrivateRadioButton;
private JCheckBox useSerializedNameCheckBox;
private JButton objectButton;
private JButton object1Button;
private JButton arrayButton;
private JButton array1Button;
private JTextField suffixEdit;
private JCheckBox objectFromDataCB;
private JCheckBox objectFromData1CB;
private JCheckBox arrayFromDataCB;
private JCheckBox arrayFromData1CB;
private JCheckBox reuseEntityCB;
/**
* Whether the checkBox control named by camel
*/
private JCheckBox isAutoName;
private JButton cancelButton;
private JButton okButton;
private JTextField filedPrefixTF;
private JCheckBox filedPrefixCB;
private JRadioButton gsonJRB;
private JRadioButton jackRB;
private JRadioButton fastJsonRB;
private JRadioButton otherRB;
private JTextField annotationFT;
private JCheckBox virgoModelCB;
private JCheckBox generateCommentsCT;
private JRadioButton loganSquareCB;
private JRadioButton autoValueRadioButton;
private JCheckBox splitGenerateMode;
private JRadioButton lombokRB;
private String annotaionStr;
private JCheckBox useWrapperClassCB;
public SettingDialog(Project project) {
setContentPane(contentPane);
// setModal(true);
getRootPane().setDefaultButton(okButton);
this.setAlwaysOnTop(true);
setTitle("Setting");
(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onOK();
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onCancel();
}
});
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
onCancel();
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onCancel();
}
}, (KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
if (().isFieldPrivateMode()) {
(true);
} else {
(true);
}
(().isVirgoMode());
(().isGenerateComments());
(().isUseFieldNamePrefix());
(().isUseFieldNamePrefix());
(().isUseSerializedName());
(().isObjectFromData());
(().isObjectFromData1());
(().isArrayFromData());
(().isArrayFromData1());
(().isReuseEntity());
/**
* The value of the initialization interface
*/
(().isAutoName());
(());
(());
(());
(());
(().getSuffixStr());
(().isSplitGenerate());
(().isUseWrapperClass());
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
(());
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
(());
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
(());
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
(());
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
(());
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
("@{filed}");
(());
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (()) {
();
}
(());
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (()) {
();
}
(());
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
}
});
String filedPrefix = null;
filedPrefix = ().getFiledNamePreFixStr();
if ((filedPrefix)) {
JavaCodeStyleManager styleManager = (project);
filedPrefix = (
);
}
(filedPrefix);
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (()) {
();
}
(true);
(true);
(true);
(true);
(false);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (()) {
();
}
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (()) {
();
}
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
(false);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (()) {
();
}
}
});
annotaionStr = ().getAnnotationStr();
if (()) {
(true);
(false);
} else if (()) {
(true);
(false);
} else if (()) {
(true);
(false);
} else if (()) {
(true);
(false);
} else if (()) {
(true);
(false);
} else {
(true);
(true);
}
(annotaionStr);
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
EditDialog editDialog = new EditDialog(.OBJECT_FROM_DATA);
(600, 360);
(null);
(false);
(true);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
EditDialog editDialog = new EditDialog(.OBJECT_FROM_DATA1);
(600, 360);
(null);
(false);
(true);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
EditDialog editDialog = new EditDialog(.ARRAY_FROM_DATA);
(600, 600);
(null);
(false);
(true);
}
});
(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
EditDialog editDialog = new EditDialog(.ARRAY_FROM_DATA1);
(600, 600);
(null);
(false);
(true);
}
});
}
/**
* Click OK to save the parameters
*/
private void onOK() {
().setFieldPrivateMode(());
().setUseSerializedName(());
().setArrayFromData(());
().setArrayFromData1(());
().setObjectFromData(());
().setObjectFromData1(());
().setReuseEntity(());
/**
* Camel naming parameter configuration save
*/
().setIsAutoName(());
().setSuffixStr(());
().setVirgoMode(());
().setGenerateComments(());
().setFiledNamePreFixStr(());
().setAnnotationStr(());
().setUseFieldNamePrefix(());
().setSplitGenerate(());
().setUseWrapperClass(());
().save();
dispose();
}
private void createUIComponents() {
}
private void onCancel() {
dispose();
}
}