Revision 2471

tmp/org.txm.backtomedia.rcp/src/vlcplayerrcp/messages_fr.properties (revision 2471)
11 11
BackToMedia_1               = L''éditeur courant n''est pas un ConcordancesEditor. Abandon.
12 12
BackToMedia_11              = Pas de propriété de temps trouvée avec comme nom : 
13 13
BackToMedia_12              = Erreur : pas de structure ''{0}'' trouvée
14
BackToMedia_14              = Erreur : pas de propriété de structure ''{0}'' trouvée
14
BackToMedia_14              = Erreur : pas de propriété ''{0}'' de la structure ''{1}'' trouvée
15 15
BackToMedia_16              = TEMPS DEBUT : 
16
BackToMedia_17              = Erreur : pas de propriété de structure ''{0}'' trouvée
16
BackToMedia_17              = Erreur : pas de propriété ''{0}'' de la structure ''{1}'' trouvée
17 17
BackToMedia_19              = TEMPS FIN : 
18 18
BackToMedia_25              = Fichier AUDIO/VIDEO : 
19 19
BackToMedia_26              = Error: no media file (mp3, wav, mp4 or avi) found for name: {0}
tmp/org.txm.backtomedia.rcp/src/vlcplayerrcp/messages.properties (revision 2471)
11 11
BackToMedia_1               = Current editor is not a ConcordancesEditor. Aborting.
12 12
BackToMedia_11              = No time property found with name: 
13 13
BackToMedia_12              = Error: no ''{0}'' structure
14
BackToMedia_14              = Error: no ''{0}'' structure property
14
BackToMedia_14              = Error: no ''{0}'' property in the ''{1}'' structure
15 15
BackToMedia_16              = STARTTIME: 
16
BackToMedia_17              = Error: this is not a transcription corpus: no ''{0}'' structure properties
16
BackToMedia_17              = Error: no ''{0}'' property in the ''{1}'' structure
17 17
BackToMedia_19              = ENDTIME: 
18 18
BackToMedia_25              = AUDIO/VIDEO FILE: 
19 19
BackToMedia_26              = Error: no media file (mp3, wav, mp4 or avi) found for name: {0}
tmp/org.txm.backtomedia.rcp/src/org/txm/backtomedia/commands/function/BackToMedia.java (revision 2471)
108 108
			String text_parameter = event.getParameter("text"); //$NON-NLS-1$
109 109
			String word_parameter = event.getParameter("word"); //$NON-NLS-1$
110 110
			String time_parameter = event.getParameter("time"); //$NON-NLS-1$
111
			String start_time_parameter = event.getParameter("start_time"); //$NON-NLS-1$
112
			String end_time_parameter = event.getParameter("end_time"); //$NON-NLS-1$
111 113
			String sync_parameter = event.getParameter("sync"); //$NON-NLS-1$ Word, Structure, MileStone, etc.
112 114
			
113 115
			try {
......
119 121
				
120 122
				IWorkbenchPart editor = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().getActivePart();
121 123
				
122
				if (time_parameter != null) {
124
				if (start_time_parameter != null && end_time_parameter != null) {
125
					return backToMedia(cqpCorpus, text_parameter, start_time_parameter, end_time_parameter, editor, HandlerUtil.getActiveWorkbenchWindow(event).getShell());
126
				}
127
				else if (time_parameter != null) {
123 128
					return backToMedia(cqpCorpus, text_parameter, time_parameter, time_parameter, editor, HandlerUtil.getActiveWorkbenchWindow(event).getShell());
124 129
				}
125 130
				else {
......
332 337
			}
333 338
			Property startProperty = structure.getProperty(startPropertyName);
334 339
			if (startProperty == null) {
335
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_14, startPropertyName));
340
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_14, startPropertyName, structure.getName()));
336 341
				return null;
337 342
			}
338 343
			
......
341 346
			
342 347
			Property endProperty = structure.getProperty(endPropertyName);
343 348
			if (endProperty == null) {
344
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_17, endPropertyName));
349
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_17, endPropertyName, structure.getName()));
345 350
				return null;
346 351
			}
347 352
			sEndTime = Match.getValueForProperty(endProperty, keywordEndPosition);
......
355 360
			}
356 361
			StructuralUnitProperty startProperty = structure.getProperty(startPropertyName);
357 362
			if (startProperty == null) {
358
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_14, startPropertyName));
363
				System.out.println(MessagesMP.bind(MessagesMP.BackToMedia_14, startPropertyName, structure.getName()));
359 364
				return null;
360 365
			}
361 366
			
tmp/org.txm.backtomedia.rcp/src/org/txm/backtomedia/editors/vlcplayer/JFXPlayer.java (revision 2471)
591 591
					
592 592
					@Override
593 593
					public void run() {
594
						System.out.println("JFX Player Error:");
594 595
						vlcPlayer.getError().printStackTrace();
595 596
					}
596 597
				});
tmp/org.txm.backtomedia.rcp/plugin.xml (revision 2471)
92 92
               name="time"
93 93
               optional="true">
94 94
         </commandParameter>
95
         <commandParameter
96
               id="start_time"
97
               name="start_time"
98
               optional="true">
99
         </commandParameter>
100
         <commandParameter
101
               id="end_time"
102
               name="end_time"
103
               optional="true">
104
         </commandParameter>
95 105
      </command>
96 106
      <command
97 107
            defaultHandler="org.txm.backtomedia.commands.function.MediaPreferences"

Also available in: Unified diff