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 91c4689 commit 1a51114
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions releases/Release_v1.3_2016-02-dd_HH-ss.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Welcome to `NetBeansIDE-AfterburnerFX-Plugin` with the new release `v1.3`.


#### Refactoring
#35 [Wizard] Change description from the CheckBox xy to LowerCase.
#32 [Optional Files] Refactore the description from the CheckBox to create a .properties file.
#30 [Optional Files] Move the CheckBoxes to lowercase to bottom.
#29 [Optional Files] Change description from CheckBox for injecting automatically into the file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ PluginVisualPanelOptionalFiles.cbShouldPropertiesCreated.text=Create an optional
PluginVisualPanelOptionalFiles.cbShouldCSScreated.text=Create an optional cascading style sheet (CSS) document.
PluginVisualPanelPrimaryFiles.tfPackage.text=
PluginVisualPanelPrimaryFiles.tfLocation.text=
PluginVisualPanelPrimaryFiles.cbFxmlToLowerCase.text=.fxml to lowercase
PluginVisualPanelOptionalFiles.cbCSStoLowerCase.text=.css as lowercase
PluginVisualPanelOptionalFiles.cbPropertiesToLowerCase.text=.properties as lowercase
PluginVisualPanelPrimaryFiles.cbFxmlToLowerCase.text={0}.fxml to lowercase
PluginVisualPanelOptionalFiles.cbCSStoLowerCase.text={0}.css as lowercase
PluginVisualPanelOptionalFiles.cbPropertiesToLowerCase.text={0}.properties as lowercase
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<ResourceString bundle="com/github/naoghuman/netbeanside/afterburnerfx/plugin/Bundle.properties" key="PluginVisualPanelOptionalFiles.cbShouldCSSinjected.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="focusable" type="boolean" value="false"/>
<Property name="iconTextGap" type="int" value="6"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[317, 23]"/>
</Property>
Expand All @@ -125,6 +126,7 @@
<ResourceString bundle="com/github/naoghuman/netbeanside/afterburnerfx/plugin/Bundle.properties" key="PluginVisualPanelOptionalFiles.cbShouldPropertiesInjected.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="focusable" type="boolean" value="false"/>
<Property name="iconTextGap" type="int" value="6"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[22, 22]"/>
</Property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void initComponents3() {
});
}

void initValues(String baseName, String packageName,
void initValues(String baseName, String packageName,
boolean shouldCreateCSS, boolean shouldCSStoLowerCase, boolean shouldInjectCSS,
boolean shouldCreateProperties, boolean shouldPropertiesToLowerCase, boolean shouldInjectProperties
) {
Expand Down Expand Up @@ -154,10 +154,15 @@ boolean shouldPropertiesToLowerCase() {
private void updateTextCreateFollowingFiles() {
taInfoOptionalFiles.setText(null);

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

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

final boolean shouldCSScreated = cbShouldCSScreated.isSelected();
if (shouldCSScreated) {
final StringBuilder sb = new StringBuilder();
final String cssFileName = cbCSStoLowerCase.isSelected() ? baseName.toLowerCase() : baseName;
sb.append("- ").append(packageName).append(cssFileName).append(".css"); // NOI18N
sb.append(cbCSStoLowerCase.isSelected() ? " (lowercase)" : ""); // NOI18N
sb.append(cbShouldCSSinjected.isSelected() ? " (injected)\n" : "\n"); // NOI18N
Expand All @@ -168,7 +173,6 @@ private void updateTextCreateFollowingFiles() {
final boolean shouldPropertiesCreated = cbShouldPropertiesCreated.isSelected();
if (shouldPropertiesCreated) {
final StringBuilder sb = new StringBuilder();
final String propertiesFileName = cbPropertiesToLowerCase.isSelected() ? baseName.toLowerCase() : baseName;
sb.append("- ").append(packageName).append(propertiesFileName).append(".properties"); // NOI18N
sb.append(cbPropertiesToLowerCase.isSelected() ? " (lowercase)" : ""); // NOI18N
sb.append(cbShouldPropertiesInjected.isSelected() ? " (injected)" : ""); // NOI18N
Expand Down Expand Up @@ -211,12 +215,14 @@ private void initComponents() {
cbShouldCSSinjected.setSelected(true);
org.openide.awt.Mnemonics.setLocalizedText(cbShouldCSSinjected, org.openide.util.NbBundle.getMessage(PluginVisualPanelOptionalFiles.class, "PluginVisualPanelOptionalFiles.cbShouldCSSinjected.text")); // NOI18N
cbShouldCSSinjected.setFocusable(false);
cbShouldCSSinjected.setIconTextGap(6);
cbShouldCSSinjected.setPreferredSize(new java.awt.Dimension(317, 23));
cbShouldCSSinjected.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);

cbShouldPropertiesInjected.setSelected(true);
org.openide.awt.Mnemonics.setLocalizedText(cbShouldPropertiesInjected, org.openide.util.NbBundle.getMessage(PluginVisualPanelOptionalFiles.class, "PluginVisualPanelOptionalFiles.cbShouldPropertiesInjected.text")); // NOI18N
cbShouldPropertiesInjected.setFocusable(false);
cbShouldPropertiesInjected.setIconTextGap(6);
cbShouldPropertiesInjected.setPreferredSize(new java.awt.Dimension(22, 22));
cbShouldPropertiesInjected.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,15 @@ 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 Down

0 comments on commit 1a51114

Please sign in to comment.