void (boolean success, boolean restartRequired) { myIndicator = null; myLayout.removeProgressComponent(); if (success) { if (restartRequired) { enableRestart(); } else { if (myInstallButton != null) { myInstallButton.setEnabled(false, IdeBundle.message("plugin.status.installed")); if (PluginDetailsPageComponent.isMultiTabs() && myInstallButton.isVisible()) { myInstalledDescriptorForMarketplace = PluginManagerCore.findPlugin(myPlugin.getPluginId()); if (myInstalledDescriptorForMarketplace != null) { myInstallButton.setVisible(false); myEnableDisableButton.setVisible(true); myVersion.setText(myInstalledDescriptorForMarketplace.getVersion()); myVersion.setVisible(true); updateEnabledStateUI(); fullRepaint(); return; } } } if (myUpdateButton != null) { myUpdateButton.setEnabled(false); myUpdateButton.setText(IdeBundle.message("plugin.status.installed")); myAfterUpdate = true; } if (myEnableDisableButton != null) { myLayout.removeButtonComponent(myEnableDisableButton); myEnableDisableButton = null; if (myAlignButton != null) { myAlignButton.setVisible(true); } } } } fullRepaint(); }