Skip to content

Commit

Permalink
Reuse getPathField method
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Feb 20, 2022
1 parent 3f6d460 commit 9758503
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void displayNotFoundWarning() {
} else {
PreferenceDialog preferenceDialog = PreferencesUtil.createPreferenceDialogOn(null, PreferencePage.PAGE_ID,
null, null);
((PreferencePage) preferenceDialog.getSelectedPage()).getReadaptPath().setFocus();
((PreferencePage) preferenceDialog.getSelectedPage()).getPathField("readapt").setFocus();
preferenceDialog.open();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,4 @@ public FileFieldEditor getPathField(String gem) {
return "readapt".equalsIgnoreCase(gem) ? readaptPath : gemPath;
}

public FileFieldEditor getGemPath() {
return gemPath;
}

public FileFieldEditor getReadaptPath() {
return readaptPath;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void displayNotFoundWarning() {
} else {
PreferenceDialog preferenceDialog = PreferencesUtil.createPreferenceDialogOn(null, PreferencePage.PAGE_ID,
null, null);
((PreferencePage) preferenceDialog.getSelectedPage()).getGemPath().setFocus();
((PreferencePage) preferenceDialog.getSelectedPage()).getPathField("solargraph").setFocus();
preferenceDialog.open();
}
});
Expand Down

0 comments on commit 9758503

Please sign in to comment.