mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correct name for "check for updates" menu item on Mac (IDEA-70500)
This commit is contained in:
+9
@@ -19,6 +19,8 @@ import com.intellij.ide.BrowserUtil;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.openapi.application.ApplicationInfo;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.ui.BrowserHyperlinkListener;
|
||||
import com.intellij.ui.components.JBScrollPane;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
@@ -133,6 +135,7 @@ class UpdateInfoDialog extends AbstractUpdateDialog {
|
||||
private JLabel myPatchSizeLabel;
|
||||
private JEditorPane myUpdateMessageLabel;
|
||||
private JBScrollPane myScrollPane;
|
||||
private JLabel myManualCheckLabel;
|
||||
|
||||
public UpdateInfoPanel() {
|
||||
ApplicationInfo appInfo = ApplicationInfo.getInstance();
|
||||
@@ -177,6 +180,12 @@ class UpdateInfoDialog extends AbstractUpdateDialog {
|
||||
else {
|
||||
myPatchSizeLabel.setText(patch.getSize() + "MB");
|
||||
}
|
||||
|
||||
if (SystemInfo.isMac) {
|
||||
myManualCheckLabel.setText("<html><br>To check for new updates manually, use the <b>" +
|
||||
ApplicationNamesInfo.getInstance().getProductName() + " | Check for Updates</b> command.</html>");
|
||||
}
|
||||
|
||||
LabelTextReplacingUtil.replaceText(myPanel);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -107,7 +107,7 @@
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<component id="969e3" class="javax.swing.JLabel">
|
||||
<component id="969e3" class="javax.swing.JLabel" binding="myManualCheckLabel">
|
||||
<constraints>
|
||||
<grid row="5" column="1" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||
<gridbag weightx="1.0" weighty="0.0"/>
|
||||
@@ -144,7 +144,7 @@
|
||||
<properties>
|
||||
<contentType value="text/html"/>
|
||||
<editable value="false"/>
|
||||
<text value="<html> <head> </head> <body> </body> </html> "/>
|
||||
<text value="<html> <head> </head> <body> <p style="margin-top: 0"> </p> </body> </html> "/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
|
||||
Reference in New Issue
Block a user