byte[] buffer = newText.getBytes();
ByteArrayInputStream source = new ByteArrayInputStream(buffer);
ProblemConsole console = new ProblemConsole();
+ boolean showConsole = WikiEditorPlugin.getDefault().getPreferenceStore().getBoolean(WikiEditorPlugin.CONSOLE_OUTPUT);
+
for (int i = 0; i < files.length; i++) {
file = files[i];
wikiTitle = wikiTitles[i];
file.create(source, true, monitor);
Page page = new Page("", wikiTitle, "");
page.createXMLFile(file, false);
+ if (showConsole) {
+ console.println("Title: "+wikiTitle+" =>File: " + file.getLocation().toString() + "created\n");
+ }
} else {
String message = "File: " + file.getLocation().toString() + "\n==>file already exists!";
monitor.subTask(message);
if (isModal(this)) {
// The progress dialog is still open show the message
- console.reportError();
} else {
setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
// setProperty(IProgressConstants.ACTION_PROPERTY, getWikisCompletedAction());