Révision 1962

tmp/org.txm.rcp/src/main/java/org/txm/rcp/handlers/files/EditFile.java (revision 1962)
87 87
	 *
88 88
	 * @param filepath the filepath
89 89
	 */
90
	static public void openfile(File file) {
90
	static public boolean openfile(File file) {
91 91
		if (file.isDirectory())
92
			return;
92
			return false;
93
		
93 94
		try {
94 95
			IFileStore fileOnLocalDisk = EFS.getLocalFileSystem().getStore(file.toURI());
95 96

  
......
97 98
			IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
98 99
			IWorkbenchPage page = window.getActivePage();
99 100

  
100
			IEditorPart a = page.openEditor(editorInput, TxtEditor.ID, true);
101
			TxtEditor editor = (TxtEditor) a;
101
			String ID = null;
102
			if (file.getName().toLowerCase().endsWith(".xml")) {
103
				ID = "org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"; //$NON-NLS-1$
104
			} else {
105
				ID = TxtEditor.ID;
106
			}
107
			
108
			page.openEditor(editorInput, ID, true);
109
			return true;
102 110
		} catch (Exception e) {
103 111
			Log.printStackTrace(e);
112
			return false;
104 113
		}
105 114
	}
106 115

  
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/AssistedQueryWidget.java (revision 1962)
173 173
//			query = ""; //$NON-NLS-1$
174 174
//		}
175 175
		
176
		// fix the query
177
		query = query.replaceAll("^\"(.*)\"$","$1"); //$NON-NLS-1$
176
//		// fix the query
177
//		query = query.replaceAll("^\"(.*)\"$","$1"); //$NON-NLS-1$
178 178
		
179 179
		querywidget.setText(query);
180 180
	}
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/LabelField.java (revision 1962)
25 25
		l.setAlignment(SWT.RIGHT);
26 26
		l.setText(getWidgetLabel());
27 27
		l.setToolTipText(getWidgetUsage());
28
		GridData gd = new GridData(SWT.FILL, SWT.CENTER, false, false);
29
		gd.widthHint = 100;
28
		GridData gd = new GridData(SWT.FILL, SWT.FILL, false, false);
29
		gd.widthHint = 170;
30 30
		l.setLayoutData(gd);
31 31
	}
32 32

  
tmp/org.txm.rcp/plugin.xml (revision 1962)
565 565
                  label="%command.label.83">
566 566
            </command>
567 567
            <command
568
                  commandId="org.txm.rcp.commands.EditFile"
568
                  commandId="org.txm.rcp.handlers.files.EditFile"
569 569
                  icon="icons/functions/open.png"
570 570
                  id="file.open"
571 571
                  label="%command.label.45"
......
1458 1458
                  tooltip="%command.tooltip.34">
1459 1459
            </command>
1460 1460
            <command
1461
                  commandId="org.txm.rcp.commands.EditFile"
1461
                  commandId="org.txm.rcp.handlers.files.EditFile"
1462 1462
                  icon="icons/functions/open.png"
1463 1463
                  label="%command.label.45"
1464 1464
                  style="push">
......
2589 2589
      <command
2590 2590
            categoryId="org.txm.rcp.categories.file"
2591 2591
            defaultHandler="org.txm.rcp.handlers.files.EditFile"
2592
            id="org.txm.rcp.commands.EditFile"
2592
            id="org.txm.rcp.handlers.files.EditFile"
2593 2593
            name="%command.name">
2594 2594
         <commandParameter
2595 2595
               id="org.txm.rcp.commands.commandParameter2"
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/messages_fr.properties (revision 1962)
1
URSCorpora_3=N/A_Fail to open corpus file: 
2
URSCorpora_4=N/A_Fail to create corpus file: 
3
DoInstallStep_11=N/A_Previous version of Analec macros are moved to: 
4
DoInstallStep_17=N/A_Error while coping Analec org/txm/macro/analec in 
5
DoInstallStep_18=N/A_Analec post-installation done.
6
DoInstallStep_2=N/A_Analec.DoInstallStep.install()
7
DoInstallStep_5=N/A_No post-installation of Analec to do
8
DoInstallStep_6=N/A_Post-installing Analec version=
9
DoInstallStep_7=N/A_scripts/macro/org/txm/macro/analec
10
DoInstallStep_9=N/A_Analec previous macro backup directory already exists: 
11
EditStructure_0=N/A_Selection is not a corpus: 
12
ExportGlozzCorpus_0=N/A_Selection is not a main corpus: 
13
ExportGlozzCorpus_1=N/A_\ Glozz export
14
ExportGlozzCorpus_2=N/A_Canceled.
15
ExportGlozzCorpus_3=N/A_Error while exporting annotations : 
16
ExportTEICorpus_0=N/A_Selection is not a corpus: 
17
ExportTEICorpus_1P0={0} annotations export...
18
ExportTEICorpus_2=N/A_Error while exporting corpus.
19
ExportTEICorpus_3=N/A_Error while exporting corpus to XML-Analec: 
20
ImportGlozzAnnotations_0=N/A_The AA AAM and AC files must exists.
21
ImportGlozzAnnotations_1=N/A_Selection is not a main corpus: 
22
ImportGlozzAnnotations_10=N/A_Done.
23
ImportGlozzAnnotations_2=N/A_Importing Glozz model from: 
24
ImportGlozzAnnotations_3=N/A_error while importing Glozz model.
25
ImportGlozzAnnotations_4=N/A_Importing Glozz corpus from: 
26
ImportGlozzAnnotations_5=N/A_\ and 
27
ImportGlozzAnnotations_6=N/A_error while importing Glozz corpus.
28
ImportGlozzAnnotations_7=N/A_Reindexing annotations with TXM words
29
ImportGlozzAnnotations_8=N/A_error while re-indexing Analec annotations.
30
ImportGlozzAnnotations_9=N/A_Saving annotations.
31
ImportGlozzCorpus_0=N/A_The glozzDirectory directory must exists.
32
ImportGlozzCorpus_1=N/A_Creating source directory: $srcDir
33
ImportGlozzCorpus_10=N/A_No .aa files found in 
34
ImportGlozzCorpus_11=N/A_Importing Glozz data from: 
35
ImportGlozzCorpus_15=N/A_Error while importing Glozz data.
36
ImportGlozzCorpus_17=N/A_Could not create the TXT source file $txtFile
37
ImportGlozzCorpus_19=N/A_ERROR: could not save import configuration: 
38
ImportGlozzCorpus_22=N/A_Error: no script found for import name ${importName}: $script
39
ImportGlozzCorpus_23=N/A_Error during import
40
ImportGlozzCorpus_24=N/A_Finalize Analec corpus import
41
ImportGlozzCorpus_25=N/A_Importing Glozz model from: 
42
ImportGlozzCorpus_26=N/A_Error while importing Glozz model.
43
ImportGlozzCorpus_27=N/A_Reindexing annotations with TXM words.
44
ImportGlozzCorpus_28=N/A_error while re-indexing Analec annotations.
45
ImportGlozzCorpus_29=N/A_Saving annotations.
46
ImportGlozzCorpus_3=N/A_Creating ec directory: $ecDir
47
ImportGlozzCorpus_30=N/A_Done.
48
ImportGlozzCorpus_32=N/A_ERROR while finalizing corpus import: 
49
ImportGlozzCorpus_4=N/A_Could not create the source directory $srcDir
50
ImportGlozzCorpus_5=N/A_Could not create the ec directory $ecDir
51
ImportGlozzCorpus_8=N/A_No .aa files found in 
52
ImportGlozzCorpus_9=N/A_No .ac files found in 
53
ImportTEIAnnotations_0=N/A_Selection is not a corpus: 
54
ImportTEIAnnotations_1=N/A_\ annotations import...
55
ImportTEIAnnotations_2=N/A_Error while importing annotations.
56
ImportTEIAnnotations_3=N/A_Error while importing annotations: 
57
ImportTEIAnnotations_5=N/A_Done: 
58
ImportTEIAnnotations_8=N/A_\ schemas.
59
ImportTEICorpus_0=N/A_The XML files must exists: 
60
ImportTEICorpus_11=N/A_ERROR: could not save import configuration: 
61
ImportTEICorpus_14=N/A_Error: no script found for import name ${importName}: $script
62
ImportTEICorpus_15=N/A_Error during import
63
ImportTEICorpus_16=N/A_Finalize Analec corpus import
64
ImportTEICorpus_18=N/A_Importing TEI model from: 
65
ImportTEICorpus_19=N/A_Error while importing TEI model.
66
ImportTEICorpus_2=N/A_Creating source directory: $srcDir
67
ImportTEICorpus_20=N/A_Reindexing annotations with TXM words.
68
ImportTEICorpus_21=N/A_error while re-indexing Analec annotations.
69
ImportTEICorpus_22=N/A_Saving annotations.
70
ImportTEICorpus_23=N/A_Done.
71
ImportTEICorpus_24=N/A_Error while finalizing corpus import: 
72
ImportTEICorpus_3=N/A_Could not create the source directory $srcDir
73
ImportTEICorpus_5=N/A_Importing TEI data from: 
74
ImportTEICorpus_7=N/A_Error while importing TEI data.
75
ImportTEICorpus_9=N/A_Could not create the TXT source file $txtFile
76
LoadCorpus_0=N/A_Selection is not a main corpus: 
77
LoadCorpus_1=N/A_Loading corpus from file...
78
LoadCorpus_2=N/A_The EC files must exists.
79
LoadCorpus_3=N/A_Loading corpus from file: 
80
LoadCorpus_4=N/A_Fail to load structure.
81
LoadCorpus_5=N/A_Done: 
82
LoadStructure_0=N/A_Selection is not a main corpus: 
83
LoadStructure_1=N/A_Loading structure for corpus=
84
LoadStructure_2=N/A_Fail to load structure.
85
LoadStructure_3=N/A_Done: 
86
LoadStructureFromGlozz_0=N/A_Selection is not a main corpus: 
87
LoadStructureFromGlozz_1=N/A_Importing Glozz model for corpus=
88
LoadStructureFromGlozz_2=N/A_The AAM file must exists.
89
LoadStructureFromGlozz_3=N/A_Fail to load structure from Glozz model.
90
LoadStructureFromGlozz_4=N/A_Done.
91
LoadVue_0=N/A_Selection is not a main corpus: 
92
LoadVue_1=N/A_Loading vue for corpus=
93
LoadVue_2=N/A_Fail to load structure.
94
LoadVue_3=N/A_Done: 
95
SaveCorpus_0=N/A_Selection is not a main corpus: 
96
SaveCorpus_3=Sauvegarde du corpus {0} ({1})
97
SaveCorpus_5=N/A_Erreur lors de la sauvegarde du corpus.
98
SaveStructure_0=N/A_Selection is not a main corpus: 
99
SaveStructure_3=Sauvegarde de la  structure du corpus {0} ({1})
100
SaveStructure_4=N/A_\ in 
101
SaveStructure_5=N/A_Erreur lors de la sauvegarde de la structure.
102
SaveStructureAsGlozzModel_0=N/A_Selection is not a main corpus: 
103
SaveStructureAsGlozzModel_1=N/A_Saving structure as Glozz model for corpus=
104
SaveStructureAsGlozzModel_2=N/A_Erreur lors de la sauvegarde de la structure.
105
SaveStructureAsGlozzModel_3=N/A_Done.
106
SaveVue_0=N/A_Selection is not a main corpus: 
107
SaveVue_3=N/A_Saving vue for corpus=
108
SaveVue_4=N/A_\ in 
109
SaveVue_5=N/A_Erreur lors de la sauvegarde de la vue.
110
AnalecPreferencePage_3=N/A_Use Analec scheme to fix unit limits
111
AnalecPreferencePage_4=N/A_Autocompletion search pattern of field is prefix (instead of infixe)
112
AnalecPreferencePage_9=N/A_Unit highlight color palette
113
AnnotationToolbar_0=N/A_No selection found. Aborting.
114
AnnotationToolbar_6=N/A_Error: QueryResult matches size is 
115
AnnotationToolbar_7=N/A_\ query was 
116
UnitToolbar_10=N/A_Supprimer
117
UnitToolbar_12=N/A_Corriger la limite gauche en cliquant sur un mot
118
UnitToolbar_14=N/A_Corriger les limites gauche et droite avec une nouvelle s?lection de mot
119
UnitToolbar_16=N/A_Corriger la limite droite en cliquant sur un mot
120
UnitToolbar_27=N/A_You must select a word. Try again\!
121
UnitToolbar_28=N/A_An error occured when updating unit limits with id=
122
UnitToolbar_29=N/A_Select 
123
UnitToolbar_3=N/A_** Could not retrieve 
124
UnitToolbar_32=N/A_Select 
125
UnitToolbar_44=N/A_Creating unit with start=
126
UnitToolbar_46=N/A_org.txm.annotation.urs.delete
127
UnitToolbar_47=N/A_Delete unit {0} 
128
UnitToolbar_48=N/A_Do you really want to delete unit 
129
UnitToolbar_5=N/A_Type d''unit? :
130
UnitToolbar_50=N/A_Aborting annotation limit update
131
UnitToolbar_51=N/A_Identifiants SelectionListener: 
132
UnitToolbar_52=N/A_Types SelectionListener: 
133
UnitToolbar_53=N/A_Reloading identifiants combo values.
134
UnitToolbar_54=N/A_< type d''unit? >
135
UnitToolbar_59=N/A_Error no word found for id=
136
UnitToolbar_6=N/A_Type d''unit?
137
UnitToolbar_60=N/A_Updating annotation limits: 
138
UnitToolbar_7=N/A_Type d''unit?
139
UnitToolbar_8=N/A_Cr?er
140
StartButton_0=N/A_Units
141
StartButton_1=N/A_Schemas
142
StartButton_10=N/A_), then call the Analec > Import Structure command
143
StartButton_11=N/A_Save and close annotation tools: 
144
StartButton_12=N/A_D?marrer l''annotation Analec
145
StartButton_2=N/A_Saving analec annotations...
146
StartButton_3=N/A_Saving analec annotations...
147
StartButton_4=N/A_Error: corpus not saved.
148
StartButton_5=N/A_Done.
149
StartButton_6=N/A_You need to import an annotation structure before starting to annotate. Select the edition main corpus (
150
StartButton_7=N/A_), then call the Analec > Import Structure command
151
StartButton_8=N/A_Save and close annotation tools: 
152
StartButton_9=N/A_You need to import an annotation structure before starting to annotate. Select the edition main corpus (
153
NavigationField_0=N/A_<identifiant>
154
NavigationField_2=N/A_Wrong unit ID: 
155
NavigationField_4=N/A_Rechercher par les propri?t?s de ce type d''unit?
156
NavigationField_5=N/A_<identifiant>
1

  
2
AnalecPreferencePage_3 = Utiliser la correction des limites d'unit\u00E9 d'Analec
3

  
4
AnalecPreferencePage_4 = Recherche d'autocompl\u00E9tion par prefix (au lieu de infixe)
5

  
6
AnalecPreferencePage_9 = Palette de couleur de mise en \u00E9vidence
7

  
8
AnnotationToolbar_0 = Pas de s\u00E9lection trouv\u00E9e. Abandon.
9

  
10
AnnotationToolbar_6 = ** le nombre de match est {0}
11

  
12
AnnotationToolbar_7 = la requ\u00EAte est {0}
13

  
14
DoInstallStep_11 = Les macro URS pr\u00E9c\u00E9dentes ont \u00E9t\u00E9 d\u00E9plac\u00E9e \u00E0 {0}
15

  
16
DoInstallStep_17 = ** Erreur lors de la copie du r\u00E9pertoire de macro "org/txm/macro/urs" dans {0}
17

  
18
DoInstallStep_18 = URS post-installation termin\u00E9.
19

  
20
DoInstallStep_2 = URS.DoInstallStep.install()
21

  
22
DoInstallStep_5 = Pas de post-installation URS \u00E0 faire
23

  
24
DoInstallStep_6 = Post-installing URS version={0}
25

  
26
DoInstallStep_9 = Le r\u00E9pertoire de backup existe d\u00E9j\u00E0 : {0}
27

  
28
EditStructure_0 = La s\u00E9lection n'est pas un corpus : {0}
29

  
30
ExportGlozzCorpus_0 = La s\u00E9lection n'est pas un corpus racine : {0}
31

  
32
ExportGlozzCorpus_1 = Export Glozz 
33

  
34
ExportGlozzCorpus_2 = Annul\u00E9.
35

  
36
ExportGlozzCorpus_3 = ** Erreur lors de l'export des annotations : {0}
37

  
38
ExportTEICorpus_0 = La s\u00E9lection n'est pas un corpus : {0}
39

  
40
ExportTEICorpus_1P0 = {0} annotations export...
41

  
42
ExportTEICorpus_2 = ** Erreur lors de l'export du corpus.
43

  
44
ExportTEICorpus_3 = ** Error lors de l'export du corpus to XML-URS : {0}
45

  
46
ImportGlozzAnnotations_0 = Les fichiers "aa", "aam" et "ac" doivent \u00EAtre pr\u00E9sent.
47

  
48
ImportGlozzAnnotations_1 = La s\u00E9lection n'est pas un corpus racine : {0}
49

  
50
ImportGlozzAnnotations_10 = Termin\u00E9.
51

  
52
ImportGlozzAnnotations_2 = Import du mod\u00E8le Glozz depuis : {0}
53

  
54
ImportGlozzAnnotations_3 = Erreur lors de l'import du mod\u00E8le Glozz.
55

  
56
ImportGlozzAnnotations_4 = Import du corpus Glozz avec les fichiers {0} et {1} 
57

  
58
ImportGlozzAnnotations_6 = ** Erreur lors de l'import du corpus Glozz.
59

  
60
ImportGlozzAnnotations_7 = Reindexer les annotations avec les mots TXM
61

  
62
ImportGlozzAnnotations_8 = ** Erreur lors de la r\u00E9indexation des annotations URS.
63

  
64
ImportGlozzAnnotations_9 = Enregistrement des annotations.
65

  
66
ImportGlozzCorpus_0 = Le r\u00E9pertoire {0} glozz doit exister.
67

  
68
ImportGlozzCorpus_1 = Cr\u00E9ation du r\u00E9pertoire source: {0}
69

  
70
ImportGlozzCorpus_10 = Pas de fichier .aa trouv\u00E9 dans {0}
71

  
72
ImportGlozzCorpus_11 = Import des donn\u00E9es Glozz depuis : {0}
73

  
74
ImportGlozzCorpus_15 = ** Erreur lors de l'import des donn\u00E9es Glozz.
75

  
76
ImportGlozzCorpus_17 = ** Le fichier source TXT {0} n'a pas pu \u00EAtre cr\u00E9\u00E9
77

  
78
ImportGlozzCorpus_19 = ** la configuration du corpus n'a pas pu \u00EAtre sauvegard\u00E9 : {0}
79

  
80
ImportGlozzCorpus_22 = ** Pas de script {0} trouv\u00E9 pour le module d'import {0}
81

  
82
ImportGlozzCorpus_23 = Erreur lors de l'import
83

  
84
ImportGlozzCorpus_24 = Finalisation de l'import de corpus Analec
85

  
86
ImportGlozzCorpus_25 = Import du mod\u00E8le Glozz depuis {0}
87

  
88
ImportGlozzCorpus_26 = Erreur lors de l'import du mod\u00E8le Glozz
89

  
90
ImportGlozzCorpus_27 = R\u00E9indexation des annotations avec les mots TXM.
91

  
92
ImportGlozzCorpus_28 = Erreur lors de la r\u00E9-indexation des annotations.
93

  
94
ImportGlozzCorpus_29 = Enregistrement des annotations...
95

  
96
ImportGlozzCorpus_3 = Cr\u00E9ation du r\u00E9pertoire ec: {0}
97

  
98
ImportGlozzCorpus_30 = Termin\u00E9.
99

  
100
ImportGlozzCorpus_32 = Erreur lors de la finalisation de l'import du corpus : {0}
101

  
102
ImportGlozzCorpus_4 = Le r\u00E9pertoire {0} des sources n'a pu \u00EAtre cr\u00E9\u00E9.
103

  
104
ImportGlozzCorpus_5 = Le r\u00E9pertoire ec {0} n''a pu \u00EAtre cr\u00E9\u00E9
105

  
106
ImportGlozzCorpus_8 = Pas de fichier .aa trouv\u00E9 dans le r\u00E9pertoire {0}
107

  
108
ImportGlozzCorpus_9 = Pas de fichier .ac trouv\u00E9 dans le r\u00E9pertoire {0}
109

  
110
ImportTEIAnnotations_0 = La s\u00E9lection n''est pas un corpus : {0}
111

  
112
ImportTEIAnnotations_1 = Import de {0} annotations...
113

  
114
ImportTEIAnnotations_2 = Erreur lors de l'import des annotations.
115

  
116
ImportTEIAnnotations_3 = Erreur lors de l'import des annotations : {0}
117

  
118
ImportTEIAnnotations_5 = Termin\u00E9: {0} unit\u00E9s, {1} relations et {2} schemas.
119

  
120
ImportTEICorpus_0 = ** Les fichiers XML doivent exister : {0}
121

  
122
ImportTEICorpus_11 = ** Echec de l''enregistrement de la configuration d''import : {0}
123

  
124
ImportTEICorpus_14 = ** Pas de script {1} trouv\u00E9 pour le module d''import {0}
125

  
126
ImportTEICorpus_15 = ** Erreur lors de l'import
127

  
128
ImportTEICorpus_16 = Finalisation de l'import de corpus Analec
129

  
130
ImportTEICorpus_18 = Import du model d''annotation TEI depuis : {0}
131

  
132
ImportTEICorpus_19 = Erreur lors de l'import du mod\u00E8le d'annotation TEI.
133

  
134
ImportTEICorpus_2 = Creation du r\u00E9pertoire source : {0}
135

  
136
ImportTEICorpus_20 = R\u00E9indexation des annotations avec les mots TXM.
137

  
138
ImportTEICorpus_21 = Erreur lors de la r\u00E9indexation des annotations avec les mots TXM.
139

  
140
ImportTEICorpus_22 = Enregistrement des annotations.
141

  
142
ImportTEICorpus_23 = Termin\u00E9.
143

  
144
ImportTEICorpus_24 = Erreur lors de la finalisation de l''import du corpus : {0}
145

  
146
ImportTEICorpus_3 = ** Le r\u00E9pertoire source {0} n''a pas pu \u00EAtre cr\u00E9\u00E9 
147

  
148
ImportTEICorpus_5 = Import des donn\u00E9es TEI depuis : {0}
149

  
150
ImportTEICorpus_7 = Erreur lors de l'import des donn\u00E9es TEI.
151

  
152
ImportTEICorpus_9 = Le fichier source TXT {0} n''a pas pu \u00EAtre cr\u00E9\u00E9
153

  
154
LoadCorpus_0 = La s\u00E9lection n''est pas un corpus racine : {0}
155

  
156
LoadCorpus_1 = Chargement du corpus depuis le fichier...
157

  
158
LoadCorpus_2 = Le fichier EC n'existe pas.
159

  
160
LoadCorpus_3 = Chargement du corpus depuis le fichier {0}
161

  
162
LoadCorpus_4 = \u00C9chec du chargement de la structure
163

  
164
LoadCorpus_5 = Termin\u00E9 : 
165

  
166
LoadStructureFromGlozz_0 = La s\u00E9lection n''est pas un corpus racine : {0}
167

  
168
LoadStructureFromGlozz_1 = Import du mod\u00E8le Glozz pour le corpus {0}
169

  
170
LoadStructureFromGlozz_2 = Le fichier AAM n'existe pas.
171

  
172
LoadStructureFromGlozz_3 = \u00C9chec du chargement de la structure depuis le mod\u00E8le Glozz.
173

  
174
LoadStructureFromGlozz_4 = Termin\u00E9.
175

  
176
LoadStructure_0 = La s\u00E9lection n''est pas un corpus racine : {0}
177

  
178
LoadStructure_1 = Chargement de la structure pour le corpus {0}
179

  
180
LoadStructure_2 = \u00C9chec du chargement de la structure.
181

  
182
LoadStructure_3 = Termin\u00E9 : 
183

  
184
LoadVue_0 = La s\u00E9lection n''est pas un corpus racine : {0}
185

  
186
LoadVue_1 = Chargement de la vue pour le corpus {0}
187

  
188
LoadVue_2 = \u00C9chec du chargement de la vue.
189

  
190
LoadVue_3 = Termin\u00E9 : 
191

  
192
NavigationField_0 = <identifiant>
193

  
194
NavigationField_2 = Mauvais identifiant de mot : {0}
195

  
196
NavigationField_4 = Recherche d''unit\u00E9 par propri\u00E9t\u00E9s
197

  
198
NavigationField_5 = <identifiant>
199

  
200
SaveCorpus_0 = La s\u00E9lection n''est pas un corpus racine : {0}
201

  
202
SaveCorpus_3 = Sauvegarde du corpus {0} ({1})
203

  
204
SaveCorpus_5 = Erreur lors de la sauvegarde du corpus.
205

  
206
SaveStructureAsGlozzModel_0 = La s\u00E9lection n''est pas un corpus racine : {0}
207

  
208
SaveStructureAsGlozzModel_1 = Sauvegarde de la structure du corpus {0} dans un mod\u00E8le Glozz
209

  
210
SaveStructureAsGlozzModel_2 = Erreur lors de la sauvegarde de la structure.
211

  
212
SaveStructureAsGlozzModel_3 = Termin\u00E9.
213

  
214
SaveStructure_0 = La s\u00E9lection n''est pas un corpus racine : {0}
215

  
216
SaveStructure_3 = Sauvegarde de la structure du corpus {0} ({1})
217

  
218
SaveStructure_4 = N/A_ in 
219

  
220
SaveStructure_5 = Erreur lors de la sauvegarde de la structure.
221

  
222
SaveVue_0 = La s\u00E9lection n''est pas un corpus racine : {0}
223

  
224
SaveVue_3 = Enregistrement de la vue du corpus {0} dans {1} 
225

  
226
SaveVue_5 = Erreur lors de l'enregistrement de la vue.
227

  
228
StartButton_0 = Unit\u00E9s
229

  
230
StartButton_1 = Schemas
231

  
232
StartButton_11 = Enregistrer and fermer l'interface d'annotation : 
233

  
234
StartButton_12 = D\u00E9marrer l'annotation URS
235

  
236
StartButton_4 = ** Le corpus n'a pas \u00E9t\u00E9 sauvegard\u00E9.
237

  
238
StartButton_5 = Termin\u00E9.
239

  
240
URSCorpora_3 = Erreur lors de l''ouverture du corpus : {0}
241

  
242
URSCorpora_4 = Erreur lors de la cr\u00E9ation fu corpus : {0}
243

  
244
UnitToolbar_10 = Supprimer
245

  
246
UnitToolbar_12 = Corriger la limite gauche en cliquant sur un mot
247

  
248
UnitToolbar_14 = Corriger les limites gauche et droite avec une nouvelle s\u00E9lection de mot
249

  
250
UnitToolbar_16 = Corriger la limite droite en cliquant sur un mot
251

  
252
UnitToolbar_27 = Il faut s\u00E9lectionner un mot.
253

  
254
UnitToolbar_28 = N/A_An error occured when updating unit limits with id=
255

  
256
UnitToolbar_29 = Selectioner {0}
257

  
258
UnitToolbar_3 = N/A_** Could not retrieve 
259

  
260
UnitToolbar_32 = Selectioner {0}
261

  
262
UnitToolbar_44 = Cr\u00E9ating de l'unit\u00E9 (de {0} \u00E0 {0})
263

  
264
UnitToolbar_47 = Supprimer l'unit\u00E9 {0} 
265

  
266
UnitToolbar_48 = Voulez vous supprimer l'unit\u00E9 ? 
267

  
268
UnitToolbar_5 = Type d''unit\u00E9 :
269

  
270
UnitToolbar_54 = < type d''unit\u00E9 >
271

  
272
UnitToolbar_59 = ** Pas de mots trouv\u00E9 pour l'identifiant 
273

  
274
UnitToolbar_6 = Type d''unit\u00E9
275

  
276
UnitToolbar_7 = Type d''unit\u00E9
277

  
278
UnitToolbar_8 = Cr\u00E9er
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/commands/DoInstallStep.java (revision 1962)
47 47
		}
48 48
		System.out.println(NLS.bind(Messages.DoInstallStep_6, currentVersion));
49 49
		
50
		File previousURSMacroDirectory = new File(Toolbox.getTxmHomePath(), Messages.DoInstallStep_7);
50
		File previousURSMacroDirectory = new File(Toolbox.getTxmHomePath(), "scripts/groovy/user/org/txm/macro/analec"); //$NON-NLS-1$
51 51
		if (previousURSMacroDirectory.exists() && saved != null && saved.length() > 0) {
52 52
			File back = new File(previousURSMacroDirectory.getParentFile(), "urs_"+saved); //$NON-NLS-1$
53 53
			if (back.exists()) {
......
58 58
			System.out.println(NLS.bind(Messages.DoInstallStep_11, back.getAbsolutePath()));
59 59
		}
60 60
		
61
		File macroDirectory = new File(Toolbox.getTxmHomePath(), "scripts/macro/org/txm/macro"); //$NON-NLS-1$
61
		File macroDirectory = new File(Toolbox.getTxmHomePath(), "scripts/groovy/user/org/txm/macro/analec"); //$NON-NLS-1$
62 62
		if (!BundleUtils.copyFiles("org.txm.annotation.urs.rcp", "src", "org/txm/macro/", "urs", macroDirectory)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
63 63
			System.out.println(NLS.bind(Messages.DoInstallStep_17, macroDirectory.getAbsolutePath()));
64 64
			return;
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/messages.properties (revision 1962)
1
URSCorpora_3=Fail to open corpus file: {0}
2
URSCorpora_4=Fail to create corpus file: {0} 
3
DoInstallStep_11=Previous version of Analec macros are moved to: {0}
4
DoInstallStep_17=Error while coping Analec org/txm/macro/analec in {0}
5
DoInstallStep_18=Analec post-installation done.
6
DoInstallStep_2=Analec.DoInstallStep.install()
7
DoInstallStep_5=No post-installation of Analec to do
8
DoInstallStep_6=Post-installing Analec version={0}
9
DoInstallStep_7=scripts/macro/org/txm/macro/analec
10
DoInstallStep_9=Analec previous macro backup directory already exists: {0}. Aborting
11
EditStructure_0=Selection is not a corpus: {0}
12
ExportGlozzCorpus_0=Selection is not a main corpus: {0}
13
ExportGlozzCorpus_1={0} Glozz export
14
ExportGlozzCorpus_2=Canceled.
15
ExportGlozzCorpus_3=Error while exporting annotations : {0}
16
ExportTEICorpus_0=Selection is not a corpus: {0}
17
ExportTEICorpus_1P0=\ annotations export...
18
ExportTEICorpus_2=Error while exporting corpus.
19
ExportTEICorpus_3=Error while exporting corpus to XML-Analec: {0}
20
ImportGlozzAnnotations_0=The AA AAM and AC files must exists.
21
ImportGlozzAnnotations_1=Selection is not a main corpus: {0}
22
ImportGlozzAnnotations_10=Done.
23
ImportGlozzAnnotations_2=Importing Glozz model from: {0}
24
ImportGlozzAnnotations_3=error while importing Glozz model.
25
ImportGlozzAnnotations_4=Importing Glozz corpus from: {0}  and {1} 
26
ImportGlozzAnnotations_6=error while importing Glozz corpus.
27
ImportGlozzAnnotations_7=Reindexing annotations with TXM words
28
ImportGlozzAnnotations_8=error while re-indexing Analec annotations.
29
ImportGlozzAnnotations_9=Saving annotations.
30
ImportGlozzCorpus_0=The glozzDirectory directory must exists.
31
ImportGlozzCorpus_1=Creating source directory: {0}
32
ImportGlozzCorpus_10=No .aa files found in {0}
33
ImportGlozzCorpus_11=Importing Glozz data from: {0}
34
ImportGlozzCorpus_15=Error while importing Glozz data.
35
ImportGlozzCorpus_17=Could not create the TXT source file $txtFile
36
ImportGlozzCorpus_19=Error: could not save import configuration: {0}
37
ImportGlozzCorpus_22=Error: no script found for import name {0}: {1}
38
ImportGlozzCorpus_23=Error during import
39
ImportGlozzCorpus_24=Finalize Analec corpus import
40
ImportGlozzCorpus_25=Importing Glozz model from: {0}
41
ImportGlozzCorpus_26=Error while importing Glozz model.
42
ImportGlozzCorpus_27=Reindexing annotations with TXM words.
43
ImportGlozzCorpus_28=error while re-indexing Analec annotations.
44
ImportGlozzCorpus_29=Saving annotations.
45
ImportGlozzCorpus_3=Creating ec directory: {0}
46
ImportGlozzCorpus_30=Done.
47
ImportGlozzCorpus_32=Error while finalizing corpus import: {0}
48
ImportGlozzCorpus_4=Could not create the {0} source directory 
49
ImportGlozzCorpus_5=Could not create the {0} ec directory 
50
ImportGlozzCorpus_8=No .aa files found in {0}
51
ImportGlozzCorpus_9=No .ac files found in {0}
52
ImportTEIAnnotations_0=Selection is not a corpus: {0}
53
ImportTEIAnnotations_1={0} annotations import...
54
ImportTEIAnnotations_2=Error while importing annotations.
55
ImportTEIAnnotations_3=Error while importing annotations: {0}
56
ImportTEIAnnotations_5=Done: {0} unites, {1} relations and {2} schemas.
57
ImportTEICorpus_0=The XML files must exists: {0}
58
ImportTEICorpus_11=Error: could not save import configuration: 
59
ImportTEICorpus_14=Error: no script found for import name {0}: {1}
60
ImportTEICorpus_15=Error during import
61
ImportTEICorpus_16=Finalize Analec corpus import
62
ImportTEICorpus_18=Importing TEI model from: {0}
63
ImportTEICorpus_19=Error while importing TEI model.
64
ImportTEICorpus_2=Creating source directory: {0}
65
ImportTEICorpus_20=Reindexing annotations with TXM words.
66
ImportTEICorpus_21=error while re-indexing Analec annotations.
67
ImportTEICorpus_22=Saving annotations.
68
ImportTEICorpus_23=Done.
69
ImportTEICorpus_24=Error while finalizing corpus import: {0}
70
ImportTEICorpus_3=Could not create the source directory {0}
71
ImportTEICorpus_5=Importing TEI data from: {0}
72
ImportTEICorpus_7=Error while importing TEI data.
73
ImportTEICorpus_9=Could not create the TXT source file {0}
74
LoadCorpus_0=Selection is not a main corpus: {0}
75
LoadCorpus_1=Loading corpus from file...
76
LoadCorpus_2=The EC files must exists.
77
LoadCorpus_3=Loading corpus from file: {0}
78
LoadCorpus_4=Fail to load structure.
79
LoadCorpus_5=Done: 
80
LoadStructure_0=Selection is not a main corpus: {0}
81
LoadStructure_1=Loading structure for corpus={0}
82
LoadStructure_2=Fail to load structure.
83
LoadStructure_3=Done: 
84
LoadStructureFromGlozz_0=Selection is not a main corpus: {0}
85
LoadStructureFromGlozz_1=Importing Glozz model for corpus={0}
86
LoadStructureFromGlozz_2=The AAM file must exists.
87
LoadStructureFromGlozz_3=Fail to load structure from Glozz model.
88
LoadStructureFromGlozz_4=Done.
89
LoadVue_0=Selection is not a main corpus: {0}
90
LoadVue_1=Loading vue for corpus={0}
91
LoadVue_2=Fail to load structure.
92
LoadVue_3=Done: 
93
SaveCorpus_0=Selection is not a main corpus: {0}
94
SaveCorpus_3=Saving structure for corpus={0} at {1}
95
SaveCorpus_5=Erreur lors de la sauvegarde du corpus.
96
SaveStructure_0=Selection is not a main corpus: {0}
97
SaveStructure_3=Saving structure for corpus={0} at {1}
98
SaveStructure_5=Erreur lors de la sauvegarde de la structure.
99
SaveStructureAsGlozzModel_0=Selection is not a main corpus: {0}
100
SaveStructureAsGlozzModel_1=Saving structure as Glozz model for corpus={0}
101
SaveStructureAsGlozzModel_2=Erreur lors de la sauvegarde de la structure.
102
SaveStructureAsGlozzModel_3=Done.
103
SaveVue_0=Selection is not a main corpus: {0}
104
SaveVue_3=Saving vue for corpus={0} at {1} 
105
SaveVue_5=Erreur lors de la sauvegarde de la vue.
106
AnalecPreferencePage_3=Use Analec scheme to fix unit limits
107
AnalecPreferencePage_4=Autocompletion search pattern of field is prefix (instead of infixe)
108
AnalecPreferencePage_9=Unit highlight color palette
109
AnnotationToolbar_0=No selection found. Aborting.
110
AnnotationToolbar_6=Error: QueryResult matches size is 
111
AnnotationToolbar_7=\ query was 
112
UnitToolbar_10=Supprimer
113
UnitToolbar_12=Corriger la limite gauche en cliquant sur un mot
114
UnitToolbar_14=Corriger les limites gauche et droite avec une nouvelle s?lection de mot
115
UnitToolbar_16=Corriger la limite droite en cliquant sur un mot
116
UnitToolbar_27=You must select a word. Try again\!
117
UnitToolbar_28=An error occurred when updating unit limits with id={0}
118
UnitToolbar_29=Select {0}
119
UnitToolbar_3=** Could not retrieve {0} size. Error: {1}
120
UnitToolbar_32=Select {0}...
121
UnitToolbar_44=Creating unit with start={0} end={0}
122
UnitToolbar_46=org.txm.annotation.urs.delete
123
UnitToolbar_47=Delete unit {0}
124
UnitToolbar_48=Do you really want to delete unit {0} ?
125
UnitToolbar_5=Type d''unit? :{0}
126
UnitToolbar_50=Aborting annotation limit update
127
UnitToolbar_51=Identifiants SelectionListener: {0}
128
UnitToolbar_52=Types SelectionListener: {0}
129
UnitToolbar_53=Reloading identifiants combo values.
130
UnitToolbar_54=< type d''unit? >
131
UnitToolbar_59=Error no word found for id={0}
132
UnitToolbar_6=Type d''unit?
133
UnitToolbar_60=Updating annotation limits: {0}  -> {1}  with word id={0}  with pos={0}.
134
UnitToolbar_7=Type d''unit?
135
UnitToolbar_8=Cr?er
136
StartButton_0=Units
137
StartButton_1=Schemas
138
StartButton_10=), then call the Analec > Import Structure command
139
StartButton_11=Save and close annotation tools: 
140
StartButton_12=D?marrer l''annotation Analec
141
StartButton_2=Saving analec annotations...
142
StartButton_3=Saving analec annotations...
143
StartButton_4=Error: corpus not saved.
144
StartButton_5=Done.
145
StartButton_6=You need to import an annotation structure before starting to annotate. Select the edition main corpus (
146
StartButton_7=), then call the Analec > Import Structure command
147
StartButton_8=Save and close annotation tools: {0}
148
StartButton_9=You need to import an annotation structure before starting to annotate. Select the edition main corpus (
149
NavigationField_0=<identifiant>
150
NavigationField_2=Wrong unit ID: {0}
151
NavigationField_4=Rechercher par les propri?t?s de ce type d''unit?
152
NavigationField_5=<identifiant>
1

  
2
AnalecPreferencePage_3 = Use Analec scheme to fix unit limits
3

  
4
AnalecPreferencePage_4 = Autocompletion search pattern of field is prefix (instead of infixe)
5

  
6
AnalecPreferencePage_9 = Unit highlight color palette
7

  
8
AnnotationToolbar_0 = No selection found. Aborting.
9

  
10
AnnotationToolbar_6 = ** QueryResult matches size is {0}
11

  
12
AnnotationToolbar_7 = \ query was {0}
13

  
14
DoInstallStep_11 = Previous version of URS macros are moved to: {0}
15

  
16
DoInstallStep_17 = ** Error while coping "org/txm/macro/urs" macro directory in {0}
17

  
18
DoInstallStep_18 = URS post-installation done.
19

  
20
DoInstallStep_2 = URS.DoInstallStep.install()
21

  
22
DoInstallStep_5 = No post-installation of URS to do
23

  
24
DoInstallStep_6 = Post-installing URS version={0}
25

  
26
DoInstallStep_9 = URS previous macro backup directory already exists: {0}. Aborting
27

  
28
EditStructure_0 = Selection is not a corpus: {0}
29

  
30
ExportGlozzCorpus_0 = Selection is not a main corpus: {0}
31

  
32
ExportGlozzCorpus_1 = {0} Glozz export
33

  
34
ExportGlozzCorpus_2 = Canceled.
35

  
36
ExportGlozzCorpus_3 = ** Error while exporting annotations: {0}
37

  
38
ExportTEICorpus_0 = Selection is not a corpus: {0}
39

  
40
ExportTEICorpus_1P0 = {0} annotations export...
41

  
42
ExportTEICorpus_2 = ** Error while exporting corpus.
43

  
44
ExportTEICorpus_3 = ** Error while exporting corpus to XML-URS: {0}
45

  
46
ImportGlozzAnnotations_0 = The "aa", "aam" and "ac" files must exists.
47

  
48
ImportGlozzAnnotations_1 = Selection is not a main corpus: {0}
49

  
50
ImportGlozzAnnotations_10 = Done.
51

  
52
ImportGlozzAnnotations_2 = Importing Glozz model from: {0}
53

  
54
ImportGlozzAnnotations_3 = Error while importing Glozz model.
55

  
56
ImportGlozzAnnotations_4 = Importing Glozz corpus from: {0}  and {1} 
57

  
58
ImportGlozzAnnotations_6 = ** Error while importing Glozz corpus.
59

  
60
ImportGlozzAnnotations_7 = Reindexing annotations with TXM words
61

  
62
ImportGlozzAnnotations_8 = ** Error while re-indexing URS annotations.
63

  
64
ImportGlozzAnnotations_9 = Saving annotations.
65

  
66
ImportGlozzCorpus_0 = The {0} glozz directory must exists.
67

  
68
ImportGlozzCorpus_1 = Creating source directory: {0}
69

  
70
ImportGlozzCorpus_10 = No .aa files found in {0}
71

  
72
ImportGlozzCorpus_11 = Importing Glozz data from: {0}
73

  
74
ImportGlozzCorpus_15 = ** Error while importing Glozz data.
75

  
76
ImportGlozzCorpus_17 = ** Could not create the {0} TXT source file
77

  
78
ImportGlozzCorpus_19 = ** Error: could not save import configuration: {0}
79

  
80
ImportGlozzCorpus_22 = ** no {1} script found for import name {0}
81

  
82
ImportGlozzCorpus_23 = Error during import
83

  
84
ImportGlozzCorpus_24 = Finalizing Analec corpus import
85

  
86
ImportGlozzCorpus_25 = Importing Glozz model from: {0}
87

  
88
ImportGlozzCorpus_26 = Error while importing Glozz model.
89

  
90
ImportGlozzCorpus_27 = Reindexing annotations with TXM words.
91

  
92
ImportGlozzCorpus_28 = error while re-indexing Analec annotations.
93

  
94
ImportGlozzCorpus_29 = Saving annotations.
95

  
96
ImportGlozzCorpus_3 = Creating ec directory: {0}
97

  
98
ImportGlozzCorpus_30 = Done.
99

  
100
ImportGlozzCorpus_32 = Error while finalizing corpus import: {0}
101

  
102
ImportGlozzCorpus_4 = Could not create the {0} source directory.
103

  
104
ImportGlozzCorpus_5 = Could not create the {0} ec directory 
105

  
106
ImportGlozzCorpus_8 = No .aa files found in {0}
107

  
108
ImportGlozzCorpus_9 = No .ac files found in {0}
109

  
110
ImportTEIAnnotations_0 = Selection is not a corpus: {0}
111

  
112
ImportTEIAnnotations_1 = {0} annotations import...
113

  
114
ImportTEIAnnotations_2 = Error while importing annotations.
115

  
116
ImportTEIAnnotations_3 = Error while importing annotations: {0}
117

  
118
ImportTEIAnnotations_5 = Done: {0} unites, {1} relations and {2} schemas.
119

  
120
ImportTEICorpus_0 = ** The XML files must exists: {0}
121

  
122
ImportTEICorpus_11 = ** could not save import configuration: {0}
123

  
124
ImportTEICorpus_14 = ** no script found for import name {0}: {1}
125

  
126
ImportTEICorpus_15 = ** Error during import
127

  
128
ImportTEICorpus_16 = Finalize Analec corpus import
129

  
130
ImportTEICorpus_18 = Importing TEI model from: {0}
131

  
132
ImportTEICorpus_19 = Error while importing TEI model.
133

  
134
ImportTEICorpus_2 = Creating source directory: {0}
135

  
136
ImportTEICorpus_20 = Reindexing annotations with TXM words.
137

  
138
ImportTEICorpus_21 = Error while re-indexing Analec annotations.
139

  
140
ImportTEICorpus_22 = Saving annotations.
141

  
142
ImportTEICorpus_23 = Done.
143

  
144
ImportTEICorpus_24 = Error while finalizing corpus import: {0}
145

  
146
ImportTEICorpus_3 = ** Could not create the {0} source directory 
147

  
148
ImportTEICorpus_5 = Importing TEI data from: {0}
149

  
150
ImportTEICorpus_7 = Error while importing TEI data.
151

  
152
ImportTEICorpus_9 = Could not create the TXT source file {0}
153

  
154
LoadCorpus_0 = Selection is not a main corpus: {0}
155

  
156
LoadCorpus_1 = Loading corpus from file...
157

  
158
LoadCorpus_2 = The EC files must exists.
159

  
160
LoadCorpus_3 = Loading corpus from the {0} file
161

  
162
LoadCorpus_4 = Fail to load structure.
163

  
164
LoadCorpus_5 = Done: 
165

  
166
LoadStructureFromGlozz_0 = Selection is not a main corpus: {0}
167

  
168
LoadStructureFromGlozz_1 = Importing Glozz model for the {0} corpus
169

  
170
LoadStructureFromGlozz_2 = The AAM file must exists.
171

  
172
LoadStructureFromGlozz_3 = Fail to load structure from Glozz model.
173

  
174
LoadStructureFromGlozz_4 = Done.
175

  
176
LoadStructure_0 = Selection is not a main corpus: {0}
177

  
178
LoadStructure_1 = Loading structure for the {0} corpus
179

  
180
LoadStructure_2 = Fail to load structure.
181

  
182
LoadStructure_3 = Done: 
183

  
184
LoadVue_0 = Selection is not a main corpus: {0}
185

  
186
LoadVue_1 = Loading vue for the {0} corpus
187

  
188
LoadVue_2 = Fail to load structure.
189

  
190
LoadVue_3 = Done: 
191

  
192
NavigationField_0 = <identifier>
193

  
194
NavigationField_2 = Wrong unit ID: {0}
195

  
196
NavigationField_4 = Search units by properties
197

  
198
NavigationField_5 = <identifier>
199

  
200
SaveCorpus_0 = Selection is not a main corpus: {0}
201

  
202
SaveCorpus_3 = Saving the {0} corpus ({1})
203

  
204
SaveCorpus_5 = Error while saving the corpus.
205

  
206
SaveStructureAsGlozzModel_0 = Selection is not a main corpus: {0}
207

  
208
SaveStructureAsGlozzModel_1 = Saving structure as Glozz model for corpus={0}
209

  
210
SaveStructureAsGlozzModel_2 = Error while saving the structure.
211

  
212
SaveStructureAsGlozzModel_3 = Done.
213

  
214
SaveStructure_0 = Selection is not a main corpus: {0}
215

  
216
SaveStructure_3 = Saving the annotation structure of the {0} corpus at {1}
217

  
218
SaveStructure_5 = Error while saving the structure.
219

  
220
SaveVue_0 = Selection is not a main corpus: {0}
221

  
222
SaveVue_3 = Saving the {0} corpus vue at {1} 
223

  
224
SaveVue_5 = Error while saving the vue.
225

  
226
StartButton_0 = Units
227

  
228
StartButton_1 = Schemas
229

  
230
StartButton_11 = Save and close annotation tools: 
231

  
232
StartButton_12 = Start URS annotation
233

  
234
StartButton_4 = Error: corpus not saved.
235

  
236
StartButton_5 = Done.
237

  
238
URSCorpora_3 = Fail to open corpus file: {0}
239

  
240
URSCorpora_4 = Fail to create corpus file: {0} 
241

  
242
UnitToolbar_10 = Delete
243

  
244
UnitToolbar_12 = Click to fix the left limit
245

  
246
UnitToolbar_14 = Fix the left and right limits with a new word selection
247

  
248
UnitToolbar_16 = Click the word to fix the right limit
249

  
250
UnitToolbar_27 = You must select a word. Try again!
251

  
252
UnitToolbar_28 = An error occurred when updating unit limits with id={0}
253

  
254
UnitToolbar_29 = Select {0}
255

  
256
UnitToolbar_3 = ** Could not retrieve {0} size. Error: {1}
257

  
258
UnitToolbar_32 = Select {0}...
259

  
260
UnitToolbar_44 = Creating unit with start={0} end={0}
261

  
262
UnitToolbar_47 = Delete unit {0}
263

  
264
UnitToolbar_48 = Do you really want to delete unit {0} ?
265

  
266
UnitToolbar_5 = Type d''unit? :{0}
267

  
268
UnitToolbar_54 = < Unit type >
269

  
270
UnitToolbar_59 = Error no word found for id={0}
271

  
272
UnitToolbar_6 = Unit type
273

  
274
UnitToolbar_7 = Unit type
275

  
276
UnitToolbar_8 = Create
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/toolbar/UnitToolbar.java (revision 1962)
786 786
		String id = navigationField.getText();
787 787

  
788 788
		ConfirmDialog dialog = new ConfirmDialog(Display.getCurrent().getActiveShell(), 
789
				Messages.UnitToolbar_46, 
789
				"org.txm.annotation.urs.delete", 
790 790
				NLS.bind(Messages.UnitToolbar_47, id), 
791 791
				NLS.bind(Messages.UnitToolbar_48, id));
792 792
		if (dialog.open() == ConfirmDialog.CANCEL) return;
......
824 824
			}
825 825
		} else {
826 826
			if (fixingAnnotationLimits > 0) { 
827
				System.out.println(Messages.UnitToolbar_50);
828

  
829 827
				typeCombo.setEnabled(true);
830 828
				navigationField.setEnabled(true);
831 829
				createButton.setEnabled(true);
......
849 847
	 * @param e
850 848
	 */
851 849
	public void onIdentifiantComboSelected(Object e) {
852
		Log.fine(NLS.bind(Messages.UnitToolbar_51, navigationField.getSelectionIndex()));
853 850
		int i = navigationField.getSelectionIndex();
854 851
		if (i <= 0) {
855 852
			if (previousSelectedUnitIDS != null) {
......
892 889
	}
893 890

  
894 891
	protected void onTypecomboSelected(SelectionEvent e) {
895
		Log.fine(NLS.bind(Messages.UnitToolbar_52, typeCombo.getSelectionIndex()));
896 892
		reloadIdentifiants();
897 893

  
898 894
		if (typeCombo.getSelectionIndex() > 0) {
......
917 913
	 * @param unite the unite to select, may be null
918 914
	 */
919 915
	public void reloadIdentifiants() {
920
		Log.fine(Messages.UnitToolbar_53);
921 916
		String type0 = typeCombo.getText();
922 917
		unites = vue.getUnitesAVoir(type0);
923 918
		String[] identifiants = vue.getIdUnites(type0, unites);
......
1052 1047
		if (startend == null) return false;
1053 1048

  
1054 1049
		int pos = startend[0];
1055
		Log.fine(TXMCoreMessages.bind(Messages.UnitToolbar_60, unite.getDeb(), unite.getFin(), ids, pos));
1056 1050

  
1057 1051
		if (mode == 1) { // left
1058 1052
			analecCorpus.modifBornesUnite(unite, pos, unite.getFin());
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/Messages.java (revision 1962)
31 31
	public static String ImportGlozzAnnotations_2;
32 32
	public static String ImportGlozzAnnotations_3;
33 33
	public static String ImportGlozzAnnotations_4;
34
	public static String ImportGlozzAnnotations_5;
35 34
	public static String ImportGlozzAnnotations_6;
36 35
	public static String ImportGlozzAnnotations_7;
37 36
	public static String ImportGlozzAnnotations_8;
......
63 62
	public static String ImportTEIAnnotations_2;
64 63
	public static String ImportTEIAnnotations_3;
65 64
	public static String ImportTEIAnnotations_5;
66
	public static String ImportTEIAnnotations_8;
67 65
	public static String ImportTEICorpus_0;
68 66
	public static String ImportTEICorpus_11;
69 67
	public static String ImportTEICorpus_14;
......
113 111
	public static String SaveStructureAsGlozzModel_3;
114 112
	public static String SaveVue_0;
115 113
	public static String SaveVue_3;
116
	public static String SaveVue_4;
117 114
	public static String SaveVue_5;
118 115
	
119 116
	public static String AnalecPreferencePage_3;
......
133 130
	public static String UnitToolbar_3;
134 131
	public static String UnitToolbar_32;
135 132
	public static String UnitToolbar_44;
136
	public static String UnitToolbar_46;
137 133
	public static String UnitToolbar_47;
138 134
	public static String UnitToolbar_48;
139 135
	public static String UnitToolbar_5;
140
	public static String UnitToolbar_50;
141
	public static String UnitToolbar_51;
142
	public static String UnitToolbar_52;
143
	public static String UnitToolbar_53;
144 136
	public static String UnitToolbar_54;
145 137
	public static String UnitToolbar_59;
146 138
	public static String UnitToolbar_6;
147
	public static String UnitToolbar_60;
148 139
	public static String UnitToolbar_7;
149 140
	public static String UnitToolbar_8;
150 141
	
151 142
	public static String StartButton_0;
152 143
	public static String StartButton_1;
153
	public static String StartButton_10;
154 144
	public static String StartButton_11;
155 145
	public static String StartButton_12;
156
	public static String StartButton_2;
157
	public static String StartButton_3;
158 146
	public static String StartButton_4;
159 147
	public static String StartButton_5;
160
	public static String StartButton_6;
161
	public static String StartButton_7;
162
	public static String StartButton_8;
163
	public static String StartButton_9;
164 148
	
165 149
	public static String NavigationField_0;
166 150
	public static String NavigationField_2;
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/edit/CheckDuplicatesInSchemasMacro.groovy (revision 1962)
56 56

  
57 57
def allUnits = [:]
58 58

  
59
def allSchemas = AnalecUtils.selectSchemas(debug, analecCorpus, corpus, schema_ursql, -1, Integer.MAX_VALUE)
59
def allSchemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, , schema_ursql, -1, Integer.MAX_VALUE)
60 60

  
61 61
if (allSchemas.size() == 0) {
62 62
	println "No schema match for '$schema_ursql' selection. Aborting"
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/AnalecUtils.groovy (revision 1962)
49 49
	}
50 50
}
51 51

  
52
static def selectSchemas(def debug, Corpus analecCorpus, org.txm.searchengine.cqp.corpus.CQPCorpus corpus,
53
		String schema_ursql, Integer minimum_schema_size, Integer maximum_schema_size) {
52
static def selectSchemas(def debug, Corpus analecCorpus, String schema_ursql, Integer minimum_schema_size, Integer maximum_schema_size) {
54 53
	if (maximum_schema_size <= 0) maximum_schema_size = Integer.MAX_VALUE;
55 54
	def allSchemas = []
56 55
	if (schema_ursql != null && schema_ursql.length() > 0 || minimum_schema_size > 1) {
......
69 68
static def selectSchemasInCorpus(def debug, Corpus analecCorpus, org.txm.searchengine.cqp.corpus.CQPCorpus corpus,
70 69
		String schema_ursql, Integer minimum_schema_size, Integer maximum_schema_size) {
71 70
		
72
	def allSchemas = AnalecUtils.selectSchemas(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size);
71
	def allSchemas = AnalecUtils.selectSchemas(debug, analecCorpus, schema_ursql, minimum_schema_size, maximum_schema_size);
73 72
	
74 73
	def selectedSchemas = []
75 74
	for (Schema schema : allSchemas) {
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasProgressionMacro.groovy (revision 1962)
106 106

  
107 107
	def allUnits = [:]
108 108
	def allHighlightedUnits = [:]
109
	def allSchemas = AnalecUtils.selectSchemas(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size)
109
	def allSchemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size)
110 110

  
111 111
	if (allSchemas.size() == 0) {
112 112
		println "No schema match for '$schema_ursql' selection. Aborting"
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/mesures1/CoefficientStabiliteMacro.groovy (revision 1962)
1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3
// @author mdecorde
4
// @author sheiden
5
// STANDARD DECLARATIONS
6
package org.txm.macro.urs.exploit.mesures1
7

  
8
import org.kohsuke.args4j.*
9
import groovy.transform.Field
10
import org.txm.*
11
import org.txm.rcp.swt.widget.parameters.*
12
import org.txm.annotation.urs.*
13
import org.txm.searchengine.cqp.corpus.*
14
import org.apache.commons.lang.StringUtils;
15

  
16
// BEGINNING OF PARAMETERS
17
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="CHAINE")
18
String schema_type
19

  
20
@Field @Option(name="minimum_schema_size", usage="", widget="Integer", required=true, def="3")
21
int minimum_schema_size
22

  
23
@Field @Option(name="schema_property_name",usage="", widget="String", required=false, def="")
24
String schema_property_name
25

  
26
@Field @Option(name="schema_display_property_name",usage="", widget="String", required=false, def="REF")
27
String schema_display_property_name
28

  
29
@Field @Option(name="schema_property_value",usage="", widget="String", required=false, def=".*")
30
String schema_property_value
31

  
32
@Field @Option(name="unit_type",usage="", widget="String", required=false, def="MENTION")
33
String unit_type
34

  
35
@Field @Option(name="unit_property_name", usage="", widget="String", required=false, def="CATEGORIE")
36
String unit_property_name
37

  
38
@Field @Option(name="unit_property_value", usage="", widget="String", required=false, def="GN Défini|GN Démonstratif|Nom Propre")
39
String unit_property_value
40

  
41
@Field @Option(name="word_property", usage="", widget="String", required=false, def="word")
42
String word_property
43

  
44
if (!(corpusViewSelection instanceof MainCorpus)) {
45
	println "Corpora selection is not a Corpus"
46
	return;
47
}
48

  
49
// Open the parameters input dialog box
50
if (!ParametersDialog.open(this)) return;
51
// END OF PARAMETERS
52

  
53
MainCorpus corpus = corpusViewSelection
54
def analecCorpus = URSCorpora.getCorpus(corpus)
55

  
56
// check Schema parameters
57
if (!analecCorpus.getStructure().getSchemas().contains(schema_type)) {
58
	println "No schema with name=$schema_type"
59
	return;
60
} else {
61
	if (schema_property_name.length() > 0 && schema_property_value.length() > 0) {
62
		// test property existance
63
		def props = analecCorpus.getStructure().getSchemaProperties(schema_type);
64
		if (!props.contains(schema_property_name)) {
65
			println "Schema $schema_type has no property named $schema_property_name"
66
			return;
67
		}
68
	}
69
}
70

  
71
// check unit parameters
72
if (!analecCorpus.getStructure().getUnites().contains(unit_type)) {
73
	println "No unit with name=$unit_type"
74
	return;
75
} else {
76
	if (unit_property_name.length() > 0 && unit_property_value.length() > 0) {
77
		// test property existance
78
		def props = analecCorpus.getStructure().getUniteProperties(unit_type);
79
		if (!props.contains(unit_property_name)) {
80
			println "Unit $unit_type has no property named $unit_property_name"
81
			return;
82
		}
83
	}
84
}
85

  
86
def CQI = CQPSearchEngine.getCqiClient()
87

  
88
def prop = corpus.getProperty(word_property)
89

  
90
def schemas = analecCorpus.getSchemas(schema_type)
91
allFormesSet = new HashSet();
92
nUnitesGrandTotal = 0;
93
def coefs = []
94
int n = 1
95
for (def schema : schemas) {
96
	def formesSet = new HashSet(); // contient toutes les formes du CR courant
97
	nUnitesTotal = 0;
98
	if (schema_property_name.length() > 0 && schema_property_value.length() > 0) {
99
		if (!schema.getProp(schema_property_name).matches(schema_property_value)) {
100
			// ignoring this schema
101
			continue
102
		}
103
	}
104
	
105
	def units = schema.getUnitesSousjacentesNonTriees()
106
	def nUnites = units.size();
107
	
108
	if (nUnites < minimum_schema_size) continue;
109

  
110
	for (def unit : units) {
111
	
112
		if (unit_type.length() > 0) {
113
			if (!unit.getType().equals(unit_type)) {
114
				continue
115
			}
116
		}
117
		
118
		if (unit_property_name.length() > 0 && unit_property_value.length() > 0) {
119
			if (!unit.getProp(unit_property_name).matches(unit_property_value)) {
120
				// ignoring this schema
121
				continue
122
			}
123
		}
124
		
125
		String forme =  null;
126
		if (prop == null) { // word_property is the analec unit property to use
127
			forme = unit.getProp(word_property)
128
		} else {
129
			int[] pos = null;
130
			if (unit.getDeb() == unit.getFin()) pos = [unit.getDeb()]
131
			else pos = unit.getDeb()..unit.getFin()
132
				
133
			forme = StringUtils.join(CQI.cpos2Str(prop.getQualifiedName(), pos), " ") // ids is enough
134
		}
135
		
136
		formesSet.add(forme)
137
		
138
		nUnitesTotal++
139
	}
140
	if (formesSet.size() == 0) {
141
		coef = -1
142
	} else {
143
		coef = (nUnitesTotal/formesSet.size())
144
	}
145
	coefs << coef
146
	nUnitesGrandTotal += nUnitesTotal;
147
	allFormesSet.addAll(formesSet)
148
	
149
	if (schema_display_property_name != null) {
150
		print schema.getProp(schema_display_property_name)
151
	} else {
152
		print schema_type+"-"+n+" : "
153
	}
154
	
155
	println " ($nUnites units) : $nUnitesTotal selected units / ${formesSet.size()} forms = $coef"
156
	n++
157
}
158

  
159
return ["result":coefs, "data":["nUnitesTotal":nUnitesGrandTotal, "allFormesSet":allFormesSet], "coef":(nUnitesGrandTotal/allFormesSet.size())]
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/mesures1/PremierMaillonMacro.groovy (revision 1962)
1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3
// @author mdecorde
4
// @author sheiden
5
// STANDARD DECLARATIONS
6
package org.txm.macro.urs.exploit.mesures1
7

  
8
import org.kohsuke.args4j.*
9

  
10
import groovy.transform.Field
11

  
12
import org.txm.rcp.swt.widget.parameters.*
13
import org.txm.annotation.urs.*
14
import org.txm.searchengine.cqp.corpus.*
15

  
16
import visuAnalec.donnees.Structure;
17
import visuAnalec.elements.Unite;
18
import visuAnalec.vue.Vue
19

  
20
if (!(corpusViewSelection instanceof MainCorpus)) {
21
	println "Corpora selection is not a Corpus"
22
	return;
23
}
24

  
25
// BEGINNING OF PARAMETERS
26
@Field @Option(name="unit_type",usage="", widget="String", required=true, def="Maillon")
27
String unit_type
28
@Field @Option(name="reset",usage="", widget="Boolean", required=true, def="true")
29
boolean reset
30

  
31
if (!ParametersDialog.open(this)) return;
32

  
33
MainCorpus corpus = corpusViewSelection
34
def analecCorpus = URSCorpora.getCorpus(corpus);
35
Structure structure = analecCorpus.getStructure()
36
if (!structure.getUnites().contains(unit_type)) { // check if the structure contains the unit_type units
37
	println "Error: corpus structure does not contains unit with name=$unit_type"
38
	return
39
}
40
def props = structure.getUniteProperties(unit_type)
41

  
42
String NEW = "NEW"
43
String REF = "REF"
44
String YES = "YES"
45
String NO = "NO"
46
if (!props.contains(NEW)) { // update the structure if needed
47
	analecCorpus.ajouterProp(Unite.class, unit_type, NEW);
48
	analecCorpus.ajouterVal(Unite.class, unit_type, NEW, "YES");
49
	analecCorpus.ajouterVal(Unite.class, unit_type, NEW, "NO");
50
}
51

  
52
if (!props.contains(REF)) { // check the unit_type units have the REF property
53
	println "Error: $unit_type units have no proprerty named 'REF'"
54
	return
55
}
56

  
57
int nIgnored = 0; // number of units ignored
58
int nYes = 0 // number of "YES" unit set
59
int nNo = 0 // number of "NO" unit set
60

  
61
def allRefs = new HashSet<String>() // store the references already seen, allow to set the 'NEW' property to 'YES' or 'NO'
62
def units = analecCorpus.getUnites(unit_type)
63
units.sort() { a, b -> a.getDeb() <=> b.getDeb() ?: a.getFin() <=> b.getFin() }
64
for (Unite unit : units) {
65
	def prop = unit.getProp(NEW);
66
	def ref = unit.getProp(REF);
67
	if (reset || prop == null || prop.length() == 0) {
68
		if (allRefs.contains(ref)) {
69
			unit.getProps().put(NEW, NO)
70
			nNo++
71
		} else { // this is the first MENTION of the CHAINE
72
			allRefs << ref
73
			unit.getProps().put(NEW, YES)
74
			nYes++
75
		}
76
	} else {
77
		// nothing to do "NEW" already exists
78
		nIgnored++
79
	}
80
}
81

  
82
println "nIgnored=$nIgnored"
83
println "nYes=$nYes"
84
println "nNo=$nNo"
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/mesures1/DensiteReferentielleMacro.groovy (revision 1962)
1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3
// @author mdecorde
4
// @author sheiden
5
// STANDARD DECLARATIONS
6
package org.txm.macro.urs.exploit.mesures1
7

  
8
import org.kohsuke.args4j.*
9
import groovy.transform.Field
10
import org.txm.rcp.swt.widget.parameters.*
11
import org.txm.annotation.urs.*
12
import org.txm.searchengine.cqp.corpus.*
13

  
14
if (!(corpusViewSelection instanceof MainCorpus)) {
15
	println "Corpora selection is not a Corpus"
16
	return;
17
}
18

  
19
@Field @Option(name="unit_type",usage="", widget="String", required=false, def="MENTION")
20
String unit_type
21

  
22
@Field @Option(name="unit_property_name", usage="", widget="String", required=false, def="")
23
String unit_property_name
24

  
25
@Field @Option(name="unit_property_value", usage="", widget="String", required=false, def=".*")
26
String unit_property_value
27

  
28
if (!ParametersDialog.open(this)) return;
29
// END OF PARAMETERS
30

  
31
MainCorpus corpus = corpusViewSelection
32
def analecCorpus = URSCorpora.getCorpus(corpus);
33

  
34
// check unit parameters
35
if (!analecCorpus.getStructure().getUnites().contains(unit_type)) {
36
	println "No unit with name=$unit_type"
37
	return;
38
} else {
39
	if (unit_property_name.length() > 0 && unit_property_value.length() > 0) {
40
		// test property existance
41
		def props = analecCorpus.getStructure().getUniteProperties(unit_type);
42
		if (!props.contains(unit_property_name)) {
43
			println "Unit $unit_type has no property named $unit_property_name"
44
			return;
45
		}
46
	}
47
}
48

  
49
int nMots = corpus.getSize();
50

  
51
int nUnites = 0;
52
	for (def unit : analecCorpus.getToutesUnites()) {
53
		if (unit_type.length() > 0) {
54
			if (!unit.getType().equals(unit_type)) {
55
				continue
56
			}
57
		}
58
		
59
		if (unit_property_name.length() > 0 && unit_property_value.length() > 0) {
60
			if (!unit.getProp(unit_property_name).matches(unit_property_value)) {
61
				// ignoring this schema
62
				continue
63
			}
64
		}
65
	
66
		nUnites++
67
	}
68

  
69
coef = (nUnites /nMots)
70
println "densité référentielle : nUnites/nMots = $nUnites/$nMots = $coef = ${coef*100}%"
71
if (nUnites >= nMots) {
72
	println "WARNING: possible encoding error. Number of units ($nUnites) is greater than number of words ($nMots)"
73
}
74
return ["result":coef, "data":["nUnites":nUnites, "nMots":nMots]]
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/mesures1/NombreDeChainesMacro.groovy (revision 1962)
1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff