Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-11-10 13:44:38 +0000
committerSebastian Struckmann2014-11-10 13:50:22 +0000
commit5f8c9e110ec2ef9d526bf50c15cf7816e85bd717 (patch)
tree850af2ee36013db37ae496c28a75235dec731467 /org.eclipse.jubula.client.api.converter.ui
parent8fbf3a4a9db7617e4234689ba437ea4ef61b5bbc (diff)
downloadorg.eclipse.jubula.core-5f8c9e110ec2ef9d526bf50c15cf7816e85bd717.tar.gz
org.eclipse.jubula.core-5f8c9e110ec2ef9d526bf50c15cf7816e85bd717.tar.xz
org.eclipse.jubula.core-5f8c9e110ec2ef9d526bf50c15cf7816e85bd717.zip
Sprint task - Java API - Removed workaround for invalid names for converter
Diffstat (limited to 'org.eclipse.jubula.client.api.converter.ui')
-rw-r--r--org.eclipse.jubula.client.api.converter.ui/src/org/eclipse/jubula/client/api/converter/ui/handlers/ConvertProjectHandler.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/org.eclipse.jubula.client.api.converter.ui/src/org/eclipse/jubula/client/api/converter/ui/handlers/ConvertProjectHandler.java b/org.eclipse.jubula.client.api.converter.ui/src/org/eclipse/jubula/client/api/converter/ui/handlers/ConvertProjectHandler.java
index e6aeba9aa..d6f29f715 100644
--- a/org.eclipse.jubula.client.api.converter.ui/src/org/eclipse/jubula/client/api/converter/ui/handlers/ConvertProjectHandler.java
+++ b/org.eclipse.jubula.client.api.converter.ui/src/org/eclipse/jubula/client/api/converter/ui/handlers/ConvertProjectHandler.java
@@ -23,7 +23,6 @@ import java.util.NoSuchElementException;
import java.util.regex.Pattern;
import org.apache.commons.io.IOUtils;
-import org.apache.commons.lang.StringUtils;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.IInputValidator;
@@ -273,7 +272,8 @@ public class ConvertProjectHandler extends AbstractHandler {
private void handleTestCaseSuiteOrJob(File parentDir, INodePO node) {
File file = createFile(parentDir, node);
if (file.exists()) {
- displayErrorForDuplicate(node);
+ Plugin.getDefault().writeErrorLineToConsole(
+ "Duplicate filename error:" + file.getAbsolutePath(), true); //$NON-NLS-1$
return;
}
try {
@@ -356,15 +356,6 @@ public class ConvertProjectHandler extends AbstractHandler {
+ className
+ extension;
File file = new File(fileName);
- while (file.exists()) {
- String oldName = StringUtils.substringBeforeLast(
- file.getAbsolutePath(), extension);
- file = new File(oldName + StringConstants.UNDERSCORE
- + extension);
-
- Plugin.getDefault().writeErrorLineToConsole(
- "Duplicate filename error:" + fileName, true); //$NON-NLS-1$
- }
return file;
}

Back to the top