public void scanningFinished(IndexingContext ctx, ScanningResult result) {
   try {
     if (p.isCanceled()) throw new ProcessCanceledException();
   } catch (RemoteException e) {
     throw new RuntimeRemoteException(e);
   }
 }
 public void scanningStarted(IndexingContext ctx) {
   try {
     if (p.isCanceled()) throw new ProcessCanceledException();
   } catch (RemoteException e) {
     throw new RuntimeRemoteException(e);
   }
 }
 public void artifactDiscovered(ArtifactContext ac) {
   try {
     if (p.isCanceled()) throw new ProcessCanceledException();
     ArtifactInfo info = ac.getArtifactInfo();
     p.setText2(info.groupId + ":" + info.artifactId + ":" + info.version);
   } catch (RemoteException e) {
     throw new RuntimeRemoteException(e);
   }
 }