adjusted old comment to code block
authorAlexander Oppermann <a.oppermann@bgbm.org>
Thu, 16 Apr 2015 09:05:33 +0000 (09:05 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Thu, 16 Apr 2015 09:05:33 +0000 (09:05 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaViewPart.java

index f57be84915bfcae1742dcbd873b2dad2ce3a50b4..07cbd473dc5f8a3dd3f4f78d1e2b1bd17d2e64ce 100644 (file)
@@ -139,13 +139,13 @@ public class MediaViewPart extends AbstractCdmEditorViewPart implements IPartCon
        public void changed(Object object) {
            viewer.expandToLevel(2);
            viewer.refresh();
-           //TODO: should be replaced with the possibility to set views dirty
-           // when we move to Eclipse 4
-           // take a look at ISaveblePart
            if(object != null){
                StructuredSelection selection = new StructuredSelection(object);
                viewer.setSelection(selection, true);
            }
+           //TODO: should be replaced with the possibility to set views dirty
+           // when we move to Eclipse 4
+           // take a look at ISaveblePart
            if(part instanceof BulkEditor && !(object instanceof SpecimenOrObservationBase<?>)){
                ((BulkEditor) part).forceDirty();
            }