Clear text widget during reload
diff --git a/src/main/groovy/m4e/ui/M2RepoView.groovy b/src/main/groovy/m4e/ui/M2RepoView.groovy
index 606f393..7f9e4e8 100644
--- a/src/main/groovy/m4e/ui/M2RepoView.groovy
+++ b/src/main/groovy/m4e/ui/M2RepoView.groovy
@@ -96,6 +96,11 @@
         reload()
     }
     
+    void clearText() {
+        def doc = pomView.document
+        doc.remove( 0, doc.length )
+    }
+    
     void initFilter() {
         def l = new FilterChangeListener() {
             void filterChanged( String value ) {
@@ -127,6 +132,8 @@
     }
     
     void reload() {
+        clearText()
+        
         new SwingBuilder().build {
             doOutside {
                 loadPoms()
@@ -162,6 +169,8 @@
         
         println "Loading artifacts from ${repo}..."
         
+        currentPom = null
+        
         def list = []
         
         MavenRepositoryTools.eachPom( repo ) { File file ->