private JPanel mainPanel;
public DataTypePanel(ConnectionHandler connectionHandler) {
List<DataTypeDefinition> nativeDataTypes = connectionHandler.getInterfaceProvider().getNativeDataTypes().list();
String[] nativeDataTypeNames = new String[nativeDataTypes.size()];
PSQLCodeStyleSettings codeStyleSettings =
PSQLCodeStyleSettings.getInstance(connectionHandler.getProject());
CodeStyleCaseOption caseOption = codeStyleSettings.getCaseSettings().getDatatypeCaseOption();
for (int i=0; i<nativeDataTypes.size(); i++) {
String typeName = nativeDataTypes.get(i).getName();
typeName = caseOption.changeCase(typeName);
nativeDataTypeNames[i] = typeName;
}