Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/newWizard/AbstractNewEntityWizard.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
26 | 26 |
|
27 | 27 |
/** |
28 |
* <p>Abstract AbstractNewEntityWizard class.</p> |
|
29 |
* |
|
28 | 30 |
* @author n.hoffmann |
29 | 31 |
* @created Jun 1, 2010 |
30 | 32 |
* @version 1.0 |
... | ... | |
44 | 46 |
|
45 | 47 |
protected IStructuredSelection selection; |
46 | 48 |
|
49 |
/** |
|
50 |
* <p>Constructor for AbstractNewEntityWizard.</p> |
|
51 |
* |
|
52 |
* @param <T> a T object. |
|
53 |
*/ |
|
47 | 54 |
public AbstractNewEntityWizard(){ |
48 | 55 |
setWindowTitle("New Entity"); |
49 | 56 |
} |
... | ... | |
51 | 58 |
/* (non-Javadoc) |
52 | 59 |
* @see org.eclipse.jface.wizard.Wizard#performFinish() |
53 | 60 |
*/ |
61 |
/** {@inheritDoc} */ |
|
54 | 62 |
@Override |
55 | 63 |
public boolean performFinish() { |
56 | 64 |
saveEntity(); |
... | ... | |
60 | 68 |
return true; |
61 | 69 |
} |
62 | 70 |
|
71 |
/** |
|
72 |
* <p>Getter for the field <code>entity</code>.</p> |
|
73 |
* |
|
74 |
* @return a T object. |
|
75 |
*/ |
|
63 | 76 |
public T getEntity() { |
64 | 77 |
return entity; |
65 | 78 |
} |
66 | 79 |
|
80 |
/** |
|
81 |
* <p>Setter for the field <code>entity</code>.</p> |
|
82 |
* |
|
83 |
* @param entity a T object. |
|
84 |
*/ |
|
67 | 85 |
public void setEntity(T entity){ |
68 | 86 |
this.entity = entity; |
69 | 87 |
} |
... | ... | |
76 | 94 |
/* (non-Javadoc) |
77 | 95 |
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) |
78 | 96 |
*/ |
97 |
/** {@inheritDoc} */ |
|
79 | 98 |
@Override |
80 | 99 |
public void init(IWorkbench workbench, IStructuredSelection selection) { |
81 | 100 |
this.workbench = workbench; |
... | ... | |
85 | 104 |
conversation = CdmStore.createConversation(); |
86 | 105 |
} |
87 | 106 |
|
107 |
/** |
|
108 |
* <p>createNewEntity</p> |
|
109 |
* |
|
110 |
* @return a T object. |
|
111 |
*/ |
|
88 | 112 |
protected abstract T createNewEntity(); |
89 | 113 |
|
114 |
/** |
|
115 |
* <p>getConversationHolder</p> |
|
116 |
* |
|
117 |
* @return a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
118 |
*/ |
|
90 | 119 |
public ConversationHolder getConversationHolder() { |
91 | 120 |
return conversation; |
92 | 121 |
} |
93 | 122 |
|
123 |
/** {@inheritDoc} */ |
|
94 | 124 |
public void update(CdmDataChangeMap changeEvents) {} |
95 | 125 |
} |
Also available in: Unified diff
performed javacscript:fix and worked on documentation