Added some more console messages
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / RefreshJob.java
index 49dec5b..321c369 100644 (file)
@@ -46,7 +46,7 @@ public class RefreshJob extends WorkspaceJob {
     ProblemConsole console = new ProblemConsole();
     IFile file = null;
     try {
-      monitor.beginTask("Refresh Wikis", 100);
+      monitor.beginTask("Download Wiki Articles: ", 100);
       //      ArrayList wikiTitles = new ArrayList();
       //      for (int i = 0; i < files.length; i++) {
       //        wikiTitles.add( Util.getReadableWikiName(files[i]) );
@@ -68,6 +68,7 @@ public class RefreshJob extends WorkspaceJob {
         url = configuration.getActionUrl() + "/" + configuration.getSpecialNs() + ":Export";
       }
       // get a list of Parsed elements
+      monitor.subTask("Downloading (XML Import)");
       ArrayList list = mwc.loadXML(configuration, url, buffer.toString());
       String body;
 
@@ -79,6 +80,7 @@ public class RefreshJob extends WorkspaceJob {
           if (body != null) {
             file = (IFile) map.get(wikiTitle);
             if (file != null) {
+              monitor.subTask("Modify file: "+file.getLocation().toString());
               updateFileContent(console, file, parsed, body, configuration, monitor);
             }
           }