Revision 1326

tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/WorkspaceMessagesManager.java (revision 1326)
14 14
import java.util.TreeSet;
15 15
import java.util.regex.Pattern;
16 16

  
17
import org.txm.stat.utils.ConsoleProgressBar;
17 18
import org.txm.utils.io.IOUtils;
18 19

  
19 20
/**
......
97 98
		}
98 99

  
99 100
		if (!workspaceLocation.exists()) return;
100
		if (!workspaceLocation.isDirectory()) return;
101
		if (!workspaceLocation.isDirectory()) {
102
			System.out.println("Error: workspace not found in: "+workspaceLocation);
103
			return;
104
		}
101 105

  
106
		System.out.println("Initializing project messages...");
107
		ArrayList<File> files = new ArrayList<File>();
102 108
		for (File project : workspaceLocation.listFiles()) {
103 109
			if (!project.isDirectory()) continue;
104 110
			if (project.isHidden()) continue;
105 111
			if (!project.getName().startsWith("org.txm")) continue;
106 112
			if (project.getName().endsWith(".feature")) continue;
113
			files.add(project);
114
		}
115
		ConsoleProgressBar cpb = new ConsoleProgressBar(files.size());
116
		for (File project : files) {
117
			cpb.tick();
107 118

  
108 119
			//			File messagesPackageDir = new File(project, "src/"+project.getName().replaceAll("\\.", "/")+"/messages");
109 120
			//			if (!messagesPackageDir.exists()) {
......
124 135
			}
125 136
			//			}
126 137
		}
138
		cpb.done();
127 139

  
128 140
		this.createUsedKeysFilesIndex();
129 141

  

Also available in: Unified diff