Révision 1921

tmp/org.txm.groovy.core/src/groovy/org/txm/macro/debug/DescribeTXMResultMacro.groovy (revision 1921)
10 10
	}
11 11
}
12 12

  
13
if (corpusViewSelection != null)
14
	printResult(corpusViewSelection.getProject(), "")
15
else 
16
	println "no selection."
13
def projet = corpusViewSelection.getProject()
14

  
15
printResult(projet, "")
16

  
17
println " object creation: "+corpusViewSelection.getCreationDate()
18
println " object update  : "+corpusViewSelection.getLastComputingDate()	
19
println "project creation: "+projet.getCreationDate()
20
println "project update  : "+projet.getLastComputingDate()
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/UpdateCorpus.java (revision 1921)
8 8
import org.eclipse.core.runtime.Status;
9 9
import org.eclipse.jface.viewers.ISelection;
10 10
import org.eclipse.jface.viewers.IStructuredSelection;
11
import org.eclipse.osgi.util.NLS;
11 12
import org.eclipse.swt.widgets.Display;
12 13
import org.eclipse.ui.handlers.HandlerUtil;
13 14
import org.txm.objects.Project;
......
44 45
		if (project == null)  return null;
45 46

  
46 47
		String iname = project.getImportModuleName();
47
		if (!iname.matches("xtz|txt|hyperbase|cnr|alceste|xml|xmltxm")) {
48
			System.out.println("Can't update a corpus not imported with the XTZ import module.");
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));
49 52
			return null;
50 53
		}
51 54

  

Formats disponibles : Unified diff