Révision 657

tmp/org.txm.searchengine.cqp.rcp/.classpath (revision 657)
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
5
		<accessrules>
6
			<accessrule kind="accessible" pattern="**"/>
7
		</accessrules>
8
	</classpathentry>
9
	<classpathentry kind="src" path="src"/>
10
	<classpathentry kind="output" path="bin"/>
11
</classpath>
0 12

  
tmp/org.txm.searchengine.cqp.rcp/META-INF/MANIFEST.MF (revision 657)
1
Manifest-Version: 1.0
2
Bundle-ManifestVersion: 2
3
Bundle-Name: %Bundle-Name
4
Bundle-SymbolicName: org.txm.searchengine.cqp.rcp;singleton:=true
5
Bundle-Version: 1.0.0.qualifier
6
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
7
Require-Bundle: org.txm.searchengine.core;bundle-version="1.0.0",
8
 org.txm.searchengine.cqp.core;bundle-version="1.1.0",
9
 org.txm.core;bundle-version="0.8.0",
10
 org.txm.rcp;bundle-version="0.8.0",
11
 org.eclipse.core.commands;bundle-version="3.6.100",
12
 org.eclipse.ui.workbench;bundle-version="3.106.2",
13
 org.eclipse.ui
14
Export-Package: org.txm.searchengine.cqp.rcp.adapters,
15
 org.txm.searchengine.cqp.rcp.editors,
16
 org.txm.searchengine.cqp.rcp.handlers,
17
 org.txm.searchengine.cqp.rcp.handlers.base,
18
 org.txm.searchengine.cqp.rcp.messages,
19
 org.txm.searchengine.cqp.rcp.preferences
0 20

  
tmp/org.txm.searchengine.cqp.rcp/.project (revision 657)
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>org.txm.searchengine.cqp.rcp</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>org.eclipse.pde.ManifestBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
		<buildCommand>
19
			<name>org.eclipse.pde.SchemaBuilder</name>
20
			<arguments>
21
			</arguments>
22
		</buildCommand>
23
	</buildSpec>
24
	<natures>
25
		<nature>org.eclipse.pde.PluginNature</nature>
26
		<nature>org.eclipse.jdt.core.javanature</nature>
27
	</natures>
28
</projectDescription>
0 29

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/messages/messages.properties (revision 657)
1
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
2
#Eclipse modern messages class
3
#Mon Feb 10 11:04:14 CET 2014
4

  
5

  
6
CANT_CREATE_GRAPHIC = ** Cannot create the graphic
7

  
8
CQPPreferenceInitializer_0 = localhost
9
CQPPreferenceInitializer_1 = anonymous
10

  
11
CQPPreferencePage_0  = CQPlib path
12
CQPPreferencePage_1  = Use network protocol
13
CQPPreferencePage_10 = &Remote CWB server address:
14
CQPPreferencePage_11 = CWB server: &host:
15
CQPPreferencePage_12 = CWB server: &port:
16
CQPPreferencePage_13 = CWB server: &login:
17
CQPPreferencePage_14 = CWB server: &password:
18
CQPPreferencePage_15 = Path to CWB server binary
19
CQPPreferencePage_16 = Path to CWB server registry
20
CQPPreferencePage_17 = Path to CWB server initialisation file
21
CQPPreferencePage_18 = Additionnal &options for the CWB server:
22

  
23
ComplexSubcorpusPanel_0  = Match
24
ComplexSubcorpusPanel_1  = All criteria
25
ComplexSubcorpusPanel_16 = does not contain
26
ComplexSubcorpusPanel_2  = Some criteria
27
ComplexSubcorpusPanel_4  = Query
28
ComplexSubcorpusPanel_5  = Refresh
29

  
30

  
31
ComputeDiagnostic_0 = Selection is not structured
32
ComputeDiagnostic_1 = Error: selection is not a corpus:
33

  
34
ONE_RESULT                         = Done: one result.
35

  
36
DeleteInCorporaView_1 = ** Failed to delete subcorpus {0}
37
DeleteInCorporaView_2 = ** Failed to delete partition {0}
38

  
39
DiagnosticPreferencePage_1 = Description
40
DiagnosticPreferencePage_2 = Maximum values to display
41
DiagnosticPreferencePage_3 = Order partition parts by size
42

  
43
Diagnostique_0  = Structural Units of {0}
44
Diagnostique_1  = Informations of {0} already exists. Do you want to compute a new one ?
45
Diagnostique_10 = get structural units data
46
Diagnostique_11 = Open editor...
47
Diagnostique_2  = ** Failed to read *informations* file of
48
Diagnostique_7  = Create Informations
49
Diagnostique_8  = Getting general informations
50
Diagnostique_9  = Getting lexical properties data
51

  
52
EmpantWidget_0 = Context:
53
EmpantWidget_1 = word
54
EmpantWidget_2 = structure
55
EmpantWidget_3 = from -
56
EmpantWidget_4 = to -
57
EmpantWidget_5 = and from
58
EmpantWidget_6 = to
59
EmpantWidget_7 = include the keyword structure in the count
60
EmpantWidget_8 = use left Window
61
EmpantWidget_9 = use right Window
62

  
63
Error_creating_partition      = Error while creating a partition: {0}
64

  
65
ExportAnnotation_0 = Exporting annotations.
66

  
67
ExportCorpus_0 = ** Failed to export corpus {0}
68
ExportCorpus_3 = Exporting {0}. This may take a while.
69
ExportCorpus_4 = Done, the created binary file is {0}
70

  
71

  
72
GraphicalLogger_0 = Error {0}
73

  
74
InternalCorpusView_0 = Error while computing corpus summary
75
InternalCorpusView_1 = Reload
76
InternalCorpusView_2 = Error: getText: {0}
77

  
78
Invalid_analysis_property = Invalid property
79

  
80
LastCQPError = Last CQP error:
81

  
82

  
83
NumberOfLines = Number of lines:
84

  
85
PartitionComposer_0  = Structure:
86
PartitionComposer_1  = Error: this partition has no part.
87
PartitionComposer_11 = Remove
88
PartitionComposer_2  = Select values to assign:
89
PartitionComposer_3  = New part
90
PartitionComposer_5  = Part
91
PartitionComposer_6  = Rmv all the parts
92
PartitionComposer_8  = Title:
93
PartitionComposer_9  = Assign
94

  
95
PropertiesSelector_0 = Can''t load properties from corpus {0}: {1}
96
PropertiesSelector_1 = Properties:
97
PropertiesSelector_2 = Edit
98

  
99
Property = Property:
100

  
101
PropertySelector_0 = Select a property
102

  
103
PurgeCorpora_0  = Warning! this command will delete the selected corpora, Continue ?
104
PurgeCorpora_1  = Corpora to delete
105
PurgeCorpora_10 = Creating new workspace
106
PurgeCorpora_12 = Restarting platform
107
PurgeCorpora_13 = ** Error: could not find workspace:
108
PurgeCorpora_2  = ** Warning: Failed to delete corpora:
109
PurgeCorpora_3  = Warning! this command will delete all your corpora, Continue ?
110
PurgeCorpora_4  = ** Error: 'TXMHOME' environment variable is not set (its standard value is '$HOME/TXM'). Aborting
111
PurgeCorpora_5  = Delete all corpora
112
PurgeCorpora_7  = ** Failed to delete corpora
113
PurgeCorpora_9  = ** Failed to delete registry
114

  
115
QueriesView_1  = Export all
116
QueriesView_10 = Error with element {0}
117
QueriesView_5  = Queries:\n
118

  
119
QueryAssistDialog_0  = Query Assistant
120
QueryAssistDialog_1  = Add a word
121
QueryAssistDialog_10 = equals to
122
QueryAssistDialog_11 = starts with
123
QueryAssistDialog_12 = ends with
124
QueryAssistDialog_13 = contains
125
QueryAssistDialog_2  = I'm looking for:
126
QueryAssistDialog_3  = I''m looking for {0} words
127
QueryAssistDialog_32 = followed by
128
QueryAssistDialog_33 = separated by at least 0 word
129
QueryAssistDialog_34 = separated by at least 1 word
130
QueryAssistDialog_8  = a word with its property
131

  
132
RefreshingCorporaView = Refreshing corpora...
133

  
134
SEARCH = &Search
135

  
136
SetContextSize_1 = &Contexts display options
137
SetContextSize_2 = Contexts display options
138
SetContextSize_3 = Left context size
139
SetContextSize_4 = Right context size
140

  
141
SetLineNumber_0 = Pagination options
142
SetLineNumber_1 = Line per page:
143

  
144
SetSortProperty_1 = &Sort options
145
SetSortProperty_2 = Sort options
146
SetSortProperty_3 = Sort options
147

  
148
ShowSelected_0 = File: 
149
ShowSelected_4 = Set the 'LANG' property
150

  
151
SimpleSubcorpusPanel_0 = Structural unit combo selected
152

  
153
SortPropertySelection_0 = Sort options
154

  
155
Structure_field_not_empty = structure field is mandatory.
156

  
157
SummaryView_0 = No default edition page found for element: 
158

  
159
TXMCqpServerWatcher_0 = CQP server is down
160
TXMCqpServerWatcher_1 = Please wait for searchengine to restart...
161

  
162
TXMRServeWatcher_0 = StatEngine server is down
163
TXMRServeWatcher_1 = Please wait for StatEngine to restart...
164
TXMRServeWatcher_2 = Ok
165
TXMRServeWatcher_3 = Reloading corpora view...
166
TXMRServeWatcher_4 = Please wait...
167

  
168
ViewPropertySelectionDialog_0 = Display options
169

  
170
ViewPropertySelection_0       = Display options
0 171

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/messages/messages_ru.properties (revision 657)
1
CGU_TITLE=Licence d'utilisation
2
CGU_MESSAGE=<p>TXM est diffusé sous licence GNU GPL 2 &lt;<a href="https://www.gnu.org/licenses/gpl-2.0.fr.html">https://www.gnu.org/licenses/gpl-2.0.fr.html</a>
3
CGU_CHECKMESSAGE=J'accepte la licence et je m'engage à citer TXM dans mes travaux de recherche \n(voir la section Citation de la page <http://textometrie.ens-lyon.fr/spip.php?rubrique61>)
4

  
5
About_Menu_Label = О платформе TXM...
6

  
7
AdapterFactory_0 = ** Предупреждение: корпус {0} поврежден. Некоторые команды могут быть недоступны или функционировать некорркетно.
8

  
9
ERROR          = N/A_Error: 
10

  
11
AssistedQueryWidget_0 = Ouvrir l'assistant de requêtes
12

  
13
BackToText_0 = Показать в полнотекстовом режиме
14

  
15

  
16
CQPPreferenceInitializer_0 = localhost
17
CQPPreferenceInitializer_1 = anonymous
18

  
19
CQPPreferencePage_0  = N/A_CQPlib path
20
CQPPreferencePage_1  = Использовать сетевой протокол
21
CQPPreferencePage_10 = Удаленный &сервер CWB
22
CQPPreferencePage_11 = Удаленный сервер: &имя машины
23
CQPPreferencePage_12 = Удаленный сервер: &номер порта
24
CQPPreferencePage_13 = Удаленный сервер: &логин
25
CQPPreferencePage_14 = Удаленный сервер: &пароль
26
CQPPreferencePage_15 = Путь к исполняемому &файлу 'cqpserver'
27
CQPPreferencePage_16 = Путь к папке &Регистр сервера CWB
28
CQPPreferencePage_17 = Путь к файлу инициализации сервера CWB
29
CQPPreferencePage_18 = Дополнительные опции сервера CWB: 
30

  
31
Cannot_ask_simple_when_advance = Невозможно отобразить закладку простых опций, когда пользователь выбрал отображение дополнительных опций
32

  
33
Commands_0 = Ошибка: невозможно инициализировать команды
34

  
35
ComplexSortSelector_0 = Ключи для сортировки:
36
ComplexSortSelector_1 = Мульти-сортировка
37
ComplexSortSelector_2 = Сортировка
38
ComplexSortSelector_5 = ** Ошибка при сортировке: {0}
39
ComplexSortSelector_6 = по умолчанию
40

  
41
ComplexSort_0         = Открытие диалогового окна сложной сортировки
42
ComplexSort_1         = &Сложная сортировка
43
ComplexSort_10        = Недопустимый блок сравнения
44
ComplexSort_11        = Необходимо выбрать не менее двух блоков сравнения
45
ComplexSort_12        = Добавить в выделенному
46
ComplexSort_14        = Удалить из выделенного
47
ComplexSort_16        = Поднять выделение на один уровень
48
ComplexSort_18        = Опустить выделение на один уровень
49
ComplexSort_2         = Задать и использовать сложную сортировку
50
ComplexSort_3         = Выберите сложную сортировку
51
ComplexSort_4         = &Новый
52
ComplexSort_5         = Создать новый метод сортировки
53
ComplexSort_6         = Имя: 
54
ComplexSort_9         = Поле Имя обязательно.
55

  
56
ComplexSubcorpusPanel_0  = Выделить
57
ComplexSubcorpusPanel_1  = Все критерии
58
ComplexSubcorpusPanel_16 = не содержит
59
ComplexSubcorpusPanel_2  = отдельные критерии
60
ComplexSubcorpusPanel_4  = Запрос 
61
ComplexSubcorpusPanel_5  = Обновить
62

  
63
ONE_RESULT           = Готово: один результат
64

  
65
ConvertCorpus_0 = N/A_Corpus conversion failed.
66

  
67
CorpusPage_0  = Издания
68
CorpusPage_1  = Добавить издание
69
CorpusPage_10 = Свойства слова
70
CorpusPage_11 = Добавить определение свойства
71
CorpusPage_12 = Добавить опредление свойства структуры
72
CorpusPage_13 = Удалить определение свойства
73
CorpusPage_14 = Подкорпуса и распределения по умолчанию
74
CorpusPage_15 = Добавить подкорпус
75
CorpusPage_16 = N/A_caract�res de ponctuations s�parateurs
76
CorpusPage_17 = Удалить подкорпус
77
CorpusPage_18 = Добавить распределение
78
CorpusPage_19 = N/A_caract�res d'ellision
79
CorpusPage_2  = Удалить издание
80
CorpusPage_20 = Удалить распределение
81
CorpusPage_21 = Добавить запрос
82
CorpusPage_22 = N/A_caract�res de fin de phrase
83
CorpusPage_23 = Удалить запрос
84
CorpusPage_24 = Свойства структуры
85
CorpusPage_25 = Добавить определение свойства структуры
86
CorpusPage_26 = N/A_Annotate the corpus
87
CorpusPage_27 = Удалить определение свойства структуры
88
CorpusPage_28 = Использовать только эти тесты при словарной сегментации
89
CorpusPage_29 = Добавить параметр
90
CorpusPage_3  = Шрифт
91
CorpusPage_31 = Удалить параметр
92
CorpusPage_32 = Добавить тест
93
CorpusPage_33 = Добавить параметр
94
CorpusPage_34 = Удалить тест
95
CorpusPage_35 = 1.\	Нажмите на значок 
96
CorpusPage_36 = 'папка', чтобы 
97
CorpusPage_37 = выбрать папку с исходными материалами.
98
CorpusPage_38 = 2.\	Вы можете изменить параметры на следующих этапах.
99
CorpusPage_39 = 3.\	Вы можете 
100
CorpusPage_4  = Добавить параметр
101
CorpusPage_40 = сохранить параметры импорта,
102
CorpusPage_41 = \ нажав на значок дискеты: 
103
CorpusPage_42 = 4.\	Чтобы
104
CorpusPage_43 = начать импортирование,
105
CorpusPage_44 = \ нажмите на этот значок: 
106
CorpusPage_45 = ПИ
107
CorpusPage_46 = Папка с исходными материалами не содержала файл 'import.xml'. Создан новый.
108
CorpusPage_47 = Ошибка при создании файла 'import.xml' 
109
CorpusPage_48 = Загрузка параметров импорта из файла: 
110
CorpusPage_49 = N/A_Default
111
CorpusPage_5  = N/A_caract�res blancs s�parateurs
112
CorpusPage_50 = Параметры модуля: 
113
CorpusPage_51 = Только эти тесты
114
CorpusPage_52 = Сохранение параметров импорта...
115
CorpusPage_53 = Имя корпуса обязательно
116
CorpusPage_54 = Имя корпуса должно содержать хотя бы одну букву
117
CorpusPage_55 = Только эти тесты
118
CorpusPage_6  = Удалить параметр
119
CorpusPage_60 = N/A_OK
120
CorpusPage_61 = Edit XSL stylesheet...
121
CorpusPage_65 = N/A_Cannot save import configuration. No source folder selected.
122
CorpusPage_66 = N/A_Cannot start import configuration. No source folder selected.
123
CorpusPage_7  = Общая информация
124
CorpusPage_8  = Имя корпуса*
125
CorpusPage_9  = Описание - HTML
126

  
127
CreatePartitionDialog_0  = Создать Распределение
128
CreatePartitionDialog_1  = Простое
129
CreatePartitionDialog_16 = Запросы не должны быть пустыми
130
CreatePartitionDialog_2  = &Структура: 
131
CreatePartitionDialog_3  = С подсказкой
132
CreatePartitionDialog_4  = С&войство: 
133
CreatePartitionDialog_5  = Продвинутое
134
CreatePartitionDialog_6  = &Имя: 
135
CreatePartitionDialog_7  = &Часть 
136
CreatePartitionDialog_8  = Не задана ни одна часть
137
CreatePartitionDialog_9  = Имя распределения не вводилось. Автоматическое имя: {0}
138

  
139
CreatePartition_0        = Создание распределения по {0}
140
CreatePartition_2        = ** Ошибка: распределение не создано
141
CreatePartition_5        = Готово: {0} пунктов на {1} употреблений
142
CreatePartition_55       = N/A_Done: {0} items for {1} occurrences
143
CreatePartition_6        = Готово: {0} частей
144

  
145
CreateSubCorpus_0      = ** Ошибка: подкорпус не был создан
146
CreateSubCorpus_2      = N/A_Failed to get last CQP error: 
147
CreateSubCorpus_begin  = Новый &Подкорпус
148
CreateSubCorpus_create = Создать новый подокорпус для {0}
149

  
150
CreateSubcorpusDialog_0  = Создать подкорпус
151
CreateSubcorpusDialog_10 = &Запрос: 
152
CreateSubcorpusDialog_11 = Некорректное имя
153
CreateSubcorpusDialog_13 = Некорректный запрос
154
CreateSubcorpusDialog_14 = Поле Запрос не должно быть пустым.
155
CreateSubcorpusDialog_6  = Зна&чение: 
156
CreateSubcorpusDialog_8  = Имя подкорпуса создано автоматически.
157

  
158
CreateSubcorpus_7        = Составление подкорпуса для {0}, структура {1}, свойство {2} : {3}
159
CreateSubcorpus_8        = Готово : {0} образован 
160
CreateSubcorpus_9        = Составление подкорпуса для {0} по запросу <{1}>
161

  
162
DONE = Готово: {0}
163

  
164
DefineReferencePattern_0 = Шаблон ссылок для отображения
165
DefineReferencePattern_1 = Шаблон ссылок для &отображения
166
DefineReferencePattern_2 = Шаблон ссылок для отображения
167
DefineReferencePattern_3 = Шаблон ссылок для &сортировки
168
DefineReferencePattern_4 = Шаблон ссылок для сортировки
169
DefineReferencePattern_5 = Шаблон ссылок для сортировки
170

  
171
DeleteInCorporaView_1 = ** Ошибка при удалении подкорпуса {0}
172
DeleteInCorporaView_2 = ** Ошибка при удалении распределения {0}
173

  
174

  
175
DiagnosticPreferencePage_1 = Описание
176
DiagnosticPreferencePage_2 = Число отображаемых значений свойства
177
DiagnosticPreferencePage_3 = Сортировать части по размеру
178

  
179
Diagnostique_0  = Структурные единицы {0}
180
Diagnostique_1  = Информация о {0} уже сформирована. Хотите ли Вы ее обновить?
181
Diagnostique_10 = Получение информации о структурных единицах
182
Diagnostique_11 = Открытие окна
183
Diagnostique_2  = ** Ошибка при чтении файла *informations* 
184
Diagnostique_7  = Создание окна с информацией
185
Diagnostique_8  = Получение общей информации
186
Diagnostique_9  = Получение данных о словарных единицах
187

  
188
EmpantWidget_0 = Контекст: 
189
EmpantWidget_1 = форма
190
EmpantWidget_2 = структура
191
EmpantWidget_3 = от -
192
EmpantWidget_4 = до -
193
EmpantWidget_5 = и от
194
EmpantWidget_6 = до
195
EmpantWidget_7 = вклюая структуру, содержащую мотив
196
EmpantWidget_8 = Активный левый контекст
197
EmpantWidget_9 = Активный правый контекст
198

  
199
Error_creating_partition      = ** Ошибка во время создания распределения: {0}
200

  
201
ExportCorpus_0 = ** Не удалось экспортировать корпу {0}
202
ExportCorpus_3 = Экпортирование 
203
ExportCorpus_4 = Готово, бинарный файл - {0} 
204

  
205
InternalCorpusView_0 = ** Ошибка при подготовке информации о корпусе
206
InternalCorpusView_1 = Перезагрузить
207
InternalCorpusView_2 = ** Внутренняя ошибка: getText {0}
208

  
209
Invalid_analysis_property = Некорректное свойство
210

  
211
LastCQPError = Последняя ошибка CQP: 
212

  
213
PartitionComposer_0  = Структура: 
214
PartitionComposer_11 = Удалить
215
PartitionComposer_2  = Выбрать значения для назначения: 
216
PartitionComposer_3  = Новая часть
217
PartitionComposer_5  = Часть
218
PartitionComposer_6  = Удалить все части
219
PartitionComposer_8  = Заголовок: 
220
PartitionComposer_9  = Назначить
221

  
222
Preferences_Menu_Label = Опции
223

  
224
PropertiesSelector_0 = Не удается загрузить свойства корпуса {0} ({1})
225
PropertiesSelector_1 = Свойства: 
226
PropertiesSelector_2 = Править
227

  
228
PropertySelector_0 = Выбрать свойство
229

  
230
PurgeCorpora_0  = Осторожно! Эта команда приведет к удалению всех выделенных корпусов. Продолжить?
231
PurgeCorpora_1  = Удаляемые корпуса 
232
PurgeCorpora_10 = Создание нового рабочего пространства
233
PurgeCorpora_12 = Перезагрузка платформы
234
PurgeCorpora_13 = ** Ошибка: не удалось найти рабочее пространство: 
235
PurgeCorpora_2  = ** Внимание! не были удалены корпуса: 
236
PurgeCorpora_3  = Осторожно! Эта команда приведет к удалению всех корпусов. Продолжить?
237
PurgeCorpora_4  = ** Ошибка: переменная окружения 'TXMHOME' не задана (ее значение по умолчанию -  '$HOME/TXM'). Работа прекращена.
238
PurgeCorpora_5  = Удаление всех корпусов
239
PurgeCorpora_7  = ** Не удалось удалить корпуса
240
PurgeCorpora_9  = ** Не удалось удалить регистр
241

  
242
QueriesView_1  = Экспортировать всё
243
QueriesView_10 = ошибка: 
244
QueriesView_5  = Запросы:\n
245

  
246
QueryAssistDialog_0  = Мастер Запросов
247
QueryAssistDialog_1  = Дополнительное слово
248
QueryAssistDialog_10 = совпадает с
249
QueryAssistDialog_11 = начинается с
250
QueryAssistDialog_12 = заканчивается на
251
QueryAssistDialog_13 = содержит
252
QueryAssistDialog_2  = Я ищу: 
253
QueryAssistDialog_3  = слово
254
QueryAssistDialog_32 = за ним 
255
QueryAssistDialog_33 = с интервалом не менее 0 слов
256
QueryAssistDialog_34 = с интервалом не менее 1 слова
257
QueryAssistDialog_8  = - Слово №
258

  
259

  
260
RefreshingCorporaView = Обновление вида корпусов...
261

  
262

  
263

  
264
SetContextSize_1 = Задать размер &контекстов
265
SetContextSize_2 = Задать размер контекстов
266
SetContextSize_3 = Размер левого контекста
267
SetContextSize_4 = Размер правого контекста
268

  
269
SetEncoding_0 = Изменить кодировку
270
SetEncoding_1 = Изменить кодировку.\n\n\	Используемая кодировка: 
271
SetEncoding_2 = \n\	Кодировка по умолчанию:  
272

  
273
SetLineNumber_0 = Количество строк на странице
274
SetLineNumber_1 = № строки
275

  
276
SetSortProperty_1 = Задать свойство &Сортировки
277
SetSortProperty_2 = Задать свойство сортировки
278
SetSortProperty_3 = Сортировка свойств 
279

  
280
ShowSelected_4 = Править свойство 'LANG'
281

  
282
SortPropertySelection_0 = Сортировка свойств 
283

  
284
Structure_field_not_empty = Поле Структура не должно быть пустым.
285

  
286
Submit_0 = Сохранить
287

  
288
TXMCqpServerWatcher_0 = Поисковая машина остановлена
289
TXMCqpServerWatcher_1 = Пожалуйста, подождите, пока поисковая машина перезагружается...
290

  
291
TXMRServeWatcher_0 = Статистическая машина остановлена
292
TXMRServeWatcher_1 = Пожалуйста, подождите, пока статистическая машина перезагружается...
293
TXMRServeWatcher_2 = Ok
294
TXMRServeWatcher_3 = Перезагрузка вида корпусов...
295
TXMRServeWatcher_4 = Пожалуйста, подождите...
296

  
297
ViewPropertySelectionDialog_0 = Отображение свойств
298

  
299
ViewPropertySelection_0       = Отображение свойств
0 300

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/messages/CQPUIMessages.java (revision 657)
1
package org.txm.searchengine.cqp.rcp.messages;
2

  
3
import org.txm.utils.messages.Utf8NLS;
4

  
5
public class CQPUIMessages extends Utf8NLS {
6
	
7
	private static final String BUNDLE_NAME = "org.txm.searchengine.cqp.rcp.messages.messages"; //$NON-NLS-1$
8
	
9
	public static String CQPPreferenceInitializer_0;
10
	public static String CQPPreferenceInitializer_1;
11
	public static String CQPPreferencePage_0;
12
	public static String CQPPreferencePage_1;
13
	public static String CQPPreferencePage_10;
14
	public static String CQPPreferencePage_11;
15
	public static String CQPPreferencePage_12;
16
	public static String CQPPreferencePage_13;
17
	public static String CQPPreferencePage_14;
18
	public static String CQPPreferencePage_15;
19
	public static String CQPPreferencePage_16;
20
	public static String CQPPreferencePage_17;
21
	public static String CQPPreferencePage_18;
22
	
23
	static {
24
		Utf8NLS.initializeMessages(CQPUIMessages.class);
25
	}
26
}
0 27

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/messages/messages_fr.properties (revision 657)
1
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
2
#Eclipse modern messages class
3
#Mon Feb 10 10:26:04 CET 2014
4

  
5
OK=OK
6
REFRESH=Rafraîchir
7
CGU_TITLE=Licence d'utilisation
8
CGU_MESSAGE=<p>TXM est diffusé sous licence GNU GPL 2 &lt;<a href="https://www.gnu.org/licenses/gpl-2.0.fr.html">https://www.gnu.org/licenses/gpl-2.0.fr.html</a>
9
CGU_CHECKMESSAGE=J'accepte la licence et je m'engage à citer TXM dans mes travaux de recherche \n(voir la section Citation de la page <http://textometrie.ens-lyon.fr/spip.php?rubrique61>)
10

  
11
About_Menu_Label = À propos de TXM...
12

  
13
AdapterFactory_0 = ** Avertissement : le corpus {0} est corrompu. Certaines commandes ne fonctionneront pas correctement.
14

  
15

  
16
ERROR                           = Erreur: 
17

  
18
AssistedQueryWidget_0 = Ouvrir l'assistant de requêtes
19

  
20
CQPPreferenceInitializer_0 = localhost
21
CQPPreferenceInitializer_1 = anonymous
22

  
23
CQPPreferencePage_0  = Chemin vers CQPlib
24
CQPPreferencePage_1  = Utiliser le protocole réseau
25
CQPPreferencePage_10 = &Serveur CWB distant
26
CQPPreferencePage_11 = Serveur distant : nom de machine
27
CQPPreferencePage_12 = Serveur distant : numéro de &port
28
CQPPreferencePage_13 = Serveur distant : &login
29
CQPPreferencePage_14 = Serveur distant : &mot de passe
30
CQPPreferencePage_15 = Chemin vers le fichier &exécutable 'cqpserver'
31
CQPPreferencePage_16 = Chemin vers le dossier de &Registre du serveur CWB
32
CQPPreferencePage_17 = Chemin vers le fichier d'initialisation du serveur CWB
33
CQPPreferencePage_18 = Options additionnelles pour le serveur CWB : 
34

  
35
Cannot_ask_simple_when_advance = Impossible d'afficher l'onglet des options simples quand l'utilisateur a sélectionné l'affichage des options avancées
36

  
37
ComplexSortSelector_0 = Clés de tri : 
38
ComplexSortSelector_1 = Tri multiple : 
39
ComplexSortSelector_2 = Tri
40
ComplexSortSelector_5 = ** Erreur pendant le tri : {0}
41
ComplexSortSelector_6 = par défaut
42

  
43
ComplexSort_0         = Ouverture de la boite de dialogue du tri composé
44
ComplexSort_1         = &Tri composé
45
ComplexSort_10        = Comparateur invalide
46
ComplexSort_11        = Il faut sélectionner au moins deux comparateurs
47
ComplexSort_12        = Ajouter à la sélection
48
ComplexSort_14        = Retirer de la sélection
49
ComplexSort_16        = Monter d'un cran la sélection
50
ComplexSort_18        = Descendre d'un cran la sélection
51
ComplexSort_2         = Définir et utiliser un tri composé
52
ComplexSort_3         = Sélectionnez un tri composé
53
ComplexSort_4         = &Nouveau
54
ComplexSort_5         = Créer une nouvelle méthode de tri
55
ComplexSort_6         = Nom : 
56
ComplexSort_9         = Le champ Nom est obligatoire.
57

  
58
ComplexSubcorpusPanel_0  = Sélectionner
59
ComplexSubcorpusPanel_1  = Tous les critères
60
ComplexSubcorpusPanel_16 = ne contient pas
61
ComplexSubcorpusPanel_2  = certains critères
62
ComplexSubcorpusPanel_4  = Requête 
63
ComplexSubcorpusPanel_5  = Rafraîchir
64

  
65
ComputeCoocFromLines_0 = Calcul des cooccurrents en cours
66
ComputeCoocFromLines_1 = Ouverture du tableau de cooccurrents
67

  
68

  
69
ONE_RESULT           = Terminé : un résultat.
70

  
71
ConvertCorpus_0 = La conversion du corpus a échoué.
72

  
73

  
74
CreatePartitionDialog_0  = Créer une Partition
75
CreatePartitionDialog_1  = Simple
76
CreatePartitionDialog_16 = Les requêtes ne doivent pas être vides
77
CreatePartitionDialog_2  = &Structure : 
78
CreatePartitionDialog_3  = Assisté
79
CreatePartitionDialog_4  = &Propriété : 
80
CreatePartitionDialog_5  = Avancé
81
CreatePartitionDialog_6  = &Nom : 
82
CreatePartitionDialog_7  = Partie 
83
CreatePartitionDialog_8  = Aucune partie définie
84
CreatePartitionDialog_9  = Le nom de la partition n''a pas été précisé. Le nom est {0}
85

  
86
CreatePartition_0        = Création d''une partition sur {0}
87
CreatePartition_2        = ** Erreur : la partition n'a pas été créé
88
CreatePartition_5        = Terminé : {0} items pour {1} occurrences.
89
CreatePartition_55       = Terminé : {0} items pour {1} occurrences.
90
CreatePartition_6        = Terminé : {0} parties
91

  
92
CreateSubCorpus_0      = ** Erreur : le sous-corpus n'a pas été créé
93
CreateSubCorpus_2      = Erreur lors de la récupération de la dernière erreur CQP : 
94
CreateSubCorpus_begin  = Nouveau &Sous-corpus
95
CreateSubCorpus_create = Créer un nouveau sous-corpus de {0}
96

  
97
CreateSubcorpusDialog_0  = Créer un sous-corpus
98
CreateSubcorpusDialog_10 = &Requête : 
99
CreateSubcorpusDialog_11 = Nom incorrect
100
CreateSubcorpusDialog_13 = Requête invalide
101
CreateSubcorpusDialog_14 = Le champ Requête ne doit pas être vide.
102
CreateSubcorpusDialog_6  = &Valeur : 
103
CreateSubcorpusDialog_8  = Un nom de sous-corpus a été généré.
104

  
105
CreateSubcorpus_7        = Calcul d''un sous-corpus de {0}, structure {1}, propriété {2} : {3}
106
CreateSubcorpus_8        = Terminé : {0} a été créé  
107
CreateSubcorpus_9        = Calcul d''un sous-corpus de {0} avec la requête <{1}>
108

  
109
DONE = Terminé : {0}
110

  
111
DefineReferencePattern_0 = Options d'affichage des références
112
DefineReferencePattern_1 = Options d'&affichage des références
113
DefineReferencePattern_2 = Options d'affichage des références
114
DefineReferencePattern_3 = Options de &tri des références
115
DefineReferencePattern_4 = Options de tri des références
116
DefineReferencePattern_5 = Options de tri des références
117

  
118
DeleteInCorporaView_1 = ** Erreur lors de la suppression du sous-corpus {0}
119
DeleteInCorporaView_2 = ** Erreur lors de la suppression de la partition {0}
120

  
121
DeleteLines_0 = Le tableau doit comporter au moins une ligne
122
DeleteLines_1 = Sûr(e) ?
123

  
124
DiagnosticPreferencePage_1 = Description
125
DiagnosticPreferencePage_2 = Nombre de valeurs de propriété affiché
126
DiagnosticPreferencePage_3 = Ordonner les parties par taille
127

  
128
Diagnostique_0  = Unités de structure de {0}
129
Diagnostique_1  = Les informations de {0} ont déjà été calculées. Souhaitez vous les recalculer ?
130
Diagnostique_10 = Récupération des informations sur les unités de structure
131
Diagnostique_11 = Ouverture de la fenêtre...
132
Diagnostique_2  = ** Échec de lecture du fichier *informations* de 
133
Diagnostique_7  = Création de la fenêtre d'informations
134
Diagnostique_8  = Récupération des informations générales
135
Diagnostique_9  = Récupération des données sur les unités lexicales
136

  
137
EmpantWidget_0 = Contexte : 
138
EmpantWidget_1 = forme
139
EmpantWidget_2 = structure
140
EmpantWidget_3 = de -
141
EmpantWidget_4 = à -
142
EmpantWidget_5 = et de
143
EmpantWidget_6 = à
144
EmpantWidget_7 = inclure la structure contenant le pivot
145
EmpantWidget_8 = Contexte gauche actif
146
EmpantWidget_9 = Contexte droit actif
147

  
148
Exit_Menu_Label = Quitter
149

  
150
ExportAnnotation_0 = Exportation des annotations
151

  
152
ExportCorpus_0 = ** Échec de l''exportation du corpus {0}
153
ExportCorpus_3 = Exportation de {0}. Cela peut prendre du temps en fonction de la taille du corpus.
154
ExportCorpus_4 = Terminé, le fichier binaire créé est {0}
155

  
156
InternalCorpusView_0 = ** Erreur lors du calcul des informations du corpus
157
InternalCorpusView_1 = Recharger
158
InternalCorpusView_2 = ** Erreur interne : getText {0}
159

  
160
Invalid_analysis_property = Propriété invalide
161

  
162
LastCQPError = Dernière erreur CQP : 
163

  
164
NavigationWidget_0 = Erreur lors de la récupération des données à l'indice : 
165

  
166
NumberOfLines = Nombre de lignes :
167

  
168
OpenEmptyEditor_2 = ** Bibliographie : dossier {0} introuvable
169

  
170
OpenTXMUserPreferences_0 = Paramètres par défaut
171

  
172

  
173
PartitionComposer_0  = Structure : 
174
PartitionComposer_11 = Supprimer
175
PartitionComposer_2  = Sélectionner les valeurs à affecter : 
176
PartitionComposer_3  = Nouvelle partie
177
PartitionComposer_5  = Partie
178
PartitionComposer_6  = Supp. toutes les parties
179
PartitionComposer_8  = Titre : 
180
PartitionComposer_9  = Affecter
181

  
182
PartsSize_0  = Trier par taille
183
PartsSize_10 = Dimensions de la partition {0} du corpus {1}
184
PartsSize_2  = Nombre de mots par partie
185

  
186
PasteFile_1 = ** Erreur lors de la copie  
187
PasteFile_3 = ** Échec de la suppression
188
PasteFile_4 = : 
189

  
190
Preferences_Menu_Label = Préférences
191

  
192

  
193
PropertiesSelector_0 = Impossible de charger les propriétés du corpus {0} ({1})
194
PropertiesSelector_1 = Propriétés : 
195
PropertiesSelector_2 = Editer
196

  
197
Property = Propriétés :
198

  
199
PropertySelector_0 = Sélectionner une propriété
200

  
201
PurgeCorpora_0  = Attention ! Cette commande va supprimer tous les corpus sélectionnés. Continuer ?
202
PurgeCorpora_1  = Corpus à supprimer 
203
PurgeCorpora_10 = Création d'un nouvel espace de travail
204
PurgeCorpora_12 = Redémarrage de la plateforme
205
PurgeCorpora_13 = ** Erreur : espace de travail introuvable : 
206
PurgeCorpora_2  = ** Attention : corpus non supprimés : 
207
PurgeCorpora_3  = Attention ! Cette commande va supprimer tous les corpus. Continuer ?
208
PurgeCorpora_4  = ** Erreur : la variable d'environnement 'TXMHOME' n'est pas configurée (sa valeur standard est '$HOME/TXM'). Abandon.
209
PurgeCorpora_5  = Supprime tous les corpus
210
PurgeCorpora_7  = ** Échec de la suppression des corpus
211
PurgeCorpora_9  = ** Échec de la suppression du registre
212

  
213
QueriesView_1  = Tout exporter
214
QueriesView_10 = erreur : 
215
QueriesView_5  = Requêtes :\n
216

  
217
QueryAssistDialog_0  = Assistant de Requête
218
QueryAssistDialog_1  = Mot supplémentaire
219
QueryAssistDialog_10 = correspond à
220
QueryAssistDialog_11 = commence par
221
QueryAssistDialog_12 = se termine par
222
QueryAssistDialog_13 = contient
223
QueryAssistDialog_2  = Je recherche : 
224
QueryAssistDialog_3  = mot
225
QueryAssistDialog_32 = suivi de 
226
QueryAssistDialog_33 = séparé d'au moins 0 mot
227
QueryAssistDialog_34 = séparé d'au moins 1 mot
228
QueryAssistDialog_8  = un mot dont
229

  
230

  
231
RefreshingCorporaView = Mise à jour de la vue des corpus...
232

  
233
RenameFile_0 = Renommer le fichier
234
RenameFile_2 = Renommage par : 
235
RenameFile_3 = ** Échec du renommage 
236

  
237
RestartTXM_0 = Rechargement des vues...
238
RestartTXM_1 = Redémarrer TXM
239

  
240
RunGroovyScript_0  = Exécution du script
241
RunGroovyScript_1  = &Exécuter un script
242
RunGroovyScript_10 = Répertoire de sources :
243
RunGroovyScript_2  = Exécuter un script
244
RunGroovyScript_3  = *.groovy
245
RunGroovyScript_4  = Erreur lors de l''ouverture du script groovy : {0}
246
RunGroovyScript_8  = ** Erreur lors de l''exécution du script groovy : {0}
247
RunGroovyScript_9  = Exécution du script
248

  
249
SEARCH = &Искать
250

  
251
SVGGraphicEditor_1 = Impossible d'afficher un graphique avec les informations fournies.
252

  
253
SaveAs_2 = ** Échec de la sauvegarde 
254

  
255
ScriptPreferencePage_0 = Prochain numéro de session 
256
ScriptPreferencePage_3 = Dossier &racine
257

  
258
SetContextSize_1 = Options d'affichage des &contextes
259
SetContextSize_2 = Options d'affichage des contextes
260
SetContextSize_3 = Taille du contexte gauche
261
SetContextSize_4 = Taille du contexte droit
262

  
263
SetEncoding_0 = Changer l'encodage des caractères
264
SetEncoding_1 = Changer l'encodage des caractères.\n\n\	Encodage actuel : 
265
SetEncoding_2 = \n\	Encodage par défaut :  
266

  
267
SetLineNumber_0 = Options de pagination
268
SetLineNumber_1 = Lignes par page : 
269

  
270
SetSortProperty_1 = Options de tri
271
SetSortProperty_2 = Options de tri
272
SetSortProperty_3 = Options de tri
273

  
274
ShowSelected_4 = Régler la propriété 'LANG'
275

  
276
SingularValuesEditor_0 = Entrée erronée
277

  
278
SortPropertySelection_0 = Options de tri
279

  
280
Structure_field_not_empty = Le champ structure ne doit pas être vide.
281

  
282
Submit_0 = Enregistrer
283

  
284
TXMCqpServerWatcher_0 = Le moteur de recherche est arrêté
285
TXMCqpServerWatcher_1 = Veuillez attendre que le moteur de recherche ai redémarré...
286

  
287
TXMRServeWatcher_0 = Le moteur statistique est arrêté
288
TXMRServeWatcher_1 = Veuillez attendre que le moteur statistique ai redémarré...
289
TXMRServeWatcher_2 = Ok
290
TXMRServeWatcher_3 = Rechargement de la vue des corpus...
291
TXMRServeWatcher_4 = Veuillez patienter...
292

  
293
TablableVector_0 = Les deux tables doivent être de même taille.
294

  
295
TableEditor_0 = Impossible d'afficher un tableau avec les informations fournies
296

  
297
TableKeyListener_1 = Saisissez l'expression régulière de votre recherche
298
TableKeyListener_6 = Lignes copiées : \n
299

  
300
TxmCommand_1 = Chargement de l'extension 
301

  
302
UIParameterException_0 = Erreur  
303

  
304
ViewPropertySelectionDialog_0 = Options d'affichage
305

  
306
ViewPropertySelection_0       = Options d'affichage
0 307

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/editors/InformationEditor.java (revision 657)
1
package org.txm.searchengine.cqp.rcp.editors;
2

  
3
import java.io.File;
4

  
5
import org.eclipse.swt.SWT;
6
import org.eclipse.swt.browser.Browser;
7
import org.eclipse.swt.events.SelectionEvent;
8
import org.eclipse.swt.events.SelectionListener;
9
import org.eclipse.swt.layout.GridData;
10
import org.eclipse.swt.layout.GridLayout;
11
import org.eclipse.swt.layout.RowData;
12
import org.eclipse.swt.widgets.Composite;
13
import org.eclipse.swt.widgets.Label;
14
import org.eclipse.swt.widgets.Spinner;
15
import org.eclipse.ui.IEditorInput;
16
import org.eclipse.ui.IEditorSite;
17
import org.eclipse.ui.PartInitException;
18
import org.txm.rcp.editors.TXMEditor;
19
import org.txm.searchengine.cqp.CQPPreferences;
20
import org.txm.searchengine.cqp.core.functions.information.Information;
21

  
22
public class InformationEditor extends TXMEditor<Information> {
23

  
24
	private Spinner maxScore;
25
	private Browser browser;
26
	protected Information diag;
27

  
28
	@Override
29
	public void init(IEditorSite site, IEditorInput input) throws PartInitException {
30
		super.init(site, input);
31
		if (getResult() instanceof Information)
32
			this.diag = (Information) getResult();
33
	}
34
	
35
	@Override
36
	public void _createPartControl(Composite parent) {
37
//		super.createPartControl(parent);
38
		
39
		Composite parametersArea = getCommandParametersGroup();
40
		
41
		new Label(parametersArea, SWT.NONE).setText("V max");
42

  
43
		maxScore = new Spinner(parametersArea, SWT.BORDER);
44
		maxScore.setToolTipText("The maximum number of word property values to show");
45
		maxScore.setMinimum(0);
46
		maxScore.setSelection(CQPPreferences.getInt(CQPPreferences.MAXVALUE, CQPPreferences.PREFERENCES_NODE));
47
		RowData gdata = new RowData();
48
		gdata.width = 100;
49
		maxScore.setLayoutData(gdata);
50
		maxScore.addSelectionListener(new SelectionListener() {
51
			@Override
52
			public void widgetSelected(SelectionEvent e) {
53
				compute(true);
54
			}
55
			
56
			@Override
57
			public void widgetDefaultSelected(SelectionEvent e) { }
58
		});
59
		
60
		Composite displayArea = getResultArea();
61
		displayArea.setLayout(new GridLayout(1, true));
62
		
63
		browser = new Browser(displayArea, SWT.NONE);
64
		browser.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
65
	}
66
	
67
	@Override
68
	public void updateEditorFromResult(boolean update) {
69
		File file = diag.getHTMLFile();
70
		if (file.exists()) {
71
			browser.setUrl(file.getAbsolutePath());
72
		}
73
	}
74

  
75
	@Override
76
	public void updateResultFromEditor() {
77
		if (!maxScore.isDisposed())
78
			this.diag.setParameters(maxScore.getSelection());
79
	}
80
}
0 81

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/ComputeInformation.java (revision 657)
1
// Copyright © 2010-2013 ENS de Lyon.
2
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
3
// Lyon 2, University of Franche-Comté, University of Nice
4
// Sophia Antipolis, University of Paris 3.
5
// 
6
// The TXM platform is free software: you can redistribute it
7
// and/or modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation,
9
// either version 2 of the License, or (at your option) any
10
// later version.
11
// 
12
// The TXM platform is distributed in the hope that it will be
13
// useful, but WITHOUT ANY WARRANTY; without even the implied
14
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
// PURPOSE. See the GNU General Public License for more
16
// details.
17
// 
18
// You should have received a copy of the GNU General
19
// Public License along with the TXM platform. If not, see
20
// http://www.gnu.org/licenses.
21
// 
22
// 
23
// 
24
// $LastChangedDate:$
25
// $LastChangedRevision:$
26
// $LastChangedBy:$ 
27
//
28
package org.txm.searchengine.cqp.rcp.handlers;
29

  
30
import org.eclipse.core.commands.AbstractHandler;
31
import org.eclipse.core.commands.ExecutionEvent;
32
import org.eclipse.core.commands.ExecutionException;
33
import org.eclipse.jface.viewers.IStructuredSelection;
34
import org.eclipse.swt.SWT;
35
import org.eclipse.ui.IWorkbenchPage;
36
import org.eclipse.ui.PartInitException;
37
import org.eclipse.ui.handlers.HandlerUtil;
38
import org.txm.rcp.RCPMessages;
39
import org.txm.rcp.TXMWindows;
40
import org.txm.rcp.editors.TXMEditor;
41
import org.txm.rcp.editors.TXMResultEditorInput;
42
import org.txm.rcp.views.corpora.CorporaView;
43
import org.txm.searchengine.cqp.CQPEngine;
44
import org.txm.searchengine.cqp.core.functions.information.Information;
45
import org.txm.searchengine.cqp.corpus.Corpus;
46
import org.txm.searchengine.cqp.rcp.editors.InformationEditor;
47
import org.txm.utils.logger.Log;
48

  
49
// TODO: Auto-generated Javadoc
50
/**
51
 * Call the function Information on a MainCorpus, a SubCorpus and a Partition
52
 * show basic stats and give some properties values 
53
 * @author mdecorde.
54
 */
55
public class ComputeInformation extends AbstractHandler {
56
	
57
	// adds a double click listener to the Corpus View
58
	static	{
59
		CorporaView.addDoubleClickListener(Information.class, ComputeInformation.class);
60
	}
61
	
62
	/** The selection. */
63
	private IStructuredSelection selection;
64
	
65
	/** The response. */
66
	int response = SWT.YES;
67

  
68
	/* (non-Javadoc)
69
	 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
70
	 */
71
	@Override
72
	public Object execute(ExecutionEvent event) throws ExecutionException {
73
		if (!CQPEngine.isInitialized()) {
74
			System.out.println("SearchEngine is not ready. Aborting.");
75
			return false;
76
		}
77
		
78
		Object sel = HandlerUtil.getCurrentSelection(event);
79
		if (!(sel instanceof IStructuredSelection)) {
80
			Log.warning(RCPMessages.ComputeDiagnostic_0);
81
			return null;
82
		}
83
		
84
		selection = (IStructuredSelection) sel;
85
		Object s = selection.getFirstElement();
86
		Information diag = null;
87
		if (s instanceof Corpus) {
88
			diag = new Information((Corpus)s);
89
		} else if (s instanceof Information) {
90
			diag = (Information)s;
91
		} else {
92
			System.out.println("Selection not managed: "+s);
93
		}
94
		try {
95
			open(diag);
96
		} catch (PartInitException e) {
97
			System.out.println("Error while opening editor: "+e.getLocalizedMessage());
98
			Log.printStackTrace(e);
99
		}
100
		return null;
101
	}
102
	
103
	public static void open(Information diag) throws PartInitException {
104
		TXMEditor.openEditor(diag, InformationEditor.class.getName());
105
	}
106
}
0 107

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/OpenBiblio.java (revision 657)
1
// Copyright © 2010-2013 ENS de Lyon.
2
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
3
// Lyon 2, University of Franche-Comté, University of Nice
4
// Sophia Antipolis, University of Paris 3.
5
// 
6
// The TXM platform is free software: you can redistribute it
7
// and/or modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation,
9
// either version 2 of the License, or (at your option) any
10
// later version.
11
// 
12
// The TXM platform is distributed in the hope that it will be
13
// useful, but WITHOUT ANY WARRANTY; without even the implied
14
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
// PURPOSE. See the GNU General Public License for more
16
// details.
17
// 
18
// You should have received a copy of the GNU General
19
// Public License along with the TXM platform. If not, see
20
// http://www.gnu.org/licenses.
21
// 
22
// 
23
// 
24
// $LastChangedDate:$
25
// $LastChangedRevision:$
26
// $LastChangedBy:$ 
27
//
28
package org.txm.searchengine.cqp.rcp.handlers.base;
29

  
30
import java.util.ArrayList;
31

  
32
import org.eclipse.core.commands.AbstractHandler;
33
import org.eclipse.core.commands.ExecutionEvent;
34
import org.eclipse.core.commands.ExecutionException;
35
import org.eclipse.jface.viewers.IStructuredSelection;
36
import org.eclipse.jface.window.Window;
37
import org.eclipse.osgi.util.NLS;
38
import org.eclipse.swt.widgets.Shell;
39
import org.eclipse.ui.handlers.HandlerUtil;
40
import org.txm.objects.Text;
41
import org.txm.rcp.RCPMessages;
42
import org.txm.rcp.commands.OpenBrowser;
43
import org.txm.rcp.editors.TXMBrowser;
44
import org.txm.rcp.swt.dialog.ComboDialog;
45
import org.txm.searchengine.cqp.corpus.Corpus;
46
/**
47
 * Open a text edition from: a main corpus : the first text of the maincorpus a
48
 * sub-corpus : the first text of the subcorpus a partition : the user must
49
 * choose one of the text used in the partition
50
 * 
51
 * note: unplugged for now
52
 *  
53
 * @author mdecorde.
54
 */
55
public class OpenBiblio extends AbstractHandler {
56

  
57
	/** The Constant ID. */
58
	public final static String ID = "org.txm.rcp.commands.base.OpenBiblio"; //$NON-NLS-1$
59

  
60
	/** The lastopenedfile. */
61
	public static String lastopenedfile;
62

  
63
	/** The textids. */
64
	private ArrayList<String> textids;
65

  
66
	/* (non-Javadoc)
67
	 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
68
	 */
69
	@Override
70
	public Object execute(ExecutionEvent event) throws ExecutionException {
71

  
72
		IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
73

  
74
		Shell shell = HandlerUtil.getActiveWorkbenchWindowChecked(event).getShell();
75

  
76
		if (selection.getFirstElement() instanceof Corpus) {
77
			Corpus corpus = (Corpus) selection.getFirstElement();
78

  
79
			textids = new ArrayList<String>(corpus.getTextsID());
80
			if (textids.size() == 0)
81
			{
82
				System.out.println(NLS.bind(RCPMessages.OpenBiblio_1, corpus.getName()));
83
				return null;
84
			}
85

  
86
			ComboDialog dialog = new ComboDialog(shell, RCPMessages.OpenBiblio_2, textids, textids.get(0));
87
			if (dialog.open() == Window.OK)
88
			{
89
				String textid = dialog.getSelectedValue();
90
				openBiblio(corpus, textid);
91
			}
92
		}
93
		else if (selection.getFirstElement() instanceof Text)
94
		{
95
			Text text = (Text) selection.getFirstElement();
96
			openBiblio(text);
97
		}
98
		return null;
99
	}
100

  
101
	/**
102
	 * Open biblio.
103
	 *
104
	 * @param base the base
105
	 * @param textid the textid
106
	 * @return the object
107
	 */
108
	public Object openBiblio(Corpus corpus, String textid ) {
109

  
110
		Text text = corpus.getMainCorpus().getText(textid);
111
		if (text == null) {
112
			System.out.println(NLS.bind(RCPMessages.OpenBiblio_7, textid, corpus.getName()));
113
			return null;
114
		}
115

  
116
		return openBiblio(text);
117
	}
118

  
119
	/**
120
	 * Open biblio.
121
	 *
122
	 * @param text the text
123
	 * @return the object
124
	 */
125
	public Object openBiblio(Text text) {
126

  
127
		if (text == null)
128
		{
129
			return null;
130
		}
131
		if (text.getBiblioPath() == null) {
132
			System.out.println(NLS.bind(RCPMessages.OpenBiblio_9, text.getName()));
133
			return null;
134
		}
135
		String url = text.getBiblioPath().toString();
136
		if (url.trim().length() == 0) {
137
			System.out.println(NLS.bind(RCPMessages.OpenBiblio_9, text.getName()));
138
			return null;
139
		}
140
		TXMBrowser attachedBrowserEditor = OpenBrowser.openEdition(url);
141
		//attachedBrowserEditor.setCorpus(text.getCorpus());
142
		return null;
143
	}
144

  
145
}
0 146

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/CreateSubCorpus.java (revision 657)
1
// Copyright © 2010-2013 ENS de Lyon.
2
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
3
// Lyon 2, University of Franche-Comté, University of Nice
4
// Sophia Antipolis, University of Paris 3.
5
// 
6
// The TXM platform is free software: you can redistribute it
7
// and/or modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation,
9
// either version 2 of the License, or (at your option) any
10
// later version.
11
// 
12
// The TXM platform is distributed in the hope that it will be
13
// useful, but WITHOUT ANY WARRANTY; without even the implied
14
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
// PURPOSE. See the GNU General Public License for more
16
// details.
17
// 
18
// You should have received a copy of the GNU General
19
// Public License along with the TXM platform. If not, see
20
// http://www.gnu.org/licenses.
21
// 
22
// 
23
// 
24
// $LastChangedDate:$
25
// $LastChangedRevision:$
26
// $LastChangedBy:$ 
27
//
28
package org.txm.searchengine.cqp.rcp.handlers.base;
29

  
30
import org.eclipse.core.commands.AbstractHandler;
31
import org.eclipse.core.commands.ExecutionEvent;
32
import org.eclipse.core.commands.ExecutionException;
33
import org.eclipse.core.runtime.IProgressMonitor;
34
import org.eclipse.core.runtime.IStatus;
35
import org.eclipse.core.runtime.Status;
36
import org.eclipse.jface.viewers.IStructuredSelection;
37
import org.eclipse.jface.window.Window;
38
import org.eclipse.osgi.util.NLS;
39
import org.eclipse.swt.widgets.Shell;
40
import org.eclipse.ui.IWorkbenchWindow;
41
import org.eclipse.ui.handlers.HandlerUtil;
42
import org.txm.Toolbox;
43
import org.txm.rcp.JobsTimer;
44
import org.txm.rcp.RCPMessages;
45
import org.txm.rcp.actions.CreateSubcorpusDialog;
46
import org.txm.rcp.utils.JobHandler;
47
import org.txm.rcp.views.corpora.CorporaView;
48
import org.txm.searchengine.cqp.CQPEngine;
49
import org.txm.searchengine.cqp.clientExceptions.CqiClientException;
50
import org.txm.searchengine.cqp.corpus.Corpus;
51
import org.txm.searchengine.cqp.corpus.Subcorpus;
52
import org.txm.searchengine.cqp.corpus.query.Query;
53
import org.txm.utils.logger.Log;
54

  
55
// TODO: Auto-generated Javadoc
56
/**
57
 * Command which creates a subcorpus from a Corpus @ author mdecorde.
58
 */
59
public class CreateSubCorpus extends AbstractHandler {
60

  
61
	/** The selection. */
62
	private IStructuredSelection selection;
63

  
64
	/* (non-Javadoc)
65
	 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
66
	 */
67
	@Override
68
	public Object execute(ExecutionEvent event) throws ExecutionException {
69
		
70
		selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
71
		if (selection == null) {
72
			System.out.println(RCPMessages.CreateSubCorpus_1+HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().getActiveEditor());
73
			return null;
74
		}
75
		Object firstElement = selection.getFirstElement();
76
		
77
		if (!(firstElement instanceof Corpus)) {
78
			System.out.println(RCPMessages.CreateSubCorpus_3+firstElement);
79
			return null;
80
		}
81
		
82
		final Corpus corpus = (Corpus) firstElement;
83
		Shell shell = HandlerUtil.getActiveWorkbenchWindowChecked(event)
84
				.getShell();
85
		final CreateSubcorpusDialog d = new CreateSubcorpusDialog(shell, corpus);
86
		int code = d.open();
87
		if (code == Window.OK) {
88
			JobHandler jobhandler = new JobHandler(NLS.bind(
89
					RCPMessages.CreateSubCorpus_create, corpus.getName())) {
90
				@Override
91
				protected IStatus run(IProgressMonitor monitor) {		
92
					this.runInit(monitor);
93
					JobsTimer.start();
94
					try {
95
						monitor.beginTask(RCPMessages.CreateSubCorpus_begin, 100);
96
						final Subcorpus subcorpus;
97

  
98
						if (d.isAdvancedSelected() || d.isAssistedSelected()) {
99
							Query q = new Query(d.getQuery());
100
							System.out.println(NLS.bind(RCPMessages.CreateSubcorpus_9,
101
								corpus.getName(), q.getQueryString())); 
102
							subcorpus = corpus.createSubcorpus(q, d.getName());
103
						} 
104
						else {
105
							System.out.println(NLS.bind(RCPMessages.CreateSubcorpus_7,
106
							new Object[]{corpus.getName(), d.getStructuralUnit(),
107
									d.getStructuralUnitProperty(), d.getValues()}));
108
							
109
							//Escape regex char of prop values
110
							//List<String> values = d.getValues();
111
							//for(int i = 0 ; i < values.size() ; i++)
112
							//	values.set(i, Query.addBackSlash(values.get(i)));
113
							
114
							subcorpus = corpus.createSubcorpus(d
115
									.getStructuralUnit(), d
116
									.getStructuralUnitProperty(),
117
									d.getValues(), d.getName());
118

  
119
						}
120
						
121
						if(subcorpus == null)
122
						{
123
							monitor.done();
124
							System.out.println(RCPMessages.CreateSubCorpus_0);
125
							return Status.CANCEL_STATUS;
126
						}
127
						
128
						System.out.println(NLS.bind(RCPMessages.CreateSubcorpus_8
129
								, subcorpus.getName()));
130
						monitor.worked(50);
131

  
132
						monitor.subTask(RCPMessages.RefreshingCorporaView);
133
						syncExec(new Runnable() {
134
							@Override
135
							public void run() {
136
								CorporaView.refresh();
137
								//System.out.println("expand");
138
								CorporaView.expand(subcorpus.getParent());
139
							}
140
						});
141

  
142
						monitor.worked(100);
143
					} catch (ThreadDeath td) {
144
						return Status.CANCEL_STATUS;
145
					} catch (CqiClientException e) {
146
						org.txm.rcp.utils.Logger.printStackTrace(e);
147
						Log.severe(e.toString());
148
						
149
						try {
150
							System.out.println(RCPMessages.LastCQPError+CQPEngine.getCqiClient().getLastCQPError());
151
						} catch (Exception e1) {
152
							System.out.println(RCPMessages.CreateSubCorpus_2+e1);
153
							org.txm.rcp.utils.Logger.printStackTrace(e1);
154
						}
155
					} finally {
156
						monitor.done();
157
						JobsTimer.stopAndPrint();
158
					}				
159
					return Status.OK_STATUS;
160
				}
161
			};
162
			jobhandler.startJob();
163
		}
164
		return null;
165
	}
166

  
167
}
0 168

  
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/CreatePartition.java (revision 657)
1
// Copyright © 2010-2013 ENS de Lyon.
2
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
3
// Lyon 2, University of Franche-Comté, University of Nice
4
// Sophia Antipolis, University of Paris 3.
5
// 
6
// The TXM platform is free software: you can redistribute it
7
// and/or modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation,
9
// either version 2 of the License, or (at your option) any
10
// later version.
11
// 
12
// The TXM platform is distributed in the hope that it will be
13
// useful, but WITHOUT ANY WARRANTY; without even the implied
14
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
// PURPOSE. See the GNU General Public License for more
16
// details.
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff