Revision a9bea304
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/e4/handler/CloneDataSourceHandlerE4.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.view.datasource.e4.handler; |
11 | 11 |
|
12 |
import javax.inject.Named; |
|
13 |
|
|
14 | 12 |
import org.eclipse.core.runtime.IStatus; |
15 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
|
16 |
import org.eclipse.e4.ui.services.IServiceConstants; |
|
17 | 13 |
import org.eclipse.jface.wizard.Wizard; |
18 | 14 |
import org.eclipse.jface.wizard.WizardDialog; |
19 | 15 |
import org.eclipse.swt.widgets.Shell; |
... | ... | |
53 | 49 |
return true; |
54 | 50 |
} |
55 | 51 |
|
56 |
@CanExecute |
|
57 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)CdmMetaDataAwareDataSourceContainer container){ |
|
58 |
return container!=null; |
|
59 |
} |
|
60 | 52 |
} |
Also available in: Unified diff
ref #7010 Adapt datasource handlers for multiple selection