Fix canExecute() check for data source update handler
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 5 Jun 2018 08:45:55 +0000 (10:45 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 5 Jun 2018 08:45:55 +0000 (10:45 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/e4/handler/UpdateDataSourceHandlerE4.java

index 1d83b27..023860d 100644 (file)
@@ -94,6 +94,6 @@ public class UpdateDataSourceHandlerE4 extends AbstractDataSourceHandlerE4 {
 
     @CanExecute
     public boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)CdmMetaDataAwareDataSourceContainer container){
-        return container.isDataSourceCompatible();
+        return !container.isDataSourceCompatible();
     }
 }