Skip to content

Commit 117b1f6

Browse files
Phillip KrallPhillip Krall
authored andcommitted
Load Pref into the boolean on the pref obj
1 parent 4918c57 commit 117b1f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/runtime/preferences/impl/PreferencesManagerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private void initLoadPreferencesStore() {
239239
*/
240240
public void storePreferences(IPreferences thePreferences) {
241241
preferences = thePreferences;
242-
242+
243243
storeProjectBuildPathEnabled();
244244
storePmdPerspectiveEnabled();
245245
storePmdViolationsOverviewEnabled();
@@ -292,12 +292,12 @@ private void loadPmdPerspectiveEnabled() {
292292

293293
private void loadPmdViolationsOverviewEnabled() {
294294
loadPreferencesStore.setDefault(PMD_VIOLATIONS_OVERVIEW_ENABLED, IPreferences.PMD_VIOLATIONS_OVERVIEW_ENABLED_DEFAULT);
295-
preferences.setPmdPerspectiveEnabled(loadPreferencesStore.getBoolean(PMD_VIOLATIONS_OVERVIEW_ENABLED));
295+
preferences.setPmdViolationsOverviewEnabled(loadPreferencesStore.getBoolean(PMD_VIOLATIONS_OVERVIEW_ENABLED));
296296
}
297297

298298
private void loadPmdViolationsOutlineEnabled() {
299299
loadPreferencesStore.setDefault(PMD_VIOLATIONS_OUTLINE_ENABLED, IPreferences.PMD_VIOLATIONS_OUTLINE_ENABLED_DEFAULT);
300-
preferences.setPmdPerspectiveEnabled(loadPreferencesStore.getBoolean(PMD_VIOLATIONS_OUTLINE_ENABLED));
300+
preferences.setPmdViolationsOutlineEnabled(loadPreferencesStore.getBoolean(PMD_VIOLATIONS_OUTLINE_ENABLED));
301301
}
302302

303303
private void loadCheckAfterSaveEnabled() {

0 commit comments

Comments
 (0)