| 195 | } |
| 196 | |
| 197 | QMenu* VcsPluginHelper::commonActions(QWidget* parent) |
| 198 | { |
| 199 | Q_D(VcsPluginHelper); |
| 200 | |
| 201 | /* TODO: the following logic to determine which actions need to be enabled |
| 202 | * or disabled does not work properly. What needs to be implemented is that |
| 203 | * project items that are vc-controlled enable all except add, project |
| 204 | * items that are not vc-controlled enable add action. For urls that cannot |
| 205 | * be made into a project item, or if the project has no associated VC |
| 206 | * plugin we need to check whether a VC controls the parent dir, if we have |
| 207 | * one we assume the urls can be added but are not currently controlled. If |
| 208 | * the url is already version controlled then just enable all except add |
| 209 | */ |
| 210 | return d->createMenu(parent); |
| 211 | } |
| 212 | |
| 213 | #define EXECUTE_VCS_METHOD( method ) \ |
| 214 | d->plugin->core()->runController()->registerJob( d->vcs-> method ( d->ctxUrls ) ) |
no test coverage detected