Skip to content

Commit

Permalink
TEIIDDES-2444 fixed couple issues with setting initial values and
Browse files Browse the repository at this point in the history
validation including the check on viewAlreadyExists()
  • Loading branch information
blafond committed Mar 26, 2015
1 parent 4c995ec commit 67b6f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void clearXmlFileInfos() {
* Analyzes this object's data values and sets the current <code>IStatus</code>
*/
public void validate() {
if( isFlatFileLocalMode() ) {
if( isFlatFileLocalMode() || isFlatFileUrlMode() ) {
if( this.fileInfoMap.isEmpty() ) {
setStatus(new Status(IStatus.ERROR, PLUGIN_ID, getString("noDataFilesFound"))); //$NON-NLS-1$
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ private void synchronizeUI() {

if (this.info.getViewModelLocation() != null) {
viewModelContainerText.setText(this.info.getViewModelLocation().makeRelative().toString());
this.viewModelFilePath = this.info.getViewModelLocation();
} else {
this.viewModelContainerText.setText(StringUtilities.EMPTY_STRING);
}
Expand Down Expand Up @@ -619,7 +620,7 @@ public boolean select(final Viewer viewer, final Object parent,
};

private boolean viewAlreadyExists() {
if( !info.viewModelExists() ) {
if( info == null && !info.viewModelExists() ) {
return false;
}

Expand Down

0 comments on commit 67b6f54

Please sign in to comment.