Project

General

Profile

« Previous | Next » 

Revision 8481f952

Added by Andreas Müller almost 4 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicGroupOperation.java
69 69
		this.newHomotypicalGroup = newHomotypicalGroup != null ? newHomotypicalGroup : HomotypicalGroup.NewInstance();
70 70
	}
71 71

  
72
	/** {@inheritDoc} */
73 72
	@Override
74 73
	public IStatus execute(IProgressMonitor monitor, IAdaptable info)
75 74
			throws ExecutionException {
......
85 84
		monitor.worked(40);
86 85
		newHomotypicalGroup = HibernateProxyHelper.deproxy(newHomotypicalGroup, HomotypicalGroup.class);
87 86
		newHomotypicalGroup.addTypifiedName(synonymName);
88
		
87

  
89 88
		Taxon acc = synonym.getAcceptedTaxon();
90 89
		if(acc == null || !acc.equals(element)){
91 90
			if(acc != null){
92 91
				acc.removeSynonym(synonym);
93 92
			}
94
			
93

  
95 94
			SynonymType type = SynonymType.HETEROTYPIC_SYNONYM_OF();
96 95
			if(newHomotypicalGroup.getTypifiedNames().contains(element.getName())){
97 96
				type = SynonymType.HOMOTYPIC_SYNONYM_OF();
......
104 103
		return postExecute(synonym);
105 104
	}
106 105

  
107
	/** {@inheritDoc} */
108 106
	@Override
109 107
	public IStatus redo(IProgressMonitor monitor, IAdaptable info)
110 108
			throws ExecutionException {
111 109
		return execute(monitor, info);
112 110
	}
113 111

  
114
	/** {@inheritDoc} */
115 112
	@Override
116 113
	public IStatus undo(IProgressMonitor monitor, IAdaptable info)
117 114
			throws ExecutionException {

Also available in: Unified diff