Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
#35 [Wizard] Change description from the CheckBox xy to LowerCase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoghuman committed Mar 13, 2016
1 parent 7e85e1c commit 2e0d069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ private void updateTextCreateFollowingFiles() {
taInfoOptionalFiles.setText(null);

final String cssFileName = cbCSStoLowerCase.isSelected() ? baseName.toLowerCase() : baseName;
cbCSStoLowerCase.setText("File " + cssFileName + ".css to lowercase"); // NOI18N
cbCSStoLowerCase.setText("File " + cssFileName + ".css should be lowercase."); // NOI18N

final String propertiesFileName = cbPropertiesToLowerCase.isSelected() ? baseName.toLowerCase() : baseName;
cbPropertiesToLowerCase.setText("File " + propertiesFileName + ".properties to lowercase"); // NOI18N
cbPropertiesToLowerCase.setText("File " + propertiesFileName + ".properties should be lowercase."); // NOI18N

final boolean shouldCSScreated = cbShouldCSScreated.isSelected();
if (shouldCSScreated) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,13 @@ private void updateTextCreateFollowingFiles(boolean shouldInfoCreateFollwingFile
return;
}

final String fxmlFileName = shouldFXMLtoLowerCase ? fileName.toLowerCase() : fileName;
// cbFxmlToLowerCase.setText("File " + fxmlFileName + ".fxml to lowercase"); // NOI18N

final StringBuilder sb = new StringBuilder();
String packageName = this.getPackageName().replace(SIGN_CHAR_DOT, File.separatorChar);
if (!packageName.endsWith(File.separator)) {
packageName += File.separator;
}

final String fxmlFileName = shouldFXMLtoLowerCase ? fileName.toLowerCase() : fileName;
final String hitLowerCase = shouldFXMLtoLowerCase ? " (lowercase)\n" : "\n"; // NOI18N
sb.append("- ").append(packageName).append(fxmlFileName).append(".fxml").append(hitLowerCase); // NOI18N
sb.append("- ").append(packageName).append(fileName).append("Presenter.java\n"); // NOI18N
Expand All @@ -259,7 +257,7 @@ private void updateTextUpdateFxmlToLowerCase() {
}

final String fxmlFileName = shouldFXMLtoLowerCase ? fileName.toLowerCase() : fileName;
cbFxmlToLowerCase.setText("File " + fxmlFileName + ".fxml to lowercase"); // NOI18N
cbFxmlToLowerCase.setText("File " + fxmlFileName + ".fxml should be lowercase."); // NOI18N
}

/**
Expand Down

0 comments on commit 2e0d069

Please sign in to comment.