| 184 | } |
| 185 | |
| 186 | void JavaSettingsWidget::initialize() |
| 187 | { |
| 188 | m_versionWidget->initialize(APPLICATION->javalist().get()); |
| 189 | m_versionWidget->selectSearch(); |
| 190 | m_versionWidget->setResizeOn(2); |
| 191 | auto s = APPLICATION->settings(); |
| 192 | // Memory |
| 193 | observedMinMemory = s->get("MinMemAlloc").toInt(); |
| 194 | observedMaxMemory = s->get("MaxMemAlloc").toInt(); |
| 195 | observedPermGenMemory = s->get("PermGen").toInt(); |
| 196 | m_minMemSpinBox->setValue(observedMinMemory); |
| 197 | m_maxMemSpinBox->setValue(observedMaxMemory); |
| 198 | m_permGenSpinBox->setValue(observedPermGenMemory); |
| 199 | updateThresholds(); |
| 200 | if (BuildConfig.JAVA_DOWNLOADER_ENABLED) { |
| 201 | m_autodownloadCheckBox->setChecked(true); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | void JavaSettingsWidget::refresh() |
| 206 | { |
nothing calls this directly
no test coverage detected