// get existing theme names
Set<String> existingThemeNames = getExistingThemeNames(themesDirectory);
// create dialog
CreateUnderscoresThemePanel panel = new CreateUnderscoresThemePanel(existingThemeNames);
panel.showDialog();
if (!panel.isOK()) {
return;
}
// click OK
String name = panel.getThemeName().trim();
author = panel.getAuthor().trim();
authorUri = panel.getAuthorUri().trim();
description = panel.getDescription().trim();
// create folder name, function prefix, theme name
String themeFolerName = UnderscoresUtils.toFolderName(name);
_s = UnderscoresUtils.toTextDomain(name);
_s_ = UnderscoresUtils.toFunctionName(name);