Révision 3694

TXM/trunk/bundles/org.txm.backtomedia.rcp/src/org/txm/backtomedia/commands/function/BackToMedia.java (revision 3694)
552 552
				
553 553
				// move the editor in the window
554 554
				int position = BackToMediaPreferences.getInstance().getInt(BackToMediaPreferences.BACKTOMEDIA_POSITION);
555
				if (editor != null) {
555
				if (editor != null && position >= 0) {
556 556
					SWTEditorsUtils.addEditor((EditorPart) editor, mediaPlayerEditor, position);
557 557
				}
558 558
				
TXM/trunk/bundles/org.txm.backtomedia.rcp/src/org/txm/backtomedia/preferences/BackToMediaPreferencePage.java (revision 3694)
114 114
		loopProperty = new BooleanFieldEditor(BackToMediaPreferences.REPEAT, MessagesMP.BackToMediaPreferencePage_1, getFieldEditorParent());
115 115
		addField(loopProperty);
116 116
		
117
		String[][] values = { { "ABOVE", "" + EModelService.ABOVE }, { "BELOW", "" + EModelService.BELOW }, { "LEFT_OF", "" + EModelService.LEFT_OF }, { "RIGHT_OF", "" + EModelService.RIGHT_OF } };
117
		String[][] values = { { "OVER", "-1" }, { "ABOVE", "" + EModelService.ABOVE }, { "BELOW", "" + EModelService.BELOW }, { "LEFT_OF", "" + EModelService.LEFT_OF }, { "RIGHT_OF", "" + EModelService.RIGHT_OF } };
118 118
		backtotext_position = new ComboFieldEditor(BackToMediaPreferences.BACKTOMEDIA_POSITION, "BackToMedia position", values, getFieldEditorParent());
119 119
		addField(backtotext_position);
120 120
		
......
161 161
		addField(playerProperty);
162 162
	}
163 163
	
164
	/**
165
	 * enable/disable widget depending on the selected media synchronization mode
166
	 * @param sync_mode
167
	 */
164 168
	public void updateEnables(String sync_mode) {
165 169
		
166 170
		if (BackToMediaPreferences.WORDMODE.equals(sync_mode)) {
TXM/trunk/bundles/org.txm.backtomedia.rcp/src/org/txm/backtomedia/preferences/BackToMediaPreferences.java (revision 3694)
2 2

  
3 3
import org.eclipse.core.runtime.preferences.DefaultScope;
4 4
import org.eclipse.e4.ui.workbench.modeling.EModelService;
5
import org.osgi.framework.FrameworkUtil;
6 5
import org.osgi.service.prefs.Preferences;
7 6
import org.txm.core.preferences.TXMPreferences;
8 7

  

Formats disponibles : Unified diff