bugs fixed
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 @@ .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 @@ .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();