mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use full name of the product (IDEA-106274)
This commit is contained in:
+15
-4
@@ -41,12 +41,23 @@ public class LabelTextReplacingUtil {
|
||||
if (child instanceof JLabel) {
|
||||
final JLabel label = (JLabel)child;
|
||||
String oldText = label.getText();
|
||||
if (oldText == null) continue;
|
||||
String newText = StringUtil.replace(oldText, "$PRODUCT$", ApplicationNamesInfo.getInstance().getProductName());
|
||||
newText = StringUtil.replace(newText, "$FULLNAME$", ApplicationNamesInfo.getInstance().getFullProductName());
|
||||
label.setText(newText);
|
||||
if (oldText != null) {
|
||||
label.setText(doReplace(oldText));
|
||||
}
|
||||
}
|
||||
else if (child instanceof AbstractButton) {
|
||||
AbstractButton button = (AbstractButton)child;
|
||||
String oldText = button.getText();
|
||||
if (oldText != null) {
|
||||
button.setText(doReplace(oldText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static String doReplace(String oldText) {
|
||||
String newText = StringUtil.replace(oldText, "$PRODUCT$", ApplicationNamesInfo.getInstance().getProductName());
|
||||
newText = StringUtil.replace(newText, "$FULLNAME$", ApplicationNamesInfo.getInstance().getFullProductName());
|
||||
return newText;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -887,11 +887,11 @@ updates.press.more.info.label=<html><br>Press <b>More Info...</b> to open a web
|
||||
updates.check.manually.label=<html><br>To check for new updates manually, use the <b>Help | Check for Updates</b> command.</html>
|
||||
updates.settings.title=Updates
|
||||
updates.last.check.never=Never
|
||||
updates.settings.caption.1=<html>$PRODUCT$ can automatically check for new and updated versions of itself, using your internet connection (when active).<html>
|
||||
updates.settings.caption.1=<html>$FULLNAME$ can automatically check for new and updated versions of itself, using your internet connection (when active).<html>
|
||||
updates.settings.check.now.button=&Check Now
|
||||
updates.settings.checkbox=Check for updates in channel
|
||||
updates.settings.build.number= Build number:
|
||||
updates.settings.current.version=Current $PRODUCT$ version:
|
||||
updates.settings.current.version=Current $FULLNAME$ version\:
|
||||
updates.settings.last.check=Last checked for updates:
|
||||
|
||||
hierarchy.method.next.occurence.name=Go to next method
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<grid id="27dc6" binding="myPanel" layout-manager="GridLayoutManager" row-count="17" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
<xy x="20" y="20" width="522" height="565"/>
|
||||
<xy x="20" y="20" width="536" height="565"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
@@ -13,7 +13,7 @@
|
||||
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text value="Create IDEA &modules for aggregator projects (with 'pom' packaging)"/>
|
||||
<text value="Create $FULLNAME$ &modules for aggregator projects (with 'pom' packaging)"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="2b9b5" class="javax.swing.JCheckBox" binding="myCreateGroupsCheckBox" default-binding="true">
|
||||
|
||||
+3
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.jetbrains.idea.maven.project;
|
||||
|
||||
import com.intellij.openapi.updateSettings.impl.LabelTextReplacingUtil;
|
||||
import com.intellij.ui.ListCellRendererWrapper;
|
||||
import com.intellij.ide.util.projectWizard.WizardContext;
|
||||
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory;
|
||||
@@ -80,6 +81,8 @@ public class MavenImportingSettingsForm {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
LabelTextReplacingUtil.replaceText(myPanel);
|
||||
}
|
||||
|
||||
private void createUIComponents() {
|
||||
|
||||
Reference in New Issue
Block a user