Révision 2073

tmp/org.txm.properties.core/src/org/txm/properties/core/functions/Properties.java (revision 2073)
166 166
	public void stepGeneralInfos() {
167 167
		try {
168 168
			properties = corpus.getProperties();
169
			List<WordProperty> pproperties = new ArrayList<WordProperty>(properties);
170
			for (WordProperty p : properties) {
171
				if (p.getName().equals("id")) {
172
					pproperties.remove(p);
173
				}
174
			}
175
			properties = pproperties;
169 176
			NProperties = properties.size();
170 177
		} catch (CqiClientException e) {
171 178
			Log.severe(TXMCoreMessages.bind(PropertiesCoreMessages.error_failedToAccessPropertieOfCorpusP0, corpus.getName()));
......
218 225
	public void stepStructuralUnits() {
219 226
		try {
220 227
			structures = corpus.getOrderedStructuralUnits();
228

  
229
			List<StructuralUnit> sstructures = new ArrayList<StructuralUnit>(structures);
230
			for (StructuralUnit su : structures) {
231
				if (su.getName().equals("txmcorpus")) {
232
					sstructures.remove(su);
233
				}
234
			}
235
			structures = sstructures;
236
			
221 237
		} catch (CqiClientException e) {
222 238
			Log.severe(TXMCoreMessages.bind(PropertiesCoreMessages.error_failedToAccessStructuresOfCorpusP0, corpus.getName()));
223 239
			Log.printStackTrace(e);
......
305 321
		// counts
306 322
		buff.append("<ul>\n"); //$NON-NLS-1$
307 323
		buff.append("<li>" + NLS.bind(PropertiesCoreMessages.numberOfWordsP0, numberOfWords) + "</li>\n"); //$NON-NLS-1$ //$NON-NLS-2$
308
		buff.append("<li>" + PropertiesCoreMessages.numberOfWordProperties + (NProperties - 1) + "("+StringUtils.join(properties, ", ")+")</li>\n"); //$NON-NLS-2$ //$NON-NLS-1$
309
		buff.append("<li>" + PropertiesCoreMessages.numberOfStructuralUnits + NStructures + "("+StringUtils.join(structures, ", ")+")</li>\n"); //$NON-NLS-2$ //$NON-NLS-1$
324

  
325
		buff.append("<li>" + PropertiesCoreMessages.numberOfWordProperties + (properties.size()) + " ("+StringUtils.join(properties, ", ")+")</li>\n"); //$NON-NLS-2$ //$NON-NLS-1$
326
		buff.append("<li>" + PropertiesCoreMessages.numberOfStructuralUnits + (structures.size()) + " ("+StringUtils.join(structures, ", ")+")</li>\n"); //$NON-NLS-2$ //$NON-NLS-1$
310 327
		buff.append("</ul>\n"); //$NON-NLS-1$
311 328

  
312 329
		// Propriétés d'occurrences

Formats disponibles : Unified diff