Project

General

Profile

« Previous | Next » 

Revision c030ed90

Added by Patrick Plitzner over 6 years ago

ref #7010 Disable multi selection for all tree viewers (temporarily)

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorE4.java
28 28
import org.eclipse.core.commands.operations.UndoContext;
29 29
import org.eclipse.core.runtime.IAdaptable;
30 30
import org.eclipse.core.runtime.IProgressMonitor;
31
import org.eclipse.e4.core.commands.ECommandService;
32 31
import org.eclipse.e4.core.di.annotations.Optional;
33 32
import org.eclipse.e4.ui.di.Focus;
34 33
import org.eclipse.e4.ui.di.UIEventTopic;
35 34
import org.eclipse.e4.ui.di.UISynchronize;
36 35
import org.eclipse.e4.ui.model.application.MApplication;
37
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
38 36
import org.eclipse.e4.ui.services.EMenuService;
39 37
import org.eclipse.e4.ui.workbench.modeling.EModelService;
40 38
import org.eclipse.e4.ui.workbench.modeling.EPartService;
......
51 49
import org.eclipse.swt.dnd.Transfer;
52 50
import org.eclipse.swt.layout.FillLayout;
53 51
import org.eclipse.swt.widgets.Composite;
52
import org.eclipse.swt.widgets.Tree;
54 53
import org.eclipse.ui.IMemento;
55 54

  
56 55
import eu.etaxonomy.cdm.api.application.CdmApplicationState;
......
70 69
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
71 70
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
72 71
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
72
import eu.etaxonomy.taxeditor.model.AbstractUtility;
73 73
import eu.etaxonomy.taxeditor.model.DataChangeBridge;
74 74
import eu.etaxonomy.taxeditor.model.IContextListener;
75 75
import eu.etaxonomy.taxeditor.model.IDataChangeBehavior;
......
126 126

  
127 127
    private UndoContext undoContext;
128 128

  
129
    @Inject
130
    private MPart thisPart;
131

  
132 129
    @Inject
133 130
    private MApplication application;
134 131

  
......
147 144
    }
148 145

  
149 146
	@PostConstruct
150
	private void create(Composite parent, EMenuService menuService, ECommandService commandService){
147
	private void create(Composite parent, EMenuService menuService){
151 148
	    FillLayout layout = new FillLayout();
152 149
	    layout.marginHeight = 0;
153 150
	    layout.marginWidth = 0;
154 151
	    layout.type = SWT.VERTICAL;
155 152

  
156 153
	    parent.setLayout(layout);
157
	    viewer = new TreeViewer(parent);
154
	    viewer = new TreeViewer(new Tree(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION));
158 155
	    viewer.getControl().setLayoutData(LayoutConstants.FILL());
159 156

  
160 157
	    viewer.setContentProvider(new TaxonNavigatorContentProviderE4());
......
314 311
		// begin the monitor with steps for all tree paths and steps for
315 312
		// creating
316 313
		// conversation s.o., refreshing the tree and setting the paths
317
		IProgressMonitor subProgressMonitor = NavigationUtil
314
		IProgressMonitor subProgressMonitor = AbstractUtility
318 315
				.getSubProgressMonitor(monitor, 1);
319 316

  
320 317
		subProgressMonitor.beginTask(RESTORING_TAXON_NAVIGATOR,

Also available in: Unified diff