Révision 2281
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/UpdateCorpus.java (revision 2281) | ||
---|---|---|
44 | 44 |
final Project project = corpus.getProject(); |
45 | 45 |
if (project == null) return null; |
46 | 46 |
|
47 |
String iname = project.getImportModuleName(); |
|
48 |
if (!iname.matches("xtz|txt|hyperbase|discours|cnr|alceste|xml|xmltxm")) { |
|
49 |
System.out.println("Can't update a corpus not imported with one of the XTZ, TXT, XML, XML-TXM, CNRS, Alceste, Hyperbase import modules."); |
|
50 |
if (iname.equals("discours")) iname = "cnr"; |
|
51 |
System.out.println(NLS.bind("The corpus was imported with the \"{0}\" import module.", iname)); |
|
52 |
return null; |
|
53 |
} |
|
47 |
// String iname = project.getImportModuleName(); |
|
48 |
// if (!iname.matches("xtz|txt|hyperbase|discours|cnr|alceste|xml|xmltxm")) { |
|
49 |
// System.out.println("Can't update a CQP corpus not imported with one of the XTZ, TXT, XML, XML-TXM, CNRS, Alceste, Hyperbase import modules."); |
|
50 |
// System.out.println(NLS.bind("The corpus was imported with the \"{0}\" import module.", iname)); |
|
51 |
// return null; |
|
52 |
// } |
|
54 | 53 |
|
55 | 54 |
Display d = Display.getCurrent(); |
56 | 55 |
if (d == null) { |
Formats disponibles : Unified diff