}
try {
if (!file.exists()) {
+ monitor.subTask("Create File: "+file.getLocation().toString());
file.create(source, true, monitor);
} else {
- console.println("File: " + file.getLocation().toString() + "\n==>file already exists!");
+ String message = "File: " + file.getLocation().toString() + "\n==>file already exists!";
+ monitor.subTask(message);
+ console.println(message);
}
} catch (CoreException e) {
if (file != null) {