36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
|
package fenetres.create_act;
|
||
|
|
||
|
import java.awt.event.ActionEvent;
|
||
|
|
||
|
import javax.swing.AbstractAction;
|
||
|
import javax.swing.Action;
|
||
|
import javax.swing.ImageIcon;
|
||
|
|
||
|
import cXML.node;
|
||
|
import fenetres.create;
|
||
|
import list.listeDesNodesAnalyseStyle;
|
||
|
|
||
|
public class actEvaluerNomDuStyleHeriteTousLesNodesFalse extends AbstractAction{
|
||
|
{
|
||
|
putValue( Action.NAME, "Supprime l'évaluation de tous les noms des styles hérités dans tous les nodes." );
|
||
|
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation des noms des styles hérités." );
|
||
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")) );
|
||
|
}
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private static final long serialVersionUID = 1L;
|
||
|
|
||
|
@Override
|
||
|
public void actionPerformed(ActionEvent e) {
|
||
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||
|
for(int i = 0 ; i < nod.getNodes().size();i++) {
|
||
|
if(listeDesNodesAnalyseStyle.isAnalyseStyle(nod.getNodes().get(i))) {
|
||
|
nod.getNodes().get(i).supprimeAttribut("evalNameLegacyStyle");
|
||
|
}
|
||
|
}
|
||
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||
|
}
|
||
|
|
||
|
}
|