@@ -51,7 +51,7 @@ class TargetConfigPage extends WizardPage {
51
51
private Button checkImg , browseImg , downloadPL , browsePL ;
52
52
private Text programmerOpts , pathImg , pathPL ;
53
53
private final String defaultImgPath = "$PROJECT_LOCATION" ;
54
- private final String defaultPlPath = "$PROJECT_LOCATION " ;
54
+ private final String defaultPlPath = "\\ rsc \\ flink2.bit " ;
55
55
private String lastChoice = defaultImgPath ;
56
56
private String lastChoicePl = defaultPlPath ;
57
57
private String [][] boards ;
@@ -169,7 +169,10 @@ public void widgetSelected(SelectionEvent e) {
169
169
if (e .widget .equals (downloadPL )) {
170
170
if (downloadPL .getSelection ()) {
171
171
pathPL .setEnabled (true );
172
- pathPL .setText (defaultPlPath );
172
+ if (((DeepProjectWizard )getWizard ()).model .getLibrary () != null ) {
173
+ File lib = ((DeepProjectWizard )getWizard ()).model .getLibrary ();
174
+ pathPL .setText (lib .getAbsolutePath () + defaultPlPath );
175
+ } else pathPL .setText (defaultPlPath );
173
176
browsePL .setEnabled (true );
174
177
} else {
175
178
pathPL .setEnabled (false );
@@ -276,9 +279,9 @@ private boolean validatePage() {
276
279
wiz .model .setCreateImgFile (checkImg .getSelection ());
277
280
if (lastChoice != defaultImgPath ) wiz .model .setImgPath (new File (lastChoice ));
278
281
else wiz .model .setImgPath (null );
282
+ if (wiz .model .getImgPath () != null ) System .out .println (wiz .model .getImgPath ().getPath ());
279
283
wiz .model .setLoadPlFile (downloadPL .getSelection ());
280
- if (lastChoicePl != defaultPlPath ) wiz .model .setPlFilePath (new File (lastChoicePl ));
281
- else wiz .model .setPlFilePath (null );
284
+ wiz .model .setPlFilePath (new File (wiz .model .getLibrary ().getAbsolutePath () + lastChoicePl ));
282
285
return true ;
283
286
}
284
287
0 commit comments