forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r264627 - /forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java
Date Mon, 29 Aug 2005 20:19:55 GMT
Author: rgardler
Date: Mon Aug 29 13:19:49 2005
New Revision: 264627

URL: http://svn.apache.org/viewcvs?rev=264627&view=rev
Log:
Prevent DOMException when refreshing document list (fixes FOR-651, thanks Anil Ramnanan)

Modified:
    forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java

Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java?rev=264627&r1=264626&r2=264627&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java
(original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest.repository.ui/src/org/apache/forrest/repository/ui/views/RepositoryView.java
Mon Aug 29 13:19:49 2005
@@ -198,12 +198,22 @@
 	private void makeActions() {
 		action1 = new Action() {
 			public void run() {
+				DocumentBuilder builder;
 				try {
-					RepositoryInterface.SearchRepository(document);
+					builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+					 document = builder.newDocument();
+					 RepositoryInterface.SearchRepository(document);
+				} catch (ParserConfigurationException e1) {
+					// TODO Auto-generated catch block
+					e1.printStackTrace();
+				} catch (FactoryConfigurationError e1) {
+					// TODO Auto-generated catch block
+					e1.printStackTrace();
 				} catch (Exception e) {
 					// TODO Auto-generated catch block
 					e.printStackTrace();
 				}
+				treeViewer.setInput(document);
 				showMessage("Document List refreshed");
 			}
 		};



Mime
View raw message