hide plugins update message when no plugins detected (IDEA-77862)

(cherry picked from commit c76da5bb27fef3c16944e8b53f13b64905a5d63e)
This commit is contained in:
anna
2011-12-06 10:37:59 +01:00
parent 0702bbe41e
commit 3519e3d598
2 changed files with 4 additions and 2 deletions
@@ -64,9 +64,11 @@ class NoUpdatesDialog extends AbstractUpdateDialog {
private JPanel myPluginsPanel;
private JEditorPane myEditorPane;
private JLabel myNothingFoundToUpdateLabel;
private JLabel myPluginsToUpdateLabel;
public NoUpdatesPanel() {
initPluginsPanel(myPanel, myPluginsPanel, myEditorPane);
myPluginsToUpdateLabel.setVisible(myUploadedPlugins != null);
myNothingFoundToUpdateLabel.setVisible(myUploadedPlugins == null);
myNothingFoundToUpdateLabel.setText("You already have the latest version of " +
ApplicationInfo.getInstance().getVersionName()+ " installed.");
@@ -7,7 +7,7 @@
<properties/>
<border type="none"/>
<children>
<component id="6b492" class="javax.swing.JLabel">
<component id="6b492" class="javax.swing.JLabel" binding="myPluginsToUpdateLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="1" fill="1" indent="0" use-parent-layout="false"/>
<gridbag top="0" left="0" bottom="3" right="0" weightx="1.0" weighty="0.0"/>
@@ -52,7 +52,7 @@
<properties>
<contentType value="text/html"/>
<maximumSize width="2147483647" height="25"/>
<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;"/>
<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;"/>
</properties>
</component>
<vspacer id="bf1d9">