if (sourceList == null) {
return;
}
OutputConsole console = EclipsePlugin.getDefault().getConsole();
IDocument document = console.getDocument();
// Clear the document.
try {
document.replace(0, document.getLength(), "");
} catch (Exception e) {
EclipsePlugin.getStandardDisplay().asyncExec(
new ErrorDialogRunnable(e));
}
console.show();
MessageConsoleStream outputStream = console.newMessageStream();
outputStream.setColor(new Color(null, 0, 0, 255));
MessageConsoleStream errorStream = console.newMessageStream();
errorStream.setColor(new Color(null, 255, 0, 0));
IWorkspaceRoot workspace = ResourcesPlugin.getWorkspace().getRoot();
IProject[] projects = workspace.getProjects();
String[] ptojectPaths = new String[projects.length];