Révision 2868

tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/cmdparameters/ParametersView.java (revision 2868)
428 428
			else if (clazz.equals(StructuralUnitProperty.class)) {
429 429
				ArrayList<StructuralUnitProperty> selected = new ArrayList<StructuralUnitProperty>();
430 430
				selected.add((StructuralUnitProperty) value);
431
				c = createWordPropertyField(f, result, selected);
431
				c = createStructuralUnitPropertyField(f, result, selected);
432 432
				// } else if (value instanceof ReferencePattern) {
433 433
				// c = new Label(panel, SWT.NONE).setText("="+value.toString());
434 434
			}
......
470 470
			List<Property> availables = new ArrayList<Property>();
471 471
			availables.addAll(corpus.getOrderedProperties());
472 472
			availables.addAll(corpus.getOrderedStructuralUnitProperties());
473
			availables.remove(value);
473
			availables.removeAll(selected);
474 474
			
475 475
			selector.setProperties(availables, selected);
476 476
		}
......
503 503
		return selector;
504 504
	}
505 505
	
506
	protected PropertiesSelector<WordProperty> createWordPropertyField(final Field f, final TXMResult result, final List selected) throws CqiClientException {
506
	protected PropertiesSelector<WordProperty> createWordPropertyField(final Field f, final TXMResult result, final List<WordProperty> selected) throws CqiClientException {
507 507
		
508
		Object value = selected.get(0);
508
		WordProperty value = selected.get(0);
509 509
		CQPCorpus corpus = ((WordProperty) value).getCorpus();
510 510
		List<WordProperty> availables = corpus.getOrderedProperties();
511 511
		availables.remove(value);
......
535 535
		return selector;
536 536
	}
537 537
	
538
	private PropertiesSelector<StructuralUnitProperty> createStructuralUnitPropertyField(final Field f, final TXMResult result, final List selected) throws CqiClientException {
538
	private PropertiesSelector<StructuralUnitProperty> createStructuralUnitPropertyField(final Field f, final TXMResult result, final List<StructuralUnitProperty> selected) throws CqiClientException {
539 539
		
540
		Object value = selected.get(0);
540
		StructuralUnitProperty value = selected.get(0);
541 541
		CQPCorpus corpus = ((StructuralUnitProperty) value).getCorpus();
542 542
		ArrayList<StructuralUnitProperty> availables = new ArrayList<StructuralUnitProperty>();
543 543
		availables.addAll(corpus.getOrderedStructuralUnitProperties());

Formats disponibles : Unified diff