Revision ac730eca
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/e4/ReferencingObjectsViewE4.java | ||
---|---|---|
89 | 89 |
import eu.etaxonomy.taxeditor.view.e4.AbstractCdmEditorPartE4; |
90 | 90 |
|
91 | 91 |
/** |
92 |
* |
|
93 | 92 |
* @author pplitzner |
94 | 93 |
* @since Aug 16, 2017 |
95 |
* |
|
96 | 94 |
*/ |
97 | 95 |
public class ReferencingObjectsViewE4 extends AbstractCdmEditorPartE4 implements IReferencingObjectsView{ |
98 | 96 |
|
... | ... | |
130 | 128 |
tableViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); |
131 | 129 |
|
132 | 130 |
tableViewer.setCellModifier(new ICellModifier() { |
131 |
|
|
133 | 132 |
@Override |
134 |
public void modify(Object element, String property, Object value) { |
|
135 |
} |
|
133 |
public void modify(Object element, String property, Object value) {} |
|
136 | 134 |
|
137 | 135 |
@Override |
138 | 136 |
public Object getValue(Object element, String property) { |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/ChangeAcceptedTaxonToSynonymHandlerE4.java | ||
---|---|---|
130 | 130 |
excludeTaxa.add(oldNode.getTaxonUuid()); |
131 | 131 |
secUuids.add(oldNode.getSecUuid()); |
132 | 132 |
nodeUuids.add(oldNode.getUuid()); |
133 |
|
|
134 | 133 |
} |
134 |
|
|
135 | 135 |
TaxonNode newAcceptedTaxonNode = TaxonNodeSelectionDialog.select(shell, |
136 | 136 |
// new ConversationHolderMock(), |
137 | 137 |
Messages.RemotingChangeAcceptedTaxonToSynonymHandler_CHOOSE_TAXON, |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/OpenReferencingObjectsViewHandler.java | ||
---|---|---|
42 | 42 |
if (uuid != null && clazz != null){ |
43 | 43 |
view.updateReferencingObjects(uuid, clazz); |
44 | 44 |
} |
45 |
|
|
46 |
|
|
47 |
|
|
48 | 45 |
} |
49 | 46 |
|
50 | 47 |
@CanExecute |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenClassificationWizardHandlerE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2020 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.taxeditor.handler.defaultHandler.e4; |
2 | 10 |
|
3 | 11 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenHandlerBaseE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2020 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.taxeditor.handler.defaultHandler.e4; |
2 | 10 |
|
3 | 11 |
import javax.inject.Named; |
... | ... | |
20 | 28 |
public abstract class DefaultOpenHandlerBaseE4 <T> { |
21 | 29 |
|
22 | 30 |
protected IEclipseContext context; |
23 |
|
|
24 | 31 |
protected MApplication application; |
25 |
|
|
26 | 32 |
protected EModelService modelService; |
27 | 33 |
|
28 | 34 |
@Execute |
... | ... | |
33 | 39 |
this.modelService = modelService; |
34 | 40 |
this.application = application; |
35 | 41 |
|
36 |
|
|
37 | 42 |
String commandId = menuItem.getCommand().getElementId(); |
38 | 43 |
Object transientData = menuItem.getTransientData().get(commandId+".uuid"); |
39 | 44 |
|
... | ... | |
46 | 51 |
// T entity = getEntity(((UuidAndTitleCache)transientData).getUuid()); |
47 | 52 |
open((T)transientData, shell, partService); |
48 | 53 |
} |
49 |
|
|
50 |
|
|
51 | 54 |
} |
52 | 55 |
|
53 | 56 |
@CanExecute |
... | ... | |
81 | 84 |
protected String getPartId(){ |
82 | 85 |
return null; |
83 | 86 |
} |
84 |
|
|
85 | 87 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenSetBaseHandler.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
/** |
29 | 29 |
* @author k.luther |
30 |
* @param <S> |
|
31 |
* @param <S> |
|
32 |
* @param <S> |
|
33 | 30 |
* @since Feb 20, 2020 |
34 | 31 |
*/ |
35 | 32 |
public abstract class DefaultOpenSetBaseHandler<S> extends DefaultOpenHandlerBaseE4<S> { |
36 | 33 |
|
37 |
|
|
38 |
|
|
39 |
|
|
40 | 34 |
@Override |
41 | 35 |
@Execute |
42 | 36 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, MHandledMenuItem menuItem, |
... | ... | |
46 | 40 |
this.modelService = modelService; |
47 | 41 |
this.application = application; |
48 | 42 |
|
49 |
|
|
50 | 43 |
String commandId = menuItem.getCommand().getElementId(); |
51 | 44 |
Object transientData = menuItem.getTransientData().get(commandId+".uuid"); |
52 | 45 |
S list = null; |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/CdmProgressMonitorAdapter.java | ||
---|---|---|
15 | 15 |
* |
16 | 16 |
* @author n.hoffmann |
17 | 17 |
* @created Sep 17, 2010 |
18 |
* @version 1.0 |
|
19 | 18 |
*/ |
20 | 19 |
public class CdmProgressMonitorAdapter implements eu.etaxonomy.cdm.common.monitor.IProgressMonitor, Serializable { |
21 | 20 |
|
22 |
private IProgressMonitor progressMonitor; |
|
21 |
private static final long serialVersionUID = 2890278753937078663L; |
|
22 |
private IProgressMonitor progressMonitor; |
|
23 | 23 |
|
24 | 24 |
private CdmProgressMonitorAdapter (IProgressMonitor monitor){ |
25 | 25 |
if(monitor == null){ |
Also available in: Unified diff
cleanup