Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks for file path spaces in flat file CP
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...tools.connectivity.ui.flatfile/src/org/teiid/designer/datatools/ui/flatfile/Messages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* | ||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. | ||
* | ||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. | ||
*/ | ||
package org.teiid.designer.datatools.ui.flatfile; | ||
|
||
import java.util.MissingResourceException; | ||
import java.util.ResourceBundle; | ||
|
||
/** | ||
* @since 8.0 | ||
*/ | ||
public class Messages { | ||
private static final String BUNDLE_NAME = "org.teiid.designer.datatools.ui.flatfile.messages"; //$NON-NLS-1$ | ||
|
||
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle | ||
.getBundle(BUNDLE_NAME); | ||
|
||
private Messages() { | ||
} | ||
|
||
public static String getString(String key) { | ||
// TODO Auto-generated method stub | ||
try { | ||
return RESOURCE_BUNDLE.getString(key); | ||
} catch (MissingResourceException e) { | ||
return '!' + key + '!'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...connectivity.ui.flatfile/src/org/teiid/designer/datatools/ui/flatfile/messages.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ReplacementFolderSelectionPageHelper.invalidFolderPathNoSpacesAllowed =The folder path cannot contain spaces. | ||
ReplacementFolderSelectionPageHelper.invalidFileURINoSpacesAllowed =The file uri cannont contain spaces. |