Skip to content

Commit

Permalink
Merge pull request #512 from Teiid-Designer/teiiddes-2679
Browse files Browse the repository at this point in the history
teiiddes-2679:
  • Loading branch information
blafond committed Oct 7, 2015
2 parents 9e08d3c + 4ae5da7 commit 0145dd8
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -968,6 +968,7 @@ void handleSourceModelLocationBrowse() {
if (folder != null && sourceModelContainerText != null) {
this.info.setSourceModelLocation(folder.getFullPath().makeRelative());
this.sourceModelFilePath = this.info.getSourceModelLocation();
this.info.setTargetProject(folder.getProject());
this.sourceModelContainerText.setText(this.info.getSourceModelLocation().makeRelative().toString());
} else {
this.info.setSourceModelLocation(new Path(StringConstants.EMPTY_STRING));
Expand Down Expand Up @@ -1199,11 +1200,6 @@ private boolean validatePage() {
setThisPageComplete(Util.getString(I18N_PREFIX + "sourceFileLocationMustBeSpecified"), ERROR); //$NON-NLS-1$
return false;
}
IProject project = this.info.getTargetProject();
if (project == null) {
setThisPageComplete(Util.getString(I18N_PREFIX + "sourceFileLocationMustBeSpecified"), ERROR); //$NON-NLS-1$
return false;
}

String fileText = sourceModelFileText.getText().trim();

Expand Down

0 comments on commit 0145dd8

Please sign in to comment.