Revision 610

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorPart.java (revision 610)
13 13
import org.eclipse.core.runtime.Status;
14 14
import org.eclipse.core.runtime.jobs.Job;
15 15
import org.eclipse.jface.action.MenuManager;
16
import org.eclipse.jface.text.TextViewer;
16 17
import org.eclipse.jface.viewers.ComboViewer;
17 18
import org.eclipse.jface.viewers.ISelectionProvider;
18 19
import org.eclipse.jface.viewers.IStructuredSelection;
19 20
import org.eclipse.jface.viewers.StructuredSelection;
20 21
import org.eclipse.jface.viewers.TableViewer;
22
import org.eclipse.jface.viewers.TreeViewer;
23
import org.eclipse.jface.viewers.Viewer;
21 24
import org.eclipse.swt.SWT;
22 25
import org.eclipse.swt.layout.GridData;
23 26
import org.eclipse.swt.layout.GridLayout;
......
620 623

  
621 624
	/**
622 625
	 * Updates the result parameters from the editor declared parameters annotations.
623
	 * Manages these widgets at this moment: ToolItem, Spinner, Text, Button, ComboViewer.
626
	 * Manages these widgets at this moment: ToolItem, Spinner, Text, Button, *Viewer (ComboViewer, ListViewer, TreeViewer, etc.). 
624 627
	 */
625 628
	public void autoUpdateResultFromEditorParameters()	{
626 629

  
......
648 651
				else if(object instanceof Button)	{
649 652
					value = ((Button)object).getSelection(); 
650 653
				}
651
				else if(object instanceof ComboViewer)	{
652
					value = ((IStructuredSelection)((ComboViewer)object).getSelection()).getFirstElement(); 
654
				else if(object instanceof Viewer)	{
655
					value = ((IStructuredSelection)((Viewer)object).getSelection()).getFirstElement(); 
653 656
				}
654 657

  
655 658
				// FIXME: need to extend this list of managed Widgets

Also available in: Unified diff