Capabilities currentFilterCapabilities = null;
if (currentFilter != null && currentCapabilitiesFilter != null &&
(currentFilter instanceof CapabilitiesHandler)) {
currentFilterCapabilities = ((CapabilitiesHandler)currentFilter).getCapabilities();
if (!currentFilterCapabilities.supportsMaybe(currentCapabilitiesFilter) &&
!currentFilterCapabilities.supports(currentCapabilitiesFilter)) {
m_ApplyFilterBut.setEnabled(false);
}
}
}