*/
private void configureOfficeFrame(IFrame frame, IDocument document) {
if(document == null)
return;
frame.addDispatchDelegate(GlobalCommands.SAVE_AS, new IDispatchDelegate() {
public void dispatch(Object[] arg0) {
editorPart.getSite().getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
editorPart.doSaveAs();
}
});
}
});
frame.addDispatchDelegate(GlobalCommands.SAVE, new IDispatchDelegate() {
public void dispatch(Object[] arg0) {
editorPart.getSite().getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
editorPart.doSave(new NullProgressMonitor());
}