Revision a9bea304
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/e4/handler/DeleteDataSourceHandlerE4.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.view.datasource.e4.handler; |
11 | 11 |
|
12 |
import javax.inject.Named; |
|
13 |
|
|
14 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
|
15 |
import org.eclipse.e4.ui.services.IServiceConstants; |
|
16 | 12 |
import org.eclipse.jface.dialogs.MessageDialog; |
17 | 13 |
import org.eclipse.swt.widgets.Shell; |
18 | 14 |
|
... | ... | |
40 | 36 |
return true; |
41 | 37 |
} |
42 | 38 |
|
43 |
@CanExecute |
|
44 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)CdmMetaDataAwareDataSourceContainer container){ |
|
45 |
return container!=null; |
|
46 |
} |
|
47 | 39 |
} |
Also available in: Unified diff
ref #7010 Adapt datasource handlers for multiple selection