Skip to content

Commit

Permalink
Shorten preferences with potentially long values
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 17, 2024
1 parent cc0aa33 commit 4dece3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void createFieldEditors() {
Font defaultFont = parent.getFont();

Group pathsGroup = new Group(parent, SWT.NONE);
pathsGroup.setText("Solargraph (language server) and Readapt (debugger) gems");
pathsGroup.setText("Solargraph (language server) and Readapt (debugger) executables");
pathsGroup.setLayout(new GridLayout(3, false)); // 3 columns for label, input field, and browse button.
pathsGroup.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
Composite gemPathComposite = new Composite(pathsGroup, SWT.NONE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

public enum StringPreferences implements Preference<String> {

GEM_PATH("GemPath", "Solargraph executable:", CommandHelper.findPath(isWindows() ? "solargraph.bat" : "solargraph", true)),
RUBY_DIR("RubyDir", "Override Ruby bin directory:", CommandHelper.findDirectory("ruby")),
READAPT_PATH("ReadaptPath", "Readapt executable:", CommandHelper.findPath(isWindows() ? "readapt.bat" : "readapt", true));
GEM_PATH("GemPath", "Solargraph:", CommandHelper.findPath(isWindows() ? "solargraph.bat" : "solargraph", true)),
RUBY_DIR("RubyDir", "Ruby bin directory:", CommandHelper.findDirectory("ruby")),
READAPT_PATH("ReadaptPath", "Readapt:", CommandHelper.findPath(isWindows() ? "readapt.bat" : "readapt", true));

private final String key;
private final String desc;
Expand Down

0 comments on commit 4dece3e

Please sign in to comment.