Revision 0caafa75
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/e4/DataImportView.java | ||
---|---|---|
14 | 14 |
import javax.annotation.PostConstruct; |
15 | 15 |
import javax.annotation.PreDestroy; |
16 | 16 |
|
17 |
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; |
|
17 |
import org.apache.logging.log4j.LogManager; |
|
18 |
import org.apache.logging.log4j.Logger; |
|
18 | 19 |
import org.eclipse.core.runtime.IProgressMonitor; |
19 | 20 |
import org.eclipse.e4.ui.di.Focus; |
20 | 21 |
import org.eclipse.jface.viewers.CheckboxTableViewer; |
... | ... | |
37 | 38 |
import org.eclipse.ui.IMemento; |
38 | 39 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
39 | 40 |
|
40 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
41 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
|
42 | 41 |
import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery; |
43 |
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator; |
|
44 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
|
45 | 42 |
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.ImportPreferencesWizard; |
46 | 43 |
import eu.etaxonomy.taxeditor.model.IContextListener; |
47 | 44 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
... | ... | |
52 | 49 |
|
53 | 50 |
/** |
54 | 51 |
* View which shows a list of "data" that can be imported into the CDM |
52 |
* |
|
55 | 53 |
* @author pplitzner |
56 | 54 |
* @date 22.08.2017 |
57 | 55 |
* |
... | ... | |
59 | 57 |
*/ |
60 | 58 |
public abstract class DataImportView<T> implements IPartContentHasFactualData, IPartContentHasDetails, IPartContentHasSupplementalData, IContextListener, Listener, IEditorAreaPart{ |
61 | 59 |
|
62 |
protected final Logger logger = LogManager.getLogger(DataImportView.class);
|
|
60 |
protected final Logger logger = LogManager.getLogger(); |
|
63 | 61 |
|
64 | 62 |
protected Collection<T> results = new ArrayList<>(); |
65 | 63 |
|
... | ... | |
77 | 75 |
|
78 | 76 |
private boolean state; |
79 | 77 |
|
80 |
private Button openConfigurator; |
|
81 |
|
|
82 |
private Abcd206ImportConfigurator config; |
|
83 |
|
|
84 |
private Button btnBrowseClassification; |
|
85 |
|
|
86 |
private Button btnClear; |
|
87 |
|
|
88 | 78 |
private final FormToolkit toolkit = new FormToolkit(Display.getCurrent()); |
89 | 79 |
|
90 | 80 |
private Table table; |
... | ... | |
103 | 93 |
*/ |
104 | 94 |
@PostConstruct |
105 | 95 |
public void createPartControl(Composite parent) { |
106 |
|
|
96 |
|
|
107 | 97 |
parent.setLayout(new GridLayout(1, false)); |
108 | 98 |
Composite composite = new Composite(parent, SWT.NONE); |
109 | 99 |
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); |
... | ... | |
171 | 161 |
|
172 | 162 |
CheckboxTableViewer checkboxTableViewer = CheckboxTableViewer.newCheckList(composite_2, SWT.BORDER | SWT.FULL_SELECTION); |
173 | 163 |
|
174 |
|
|
175 | 164 |
table = checkboxTableViewer.getTable(); |
176 | 165 |
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); |
177 | 166 |
table.addListener(SWT.Selection, this); |
... | ... | |
292 | 281 |
if(getTable()!=null){ |
293 | 282 |
getTable().setFocus(); |
294 | 283 |
} |
295 |
|
|
296 | 284 |
} |
297 | 285 |
|
298 | 286 |
@Override |
... | ... | |
305 | 293 |
|
306 | 294 |
@Override |
307 | 295 |
public void contextStart(IMemento memento, IProgressMonitor monitor) { |
308 |
|
|
296 |
|
|
309 | 297 |
} |
310 | 298 |
|
311 | 299 |
@Override |
312 | 300 |
public void workbenchShutdown(IMemento memento, IProgressMonitor monitor) { |
313 |
|
|
314 | 301 |
} |
315 | 302 |
|
316 |
|
|
317 |
|
|
318 | 303 |
@Override |
319 | 304 |
public void handleEvent(Event event) { |
320 | 305 |
// if(event.widget==btnBrowseClassification){ |
Also available in: Unified diff
ref #10186 further remove ConversationHolder and cleanup