added API to extend base panel in new project dialog

This commit is contained in:
Ekaterina Tuzova
2014-07-31 18:16:02 +04:00
parent cfedbcc1be
commit 44a1a63d3c
@@ -198,13 +198,23 @@ abstract public class AbstractProjectSettingsStep extends AbstractActionWithPane
c.gridy = 1;
c.weightx = 1.;
panel.add(mySdkCombo, c);
final JPanel basePanelExtension = extendBasePanel();
if (basePanelExtension != null) {
c.gridwidth = 2;
c.gridy = 2;
c.gridx = 0;
panel.add(basePanelExtension, c);
}
registerValidators();
return panel;
}
protected void registerValidators() {
@Nullable
protected JPanel extendBasePanel() {
return null;
}
protected void registerValidators() {
myLocationField.getTextField().getDocument().addDocumentListener(new DocumentAdapter() {
@Override
protected void textChanged(DocumentEvent e) {