final String fileName = fileDialog.open();
if (fileName != null) {
final URI fileURI = new File(fileName).toURI();
try {
final IFileStore store = EFS.getStore(fileURI);
final FileStoreEditorInput input = new FileStoreEditorInput(
store);
new ProgressMonitorDialog(getSite().getWorkbenchWindow()
.getShell()).run(false, // don't fork
false, // not cancelable
new WorkspaceModifyOperation() { // run this operation
@Override
public void execute(final IProgressMonitor monitor) {
monitor.beginTask(MusicMessages.MeiseEditor_8,
2);
setValidPartName(input.getName());
setInputWithNotify(input);
// doSave(monitor);
final MusicDiagram shutDownDiagram = (MusicDiagram) getMusicDiagram()
.clone();
shutDownDiagram.tearDown();