Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortarendt2012-11-29 10:07:42 -0500
committertarendt2012-11-29 10:07:42 -0500
commit185c042fc4abedb84255f8d2cb0a0e33ca1a30fc (patch)
tree1903c041bc9a01ffb32071e68981cfb3acb6f167
parent41fb1907d5359f392ce799befaf53d592cccc424 (diff)
downloadorg.eclipse.emf.refactor.refactoring-185c042fc4abedb84255f8d2cb0a0e33ca1a30fc.tar.gz
org.eclipse.emf.refactor.refactoring-185c042fc4abedb84255f8d2cb0a0e33ca1a30fc.tar.xz
org.eclipse.emf.refactor.refactoring-185c042fc4abedb84255f8d2cb0a0e33ca1a30fc.zip
bugs fixed
-rw-r--r--org.eclipse.emf.refactor.refactoring.generator/src/org/eclipse/emf/refactor/refactoring/generator/ui/BasicDataWizardPage.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/org.eclipse.emf.refactor.refactoring.generator/src/org/eclipse/emf/refactor/refactoring/generator/ui/BasicDataWizardPage.java b/org.eclipse.emf.refactor.refactoring.generator/src/org/eclipse/emf/refactor/refactoring/generator/ui/BasicDataWizardPage.java
index 71e23c5..2f8bee1 100644
--- a/org.eclipse.emf.refactor.refactoring.generator/src/org/eclipse/emf/refactor/refactoring/generator/ui/BasicDataWizardPage.java
+++ b/org.eclipse.emf.refactor.refactoring.generator/src/org/eclipse/emf/refactor/refactoring/generator/ui/BasicDataWizardPage.java
@@ -99,7 +99,11 @@ public class BasicDataWizardPage extends WizardPage implements Listener {
.getCodeSource().getLocation().toURI());
String jarName = jarFile.getName();
int index = jarName.indexOf("_");
- jar = jarName.substring(0, index);
+ if (index == -1) {
+ jar = jarName;
+ } else {
+ jar = jarName.substring(0, index);
+ }
System.out.println("Jar5: " + jar);
} catch (URISyntaxException e) {
e.printStackTrace();
@@ -254,7 +258,11 @@ public class BasicDataWizardPage extends WizardPage implements Listener {
.getCodeSource().getLocation().toURI());
String jarName = jarFile.getName();
int index = jarName.indexOf("_");
- jar = jarName.substring(0, index);
+ if (index == -1) {
+ jar = jarName;
+ } else {
+ jar = jarName.substring(0, index);
+ }
System.out.println("Jar5: " + jar);
} catch (URISyntaxException e) {
e.printStackTrace();

Back to the top