Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 251 → Rev 252

/sun/xmleditor/trunk/src/control/OtherGUIActions.java
12,7 → 12,6
 
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
 
public class OtherGUIActions implements ActionListener
{
27,7 → 26,6
}
 
 
/**
* Method needed by ActionListener
*
35,18 → 33,6
 
public void actionPerformed(ActionEvent e) {
 
if (e.getActionCommand() == "Save document") {
JFrame x = new JFrame();
JFileChooser fileChooser = new JFileChooser();
int returnValue = fileChooser.showSaveDialog(x);
x.show();
if (returnValue == JFileChooser.APPROVE_OPTION) {
File saveFile = fileChooser.getSelectedFile();
//src.document.OurDocument.saveDocument(src.parser.Parser.getDocument(), saveFile);
}
}
 
if (e.getActionCommand() == "Exit") {
if (quitConfirmed() == true) {
System.exit(0);
56,7 → 42,6
}
/**
* private methode to open the "Quit Confirmation" dialog
*
90,10 → 75,6
return false;
}
}
/* if (e.getActionCommand() == "validate")
{
Validator myValidator = new Validator(myGui.getLogInterface());
}*/
}