Skip to content

Commit ef59ba7

Browse files
committed
Removed unnecessary and confusing code.
FieldEditorPreferencePage automatically registers it's PreferenceStore in its fields, thus this calls were redundant.
1 parent e8ec710 commit ef59ba7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/PreferencePage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ protected void createFieldEditors() {
9595
this.arduinoPrivateLibPath = new PathEditor(Const.KEY_PRIVATE_LIBRARY_PATHS, Messages.ui_private_lib_path,
9696
Messages.ui_private_lib_path_help, parent);
9797
addField(this.arduinoPrivateLibPath);
98-
this.arduinoPrivateLibPath.setPreferenceStore(getPreferenceStore());
9998

10099
this.arduinoPrivateHardwarePath = new PathEditor(Const.KEY_PRIVATE_HARDWARE_PATHS,
101100
Messages.ui_private_hardware_path, Messages.ui_private_hardware_path_help, parent);
102101
addField(this.arduinoPrivateHardwarePath);
103-
this.arduinoPrivateHardwarePath.setPreferenceStore(getPreferenceStore());
104102

105103
Dialog.applyDialogFont(parent);
106104
createLine(parent, 4);

0 commit comments

Comments
 (0)