@@ -27,7 +27,7 @@ protected NewProjectSourceLocationPage(String pageName) {
27
27
super (pageName );
28
28
setTitle (Messages .ui_new_sketch_sketch_source_folder );
29
29
setDescription (
30
- "You can seperate the source code from the rest of the project content by putting it in a source folder." );
30
+ Messages . NewProjectSourceLocationPage_ExplainText );
31
31
}
32
32
33
33
@ Override
@@ -52,22 +52,22 @@ public void widgetDefaultSelected(SelectionEvent e) {
52
52
}
53
53
};
54
54
55
- RootFolderButton = new Button (usercomp , SWT .RADIO );
56
- RootFolderButton .setText ("Put Code in the root of the project" );
57
- RootFolderButton .addSelectionListener (selectionListener );
58
-
59
55
srcFolderButton = new Button (usercomp , SWT .RADIO );
60
- srcFolderButton .setText ("put code in the src folder" );
56
+ srcFolderButton .setText (Messages . NewProjectSourceLocationPage_CodeInSrcFolder );
61
57
srcFolderButton .addSelectionListener (selectionListener );
62
58
59
+ RootFolderButton = new Button (usercomp , SWT .RADIO );
60
+ RootFolderButton .setText (Messages .NewProjectSourceLocationPage_CodeInRootFolder );
61
+ RootFolderButton .addSelectionListener (selectionListener );
62
+
63
63
customFolderButton = new Button (usercomp , SWT .RADIO );
64
- customFolderButton .setText ("put code in a custom folder" );
64
+ customFolderButton .setText (Messages . NewProjectSourceLocationPage_CodeInCustomFolder );
65
65
customFolderButton .addSelectionListener (new SelectionListener () {
66
66
@ Override
67
67
public void widgetSelected (SelectionEvent e ) {
68
68
customFolderText .setEditable (true );
69
69
if (customFolderText .getText ().isBlank ()) {
70
- setErrorMessage ("You must provide a text in the text field that matches a valid folder name" );
70
+ setErrorMessage (Messages . NewProjectSourceLocationPage_CustomSourceTextFieldError );
71
71
setPageComplete (false );
72
72
}
73
73
}
@@ -84,7 +84,7 @@ public void widgetDefaultSelected(SelectionEvent e) {
84
84
@ Override
85
85
public void modifyText (ModifyEvent e ) {
86
86
if (customFolderText .getText ().isBlank ()) {
87
- setErrorMessage ("You must provide a text in the text field that matches a valid folder name" );
87
+ setErrorMessage (Messages . NewProjectSourceLocationPage_CustomSourceTextFieldError );
88
88
setPageComplete (false );
89
89
} else {
90
90
setErrorMessage (null );
@@ -93,7 +93,7 @@ public void modifyText(ModifyEvent e) {
93
93
}
94
94
});
95
95
96
- String storedValue = ConfigurationPreferences .getString (LAST_USED_SOURCE_LOCATION , null );
96
+ String storedValue = ConfigurationPreferences .getString (LAST_USED_SOURCE_LOCATION , DEFAULT_FOLDER );
97
97
if (DEFAULT_FOLDER .equals (storedValue )) {
98
98
srcFolderButton .setSelection (true );
99
99
} else {
0 commit comments