Project

General

Profile

« Previous | Next » 

Revision caceb054

Added by Andreas Müller almost 4 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/CdmServiceInterceptorException.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.service;
2 10

  
3 11
public class CdmServiceInterceptorException extends RuntimeException {
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/RemoteInvocationTermCacher.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.service;
2 10

  
3 11
import java.util.HashMap;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionElement.java
37 37

  
38 38
/**
39 39
 * Visualizes an element of type ENTITY in an {@link AbstractEntityCollectionSection}
40
 *  and links listener functionalities to it.
40
 * and links listener functionalities to it.
41 41
 *
42
 *  @param ENTITY the type of the element which is visualized by this class
42
 * @param ENTITY the type of the element which is visualized by this class
43 43
 *
44 44
 * @author n.hoffmann
45 45
 * @created Nov 16, 2009
......
156 156
		setBackground(selected ? SELECTED : getPersistentBackground());
157 157
	}
158 158

  
159
	/** {@inheritDoc} */
160 159
	@Override
161 160
	public void propertyChange(PropertyChangeEvent event) {
162 161
		if (event == null) {
......
170 169

  
171 170
	public abstract void handleEvent(Object eventSource);
172 171

  
173
	/** {@inheritDoc} */
174 172
	@Override
175 173
    public void setBackground(Color color) {
176 174
	    if(box.isDisposed() || container.isDisposed()){
......
192 190

  
193 191
	}
194 192

  
195
	/** {@inheritDoc} */
196 193
	@Override
197 194
    public void widgetDefaultSelected(SelectionEvent e) {
198 195
	}
199 196

  
200
	/** {@inheritDoc} */
201 197
	@Override
202 198
	public Composite getLayoutComposite() {
203 199
		return container;
......
221 217
				"Parent element should be IConversationEnabled");
222 218
	}
223 219

  
224
	/** {@inheritDoc} */
225 220
	@Override
226 221
    public void update(CdmDataChangeMap changeEvents) {
227 222
	}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EntitySelectionElement.java
452 452
			this.selectionElement = selectionElement;
453 453
		}
454 454

  
455
		/** {@inheritDoc} */
456 455
		@Override
457 456
		public void widgetSelected(SelectionEvent e) {
458 457
			WizardDialog dialog = new WizardDialog(selectionElement.getShell(),
......
462 461
				//if the edited entity has already been persisted
463 462
				//but the transient entity is still set in this
464 463
				//EntitySelectionElement, re-load it and set it
465
				IService<T> service = CdmStore.getService(entity);
466
				if(entity.getId()==0){
464
				if(!entity.isPersited()){
465
				    IService<T> service = CdmStore.getService(entity);
467 466
					T loadedEntity = service.load(entity.getUuid());
468
					if(loadedEntity!=null){
467
					if(loadedEntity != null){
469 468
						setEntity(loadedEntity);
470 469
					}
471 470
				}
......
474 473
	}
475 474

  
476 475
	// not used
477
	/** {@inheritDoc} */
478 476
	@Override
479 477
	public void widgetDefaultSelected(SelectionEvent e) {
480 478
	}

Also available in: Unified diff