ui/src/main/java/thredds/ui/catalog/CatalogTreeView.java
public void setCatalog(String location) {
    CatalogBuilder builder = new CatalogBuilder();

    try {
      Catalog cat = builder.buildFromLocation(location, null);
      setCatalog(cat);

    } catch (Exception ioe) {
      JOptionPane.showMessageDialog(this, "Error opening catalog location " + location+" err="+builder.getErrorMessage());
    }
  }
public void setCatalog(String location) {
    CatalogBuilder builder = new CatalogBuilder();

    try {
      Catalog cat = builder.buildFromLocation(location, null);
      setCatalog(cat);

    } catch (Exception ioe) {
      JOptionPane.showMessageDialog(this, "Error opening catalog location " + location+" err="+builder.getErrorMessage());
    }
  }
public void setCatalog ( String location ) { CatalogBuilder builder = new CatalogBuilder ( ) ; try { Catalog cat = builder . buildFromLocation ( location , null ) ; setCatalog ( cat ) ; } catch ( Exception ioe ) { JOptionPane . showMessageDialog ( this , "Error opening catalog location " + location + " err=" + builder . getErrorMessage ( ) ) ; } }
Set the InvCatalog to display.
The catalog is read asynchronously and displayed if successfully read.
You must use a PropertyChangeEventListener to be notified if successful.

@param location The URL of the InvCatalog.
Set the InvCatalog to display . The catalog is read asynchronously and displayed if successfully read . You must use a PropertyChangeEventListener to be notified if successful .