Skip to content

Commit 00a0fb0

Browse files
Fix for adding os specific text messages
1 parent 5a0a34c commit 00a0fb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/update/DirectorySelectionDialog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected Control createDialogArea(Composite parent)
7373
data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.ENTRY_FIELD_WIDTH);
7474
text.setLayoutData(data);
7575
text.setText(idfDirPath != null ? idfDirPath : StringUtil.EMPTY);
76-
text.setMessage("/Users/esp/esp-idf"); //$NON-NLS-1$
76+
text.setMessage(Platform.getOS().equals(Platform.OS_WIN32) ? "C:\\User\\esp\\esp-idf": "/Users/esp/esp-idf"); //$NON-NLS-1$
7777

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

107107
Button gitBrowseBtn = new Button(composite, SWT.PUSH);
108108
gitBrowseBtn.setText(Messages.DirectorySelectionDialog_Browse);

0 commit comments

Comments
 (0)