Révision 2168

tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasCoverageMacro.groovy (revision 2168)
55 55

  
56 56
@Field @Option(name="structure_properties", usage="name_prpperty,name2_property2,name3_property", widget="String", required=true, def="div_n,p_n")
57 57
		String structure_properties
58
@Field @Option(name="write_properties_values", usage="name_prpperty,name2_property2,name3_property", widget="Boolean", required=true, def="false")
59
		String write_properties_values
58 60
@Field @Option(name="debug", usage="Show internal variable content", widget="StringArray", metaVar="OFF	ON	ALL	REALLY ALL", required=true, def="OFF")
59 61
		debug
60 62
if (!ParametersDialog.open(this)) return
......
170 172
			if (hash.size() == 1) { // the units are only in ONE structure
171 173
				int[] struct = hash
172 174
				def ref = CQI.struc2Str(property.getQualifiedName(), struct)[0]
173
				println schema.getProp(schema_property_display)+" (${selectedUnits.size} units) -> "+property.getFullName()+" "+ref
174
				schema.getProps()["LOCALISATION"] = property.getFullName()+" "+ref
175
				if (debug) println schema.getProp(schema_property_display)+" (${selectedUnits.size} units) -> "+property.getFullName()+" "+ref
176
				if (write_properties_values) {
177
					schema.getProps()["LOCALISATION"] = property.getFullName()+" "+ref
178
				} else {
179
					schema.getProps()["LOCALISATION"] = property.getFullName()
180
				}
175 181
			} 
176 182
		}
177 183
	}

Formats disponibles : Unified diff