Revision a6a6cca6
Added by Andreas Müller almost 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/operation/CreateClassification.java | ||
---|---|---|
57 | 57 |
|
58 | 58 |
} |
59 | 59 |
|
60 |
/* (non-Javadoc) |
|
61 |
* @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
62 |
*/ |
|
63 | 60 |
/** {@inheritDoc} */ |
64 | 61 |
@Override |
65 | 62 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
... | ... | |
69 | 66 |
|
70 | 67 |
if(classification.getReference() == null){ |
71 | 68 |
Reference reference = ReferenceFactory.newGeneric(); |
72 |
reference.setTitleCache(classification.getTitleCache()); |
|
69 |
reference.setTitleCache(classification.getTitleCache(), true);
|
|
73 | 70 |
classification.setReference(reference); |
74 | 71 |
} |
75 | 72 |
|
... | ... | |
80 | 77 |
return postExecute(classification); |
81 | 78 |
} |
82 | 79 |
|
83 |
/* (non-Javadoc) |
|
84 |
* @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
85 |
*/ |
|
86 | 80 |
/** {@inheritDoc} */ |
87 | 81 |
@Override |
88 | 82 |
public IStatus redo(IProgressMonitor monitor, IAdaptable info) |
... | ... | |
90 | 84 |
return null; |
91 | 85 |
} |
92 | 86 |
|
93 |
/* (non-Javadoc) |
|
94 |
* @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
95 |
*/ |
|
96 | 87 |
/** {@inheritDoc} */ |
97 | 88 |
@Override |
98 | 89 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
Also available in: Unified diff
Fix empty first classification reference issue