| 206 | } |
| 207 | |
| 208 | void ProjectManagerViewPlugin::updateActionState( KDevelop::Context* ctx ) |
| 209 | { |
| 210 | bool isEmpty = ICore::self()->projectController()->buildSetModel()->items().isEmpty(); |
| 211 | if( isEmpty ) |
| 212 | { |
| 213 | isEmpty = !ctx || ctx->type() != Context::ProjectItemContext || static_cast<ProjectItemContext*>(ctx)->items().isEmpty(); |
| 214 | } |
| 215 | d->m_build->setEnabled( !isEmpty ); |
| 216 | d->m_install->setEnabled( !isEmpty ); |
| 217 | d->m_clean->setEnabled( !isEmpty ); |
| 218 | d->m_configure->setEnabled( !isEmpty ); |
| 219 | d->m_prune->setEnabled( !isEmpty ); |
| 220 | } |
| 221 | |
| 222 | ProjectManagerViewPlugin::~ProjectManagerViewPlugin() |
| 223 | { |
nothing calls this directly
no test coverage detected