Project

General

Profile

« Previous | Next » 

Revision 4c2013f0

Added by Niels Hoffmann about 13 years ago

Some refactoring and started on implementing images for specimen.

View differences:

taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaViewPart.java
13 13
import org.eclipse.jface.action.GroupMarker;
14 14
import org.eclipse.jface.action.MenuManager;
15 15
import org.eclipse.jface.viewers.ISelection;
16
import org.eclipse.jface.viewers.IStructuredSelection;
16 17
import org.eclipse.jface.viewers.StructuredSelection;
17 18
import org.eclipse.jface.viewers.TreeViewer;
18 19
import org.eclipse.jface.viewers.Viewer;
......
100 101
			showViewer(part, new StructuredSelection(input));
101 102
		}
102 103

  
103
		if(part instanceof BulkEditor){
104
			showViewer(part, selection);
104
		if(part instanceof BulkEditor && selection instanceof IStructuredSelection){
105
			showViewer(part, (IStructuredSelection) selection);
105 106
		}
106 107
	}
107 108

  

Also available in: Unified diff