Project

General

Profile

« Previous | Next » 

Revision c416d097

Added by Katja Luther over 5 years ago

fix #7227: remove marker menu in bulkeditor when nothing is selected

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/command/DynamicMarkerTypeEditingMenuE4.java
46 46
	/** {@inheritDoc} */
47 47
    @AboutToShow
48 48
    public void aboutToShow(List<MMenuElement> items, @Named(IServiceConstants.ACTIVE_SELECTION)Object selection) {
49
        if(selection==null){
49
        if(selection instanceof StructuredSelection && ((StructuredSelection)selection).isEmpty()){
50 50
            return;
51 51
        }
52 52
        MMenu menu = MMenuFactory.INSTANCE.createMenu();

Also available in: Unified diff