Révision 3357
TXM/trunk/org.txm.analec.rcp/src/visuAnalec/donnees/VisuStructure.java (revision 3357) | ||
---|---|---|
10 | 10 |
import javax.swing.*; |
11 | 11 |
import javax.swing.border.*; |
12 | 12 |
import javax.swing.tree.*; |
13 |
|
|
14 |
import org.eclipse.osgi.util.NLS; |
|
15 |
import org.txm.utils.logger.Log; |
|
16 |
|
|
13 | 17 |
import visuAnalec.*; |
14 | 18 |
import visuAnalec.Message.*; |
15 | 19 |
import visuAnalec.donnees.Corpus.*; |
... | ... | |
306 | 310 |
noeud = (DefaultMutableTreeNode) item.getLastPathComponent(); |
307 | 311 |
switch (item.getPathCount()) { |
308 | 312 |
case 2: // type |
309 |
String newType = corpus.saisirRenommerType(VisuStructure.this, classe, |
|
310 |
(String) noeud.getUserObject()); |
|
313 |
String newType = corpus.saisirRenommerType(VisuStructure.this, classe, (String) noeud.getUserObject()); |
|
311 | 314 |
if (newType!=null) { |
312 | 315 |
DefaultMutableTreeNode ntypefusion = null; |
313 | 316 |
noeud0 = (DefaultMutableTreeNode) item.getPathComponent(0); |
... | ... | |
326 | 329 |
donnees.nodeChanged(noeud); |
327 | 330 |
} |
328 | 331 |
} |
332 |
Log.info(NLS.bind("Warning: the Vue must be updated to show the new annotation name: {0}.", newType)); |
|
329 | 333 |
break; |
330 | 334 |
case 3: // prop |
331 | 335 |
noeud1 = (DefaultMutableTreeNode) item.getPathComponent(1); |
332 |
String newProp = corpus.saisirRenommerProp(VisuStructure.this, classe, |
|
333 |
(String) noeud1.getUserObject(), (String) noeud.getUserObject()); |
|
336 |
String newProp = corpus.saisirRenommerProp(VisuStructure.this, classe, (String) noeud1.getUserObject(), (String) noeud.getUserObject()); |
|
334 | 337 |
if (newProp!=null) { |
335 | 338 |
DefaultMutableTreeNode npropfusion = null; |
336 | 339 |
for (Enumeration<DefaultMutableTreeNode> eprop = noeud1.children(); eprop.hasMoreElements();) { |
... | ... | |
348 | 351 |
donnees.nodeChanged(noeud); |
349 | 352 |
} |
350 | 353 |
} |
354 |
Log.info(NLS.bind("Warning: the Vue must be updated to show the new annotation property name: {0}.", newProp)); |
|
351 | 355 |
break; |
352 | 356 |
case 4: // val |
353 | 357 |
noeud1 = (DefaultMutableTreeNode) item.getPathComponent(1); |
Formats disponibles : Unified diff