Hi,
i'm new in GMF, i created a GMF model with the eclass "Support",
this eclass has a field "chemin",
in the "supportEditPart" i try to set the field "fFigureSupportCheminFigure" with te path of file returned by a JFileChooser,
the fFigureSupportCheminFigure's text is changed in the diagram, but the field "chemin" in the model doesn't change,
see below the code in "supportEditPart" :
fFigureSupportCheminFigure.addMouseListener(new MouseListener() {
public void mousePressed(MouseEvent me) {
JFileChooser fileChooser = new JFileChooser();
int returnValue = fileChooser.showOpenDialog(null);
if (returnValue == JFileChooser.APPROVE_OPTION) {
File selectedFile = fileChooser.getSelectedFile();
fFigureSupportCheminFigure.setText(selectedFile.ge tAbsolutePath }}
public void mouseReleased(MouseEvent me) {
// TODO Auto-generated method stub
}
public void mouseDoubleClicked(MouseEvent me) {
// TODO Auto-generated method stub
}});
this.add(fFigureSupportCheminFigure);
thank you very much, i'm really in big problem!!