Browse Source

Fixed parser exception propogation bug.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268229 13f79535-47bb-0310-9956-ffa450edef68
master
metasim 24 years ago
parent
commit
0cbed006ac
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/antidote/org/apache/tools/ant/gui/ProjectProxy.java

+ 4
- 2
src/antidote/org/apache/tools/ant/gui/ProjectProxy.java View File

@@ -64,6 +64,7 @@ import javax.swing.tree.TreeSelectionModel;
import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener; import javax.swing.event.TreeSelectionListener;
import java.util.*; import java.util.*;
import org.xml.sax.SAXException;


/** /**
* This class provides the gateway interface to the data model for * This class provides the gateway interface to the data model for
@@ -92,7 +93,8 @@ public class ProjectProxy {
* *
* @param file File containing build file to load. * @param file File containing build file to load.
*/ */
public ProjectProxy(AppContext context, File file) throws IOException {
public ProjectProxy(AppContext context, File file)
throws IOException, SAXException {
_file = file; _file = file;
_context = context; _context = context;
loadProject(); loadProject();
@@ -102,7 +104,7 @@ public class ProjectProxy {
* Load the project from the build file. * Load the project from the build file.
* *
*/ */
private void loadProject() throws IOException {
private void loadProject() throws IOException, SAXException {
_project = ACSFactory.getInstance().load(_file); _project = ACSFactory.getInstance().load(_file);
_selections = new ElementSelectionModel(); _selections = new ElementSelectionModel();
_selections.addTreeSelectionListener(new SelectionForwarder()); _selections.addTreeSelectionListener(new SelectionForwarder());


Loading…
Cancel
Save