.getActiveWorkbenchWindow().getActivePage().getActivePart();
if (part instanceof SequenceEditor) {
SequenceEditor editor = (SequenceEditor) part;
Object inputObj = editor.getInputAsSequence();
if (inputObj instanceof ISequence) {
ISequence sequence = (ISequence) inputObj;
if (sequence != null && sequence.getLogEntries() != null
&& !sequence.getLogEntries().isEmpty()) {
FileDialog dialog = new FileDialog(window.getShell(),
SWT.SAVE);
dialog.setFileName("backup.log");
String[] extentions = new String[] { "*.log", "*.*" };
dialog.setFilterExtensions(extentions);