For IntelliJ IDEA,
Android Studio or Eclipse



.setProgressListener(cli.getProgressListener())// .call(); } catch (IllegalStateException e) {
.setProgressListener(cli.getProgressListener())// .call(); } catch (IllegalStateException e) {
@Override protected void runInternal(GeogigCLI cli) throws InvalidParameterException, CommandFailedException, IOException { Repository repo = cli.getGeogig().getRepository(); Envelope envelope = SpatialOps.parseNonReferencedBBOX(bbox); Index index = repo.command(UpdateIndexOp.class)// .setTreeRefSpec(treeRefSpec)// .setAttributeName(attribute)// .setExtraAttributes(extraAttributes)// .setOverwrite(overwrite)// .setAdd(add)// .setIndexHistory(indexHistory)// .setBounds(envelope)// .setProgressListener(cli.getProgressListener())// .call(); if (cli.getProgressListener().isCanceled()) { cli.getConsole().println("Index update cancelled."); } else { cli.getConsole().println( "Index updated successfully: " + index.indexTreeId().toString().substring(0, 8)); } } }