@NonNls public static String applicationName() { return ApplicationNamesInfo.getInstance().getFullProductName(); }
params.put("App Full Name", namesInfo.getFullProductName()); params.put("App Version name", appInfo.getVersionName()); params.put("Is EAP", Boolean.toString(appInfo.isEAP()));
@VisibleForTesting static Map<String, String> buildKeyValuesMap( @NotNull ErrorBean error, @NotNull ApplicationNamesInfo intelliJAppNameInfo, @NotNull ApplicationInfoEx intelliJAppExtendedInfo, @NotNull Application application) { Map<String, String> params = ImmutableMap.<String, String>builder() // required parameters .put(ERROR_MESSAGE_KEY, nullToNone(error.getMessage())) .put(ERROR_STACKTRACE_KEY, nullToNone(error.getStackTrace())) // end or required parameters .put(ERROR_DESCRIPTION_KEY, nullToNone(error.getDescription())) .put(LAST_ACTION_KEY, nullToNone(error.getLastAction())) .put(OS_NAME_KEY, SystemProperties.getOsName()) .put(JAVA_VERSION_KEY, SystemProperties.getJavaVersion()) .put(JAVA_VM_VENDOR_KEY, SystemProperties.getJavaVmVendor()) .put(APP_NAME_KEY, intelliJAppNameInfo.getFullProductName()) .put(APP_CODE_KEY, intelliJAppExtendedInfo.getPackageCode()) .put(APP_NAME_VERSION_KEY, intelliJAppExtendedInfo.getVersionName()) .put(APP_EAP_KEY, Boolean.toString(intelliJAppExtendedInfo.isEAP())) .put(APP_INTERNAL_KEY, Boolean.toString(application.isInternal())) .put(APP_VERSION_MAJOR_KEY, intelliJAppExtendedInfo.getMajorVersion()) .put(APP_VERSION_MINOR_KEY, intelliJAppExtendedInfo.getMinorVersion()) .put( PLUGIN_VERSION, ServiceManager.getService(PluginInfoService.class).getPluginVersion()) .build(); return params; }
@Before public void setUp() { error = new ErrorBean(new Throwable(TEST_MESSAGE), LAST_ACTION); when(mockAppNameInfo.getFullProductName()).thenReturn(FULL_PRODUCT_NAME); when(mockAppInfoEx.getPackageCode()).thenReturn(PACKAGE_CODE); when(mockAppInfoEx.getVersionName()).thenReturn(VERSION_NAME); when(mockAppInfoEx.getMajorVersion()).thenReturn(MAJOR_VERSION); when(mockAppInfoEx.getMinorVersion()).thenReturn(MINOR_VERSION); when(pluginInfoService.getPluginVersion()).thenReturn(PLUGIN_VERSION); }
public DisablePluginWarningDialog( @NotNull PluginId pluginId, @NotNull Component parentComponent) { super(parentComponent, false); this.pluginId = pluginId; IdeaPluginDescriptor plugin = PluginManager.getPlugin(pluginId); isRestartCapable = ApplicationManager.getApplication().isRestartCapable(); promptLabel.setText( GoogleCloudCoreMessageBundle.message( "error.dialog.disable.plugin.prompt", plugin.getName())); restartLabel.setText( GoogleCloudCoreMessageBundle.message( isRestartCapable ? "error.dialog.disable.plugin.restart" : "error.dialog.disable.plugin.norestart", ApplicationNamesInfo.getInstance().getFullProductName())); setTitle(GoogleCloudCoreMessageBundle.message("error.dialog.disable.plugin.title")); init(); }
params.put("App Full Name", applicationNamesInfo.getFullProductName()); params.put("Is EAP", Boolean.toString(appInfo.isEAP())); params.put("App Build", appInfo.getBuild().asString());