anchor.diff:      super(spark, id, name);
   
     void _invoke([context]) {
  +    if (!_canRunAction()) {
  +      return;
  +    }
       ws.Resource resource;
   
       if (context == null) {
  
positive.code:       });
  
        // Run Pub if the folder has a pubspec file.
        if (spark.pubManager.properties.isFolderWithPackages(resource)) {
          spark.jobManager.schedule(new PubGetJob(spark, resource));
        }
  
  
negative.code:   bool _appliesTo(ws.Resource resource);
  
    Job _createJob(ws.Container container);
  
    bool _canRunAction() => true;
  }
  
  abstract class PubAction extends PackageManagementAction {
    PubAction(Spark spark, String id, String name) : super(spark, id, name);
  
    bool _canRunAction() {
  //    if (PlatformInfo.isWin) {
        spark.showErrorMessage('Pub',
            message: 'Running Pub Get/Upgrade is currently not supported on Windows : '
                     'use the command line Pub tool to get the packages.\n'
                     'Track issue at '
                     'https://github.com/dart-lang/chromedeveditor/issues/2743');
        return false;
  //    }
  //    return true;
    }
  
    bool _appliesTo(ws.Resource resource) =>
        spark.pubManager.properties.isPackageResource(resource);
  