Révision 420

tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 420)
177 177
	 */
178 178
	private static final int NALERTAFFECTANNOTATIONS = 100;
179 179

  
180
	String locale = TXMPreferences.getString(RCPPreferences.PREFERENCES_NODE, RCPPreferences.UI_LOCALE, "en");
180
	String locale = TXMPreferences.getString(RCPPreferences.UI_LOCALE, RCPPreferences.PREFERENCES_NODE);
181 181
	
182 182
	/** The lineids. */
183 183
	List<String> lineids;
......
433 433
		this.userDefinedComparators = new ArrayList<LineComparator>();
434 434
		new ArrayList<LineComparator>();
435 435
		setStandardComparators();
436
		this.nLinePerPage = TXMPreferences.getInt(ConcordancePreferences.PREFERENCES_NODE, ConcordancePreferences.N_LINE_PER_PAGE);
436
		this.nLinePerPage = TXMPreferences.getInt(ConcordancePreferences.N_LINE_PER_PAGE, ConcordancePreferences.PREFERENCES_NODE);
437 437
		try {
438 438
			this.availableKeywordViewProperties = new ArrayList<Property>(
439 439
					corpus.getOrderedProperties());
......
463 463
		this.concordance = ((ConcordanceEditorInput) getEditorInput()).getConcordance();
464 464

  
465 465
		if (this.concordance == null) {
466
			leftContextSize = TXMPreferences.getInt(ConcordancePreferences.PREFERENCES_NODE, ConcordancePreferences.LEFT_CONTEXT_SIZE);
467
			rightContextSize = TXMPreferences.getInt(ConcordancePreferences.PREFERENCES_NODE, ConcordancePreferences.RIGHT_CONTEXT_SIZE);
466
			leftContextSize = TXMPreferences.getInt(ConcordancePreferences.LEFT_CONTEXT_SIZE, ConcordancePreferences.PREFERENCES_NODE);
467
			rightContextSize = TXMPreferences.getInt(ConcordancePreferences.RIGHT_CONTEXT_SIZE, ConcordancePreferences.PREFERENCES_NODE);
468 468

  
469 469
			selectedLeftViewProperties = new ArrayList<Property>();
470 470
			selectedRightViewProperties = new ArrayList<Property>();
......
1012 1012
	Boolean advanced_annotation_mode = false;
1013 1013
	
1014 1014
	private void composeAnnotationArea(final Composite parent){ 
1015
		advanced_annotation_mode = "advanced".equals(TXMPreferences.getString(RCPPreferences.PREFERENCES_NODE, RCPPreferences.ANNOTATION_MODE, "simple"));
1015
		advanced_annotation_mode = "advanced".equals(TXMPreferences.getString(RCPPreferences.ANNOTATION_MODE, RCPPreferences.PREFERENCES_NODE));
1016 1016
		
1017 1017
		List<KnowledgeRepository> krs = InitializeKnowledgeRepository.get(corpus.getMainCorpus());
1018 1018
		typesList.clear();

Formats disponibles : Unified diff