Revision e3bcee2d
Added by Patrick Plitzner over 9 years ago
- added interface IDerivedUnitFacadeEditor to tag editors that are working with DerivedUnitFacades (e.g. BulkEditor)
- show field unit data for DerivedUnit when selected in BulkEditor
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditor.java | ||
---|---|---|
37 | 37 |
import org.eclipse.ui.IViewPart; |
38 | 38 |
import org.eclipse.ui.PartInitException; |
39 | 39 |
import org.eclipse.ui.PlatformUI; |
40 |
import org.eclipse.ui.handlers.HandlerUtil; |
|
41 | 40 |
import org.eclipse.ui.texteditor.ITextEditorActionConstants; |
42 | 41 |
|
43 | 42 |
import eu.etaxonomy.taxeditor.annotatedlineeditor.AnnotatedLineDocumentProvider; |
... | ... | |
46 | 45 |
import eu.etaxonomy.taxeditor.annotatedlineeditor.LineAnnotationModel; |
47 | 46 |
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput; |
48 | 47 |
import eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView; |
48 |
import eu.etaxonomy.taxeditor.model.IDerivedUnitFacadeEditor; |
|
49 | 49 |
import eu.etaxonomy.taxeditor.model.IDirtyMarkable; |
50 | 50 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
51 | 51 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
... | ... | |
61 | 61 |
* @version 1.0 |
62 | 62 |
*/ |
63 | 63 |
public class BulkEditor extends AnnotatedLineEditor implements IPartContentHasDetails, |
64 |
IDirtyMarkable { |
|
64 |
IDirtyMarkable, IDerivedUnitFacadeEditor {
|
|
65 | 65 |
|
66 | 66 |
/** Constant <code>ID="bulkeditor.editor"</code> */ |
67 | 67 |
public static final String ID = "bulkeditor.editor"; |
... | ... | |
288 | 288 |
((ReferencingObjectsView)part).dispose(); |
289 | 289 |
} |
290 | 290 |
super.doSave(progressMonitor); |
291 |
|
|
291 |
|
|
292 | 292 |
selectFirstItem(); |
293 | 293 |
if (part != null){ |
294 | 294 |
((ReferencingObjectsView)part).refresh(); |
295 |
|
|
295 |
|
|
296 | 296 |
} |
297 | 297 |
getSourceViewer().getTextWidget().setFocus(); |
298 |
|
|
298 |
|
|
299 | 299 |
} |
300 | 300 |
|
301 | 301 |
/** {@inheritDoc} */ |
Also available in: Unified diff