Skip to content

Commit

Permalink
Fix for adding os specific text messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kolipakakondal committed Mar 11, 2020
1 parent 5a0a34c commit 00a0fb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected Control createDialogArea(Composite parent)
data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.ENTRY_FIELD_WIDTH);
text.setLayoutData(data);
text.setText(idfDirPath != null ? idfDirPath : StringUtil.EMPTY);
text.setMessage("/Users/esp/esp-idf"); //$NON-NLS-1$
text.setMessage(Platform.getOS().equals(Platform.OS_WIN32) ? "C:\\User\\esp\\esp-idf": "/Users/esp/esp-idf"); //$NON-NLS-1$

Button button = new Button(composite, SWT.PUSH);
button.setText(Messages.DirectorySelectionDialog_Browse);
Expand Down Expand Up @@ -102,7 +102,7 @@ public void widgetSelected(SelectionEvent event)
data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.ENTRY_FIELD_WIDTH);
gitLocationtext.setLayoutData(data);
gitLocationtext.setText(gitPath != null ? gitPath : StringUtil.EMPTY);
gitLocationtext.setMessage("/usr/local/bin/git"); //$NON-NLS-1$
gitLocationtext.setMessage(Platform.getOS().equals(Platform.OS_WIN32) ? "C:\\Program Files\\Git\\bin\\git.exe" : "/usr/local/bin/git"); //$NON-NLS-1$

Button gitBrowseBtn = new Button(composite, SWT.PUSH);
gitBrowseBtn.setText(Messages.DirectorySelectionDialog_Browse);
Expand Down

0 comments on commit 00a0fb0

Please sign in to comment.