Project

General

Profile

« Previous | Next » 

Revision 0a534d09

Added by Patrick Plitzner over 10 years ago

  • adapted sub classes of AbstractPostOperation

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostTaxonOperation.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
25 25
 * @created 14.01.2009
26 26
 * @version 1.0
27 27
 */
28
public abstract class AbstractPostTaxonOperation extends AbstractPostOperation {
29
	
30
	/** 
31
	 * A reference to the taxon the concrete operation is working on 
32
	 */
33
	protected Taxon taxon;
28
public abstract class AbstractPostTaxonOperation extends AbstractPostOperation<Taxon> {
34 29

  
35 30
	/**
36 31
	 * A reference to the taxons TaxonNode
......
39 34

  
40 35
	protected UUID parentNodeUuid;
41 36

  
42
	/**
43
	 * <p>Constructor for AbstractPostOperation.</p>
44
	 *
45
	 * @param label a {@link java.lang.String} object.
46
	 * @param undoContext a {@link org.eclipse.core.commands.operations.IUndoContext} object.
47
	 */
48
	protected AbstractPostTaxonOperation(String label, IUndoContext undoContext) {
49
		super(label);
50
		addContext(undoContext);
51
	}
52
	
53
	/**
54
	 * <p>Constructor for AbstractPostOperation.</p>
55
	 *
56
	 * @param label a {@link java.lang.String} object.
57
	 * @param undoContext a {@link org.eclipse.core.commands.operations.IUndoContext} object.
58
	 * @param taxon a {@link eu.etaxonomy.cdm.model.taxon.Taxon} object.
59
	 */
60
	public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
61
			Taxon taxon) {
62
		this(label, undoContext);
63
		
64
		this.taxon = taxon;
65
	}
66
	
37

  
67 38
	/**
68 39
	 * <p>Constructor for AbstractPostOperation.</p>
69 40
	 *
......
74 45
	 */
75 46
	public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
76 47
			Taxon taxon, IPostOperationEnabled postOperationEnabled) {
77
		this(label, undoContext, taxon);
78
		this.postOperationEnabled = postOperationEnabled;
48
		super(label, undoContext, taxon, postOperationEnabled);
79 49
	}
80
	
50

  
81 51
	/**
82 52
	 * <p>Constructor for AbstractPostOperation.</p>
83 53
	 *
......
90 60
		this(label, undoContext, taxonNode.getTaxon(), postOperationEnabled);
91 61
		this.taxonNode = taxonNode;
92 62
	}
93
	
63

  
94 64
	/**
95 65
	 * <p>Constructor for AbstractPostOperation.</p>
96 66
	 *
......
100 70
	 * @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object.
101 71
	 */
102 72
	public AbstractPostTaxonOperation(String label, IUndoContext undoContext, UUID parentNodeUuid, IPostOperationEnabled postOperationEnabled){
103
		this(label, undoContext);
104
		
73
		super(label, undoContext, null, postOperationEnabled);
105 74
		this.parentNodeUuid = parentNodeUuid;
106
		this.postOperationEnabled = postOperationEnabled;
107 75
	}
108
	
76

  
109 77
	/**
110 78
	 * <p>Constructor for AbstractPostOperation.</p>
111 79
	 *
......
115 83
	 */
116 84
	public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
117 85
			IPostOperationEnabled postOperationEnabled) {
118
		this(label, undoContext);
119
		this.postOperationEnabled = postOperationEnabled;
86
		super(label, undoContext, null, postOperationEnabled);
120 87
	}
121
	
122
	
88

  
89
    /**
90
     * @param text
91
     * @param undoContext
92
     * @param taxon
93
     */
94
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext, Taxon taxon) {
95
        this(label, undoContext, taxon, null);
96
    }
123 97
}

Also available in: Unified diff