analyseWriter/src/fenetres/create_act/actEvalTextUserDefinedNon.java

31 lines
912 B
Java
Raw Normal View History

2022-06-23 10:14:21 +02:00
package fenetres.create_act;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
2022-06-23 10:14:21 +02:00
import cXML.node;
import fenetres.create;
2022-06-23 10:14:21 +02:00
public class actEvalTextUserDefinedNon extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Supprime évaluer la valeur de la propriété personnalisé" );
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la valeur personnalisé.");
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
2022-06-23 10:14:21 +02:00
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalTextUserDefined");
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}