Révision 3448
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/ImportFormEditor.java (revision 3448) | ||
---|---|---|
140 | 140 |
File f = finput.getGroovyFile(); |
141 | 141 |
if (f != null) { |
142 | 142 |
String filepath = f.getPath(); |
143 |
String importName = ImportModuleCustomization.getName(new File(txmhome, filepath).getName()); |
|
143 |
String importName = new File(txmhome, filepath).getName(); |
|
144 |
if (importName.indexOf(".Loader.groovy") > 0) { |
|
145 |
importName = importName.substring(0, importName.indexOf(".Loader.groovy")); |
|
146 |
} |
|
144 | 147 |
this.setImportName(importName); |
145 | 148 |
} else { // use the corpora view selection |
146 | 149 |
|
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/input/ImportFormEditorInput.java (revision 3448) | ||
---|---|---|
71 | 71 |
*/ |
72 | 72 |
@Override |
73 | 73 |
public String getName() { |
74 |
|
|
74 | 75 |
if (scriptFile != null) { |
75 |
String name = ImportModuleCustomization.getName(scriptFile.getName()); |
|
76 |
return name; |
|
76 |
String importName = scriptFile.getName(); |
|
77 |
if (importName.indexOf(".Loader.groovy") > 0) { |
|
78 |
importName = importName.substring(0, importName.indexOf(".Loader.groovy")); |
|
79 |
} |
|
80 |
return importName; |
|
77 | 81 |
} else { |
78 | 82 |
return ""; //$NON-NLS-1$ |
79 | 83 |
} |
Formats disponibles : Unified diff