コード例 #1
0
 @Override
 protected void ok() {
   try {
     chooser.getRepositoryLocation();
     super.ok();
   } catch (MalformedRepositoryLocationException e) {
     SwingTools.showSimpleErrorMessage("malformed_repository_location", e, e.getMessage());
   }
 }
コード例 #2
0
  public void locateExpandedEntries() {

    for (String absoluteLocation : expandedNodes) {
      try {
        RepositoryLocation repositoryLocation = new RepositoryLocation(absoluteLocation);
        repositoryLocation.locateEntry();
      } catch (MalformedRepositoryLocationException e) {
        LogService.getRoot().warning("Unable to expand the location:" + absoluteLocation);
        e.printStackTrace();
      } catch (RepositoryException e) {
        LogService.getRoot().warning("Unable to expand the location:" + absoluteLocation);
        e.printStackTrace();
      }
    }
  }