correct name for "check for updates" menu item on Mac (IDEA-70500)

This commit is contained in:
Dmitry Jemerov
2011-08-02 20:01:19 +02:00
parent f504c3545b
commit 64d982cce2
2 changed files with 11 additions and 2 deletions
@@ -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);
}
}
@@ -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="&lt;html&gt;&#13;&#10; &lt;head&gt;&#13;&#10; &#13;&#10; &lt;/head&gt;&#13;&#10; &lt;body&gt;&#13;&#10; &lt;/body&gt;&#13;&#10;&lt;/html&gt;&#13;&#10;"/>
<text value="&lt;html&gt;&#13;&#10; &lt;head&gt;&#13;&#10;&#13;&#10; &lt;/head&gt;&#13;&#10; &lt;body&gt;&#13;&#10; &lt;p style=&quot;margin-top: 0&quot;&gt;&#13;&#10; &#13;&#10; &lt;/p&gt;&#13;&#10; &lt;/body&gt;&#13;&#10;&lt;/html&gt;&#13;&#10;"/>
</properties>
</component>
</children>