From 4ae5da7e639fafd336d2c01870606c1710ed33c0 Mon Sep 17 00:00:00 2001 From: Ted Jones Date: Tue, 6 Oct 2015 16:46:38 -0500 Subject: [PATCH] teiidddes-2679: Project was null on the fileinfo object. Set project after browsing to a source folder and removed extraneous check for the project since we are already checking for the source model folder. --- .../ui/wizards/file/TeiidMetadataImportSourcePage.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/file/TeiidMetadataImportSourcePage.java b/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/file/TeiidMetadataImportSourcePage.java index ea3064cfb0..83a8599915 100644 --- a/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/file/TeiidMetadataImportSourcePage.java +++ b/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/file/TeiidMetadataImportSourcePage.java @@ -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)); @@ -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();