use of alma.acs.alarmsystemprofiler.save.SaveData in project ACS by ACS-Community.
the class SaveHandler method execute.
@Execute
public void execute(Shell shell) {
System.out.println("Saving...");
FileDialog fileChooser = new FileDialog(shell, SWT.SAVE);
String fileName = fileChooser.open();
if (fileName == null) {
System.out.println("No file to save");
} else {
System.out.println("File to save: " + fileName);
File fileToSave = new File(fileName);
try {
SaveData saveHelper = new SaveData(SaveData.FileContentType.WIKI, fileToSave);
} catch (Throwable t) {
System.err.println(t.getMessage());
t.printStackTrace(System.err);
}
}
}
Aggregations