Package ag.ion.noa4e.editor.ui.dialogs

Examples of ag.ion.noa4e.editor.ui.dialogs.OfficeSaveAsDialog


   * @throws CoreException if the document can not be stored
   *
   * @author Andreas Br�ker
   */
  public void doSaveAs(Shell shell) throws CoreException {   
    OfficeSaveAsDialog dialog = new OfficeSaveAsDialog(shell, document);
    IPath path = null;
    if(editorPart.getEditorInput() instanceof IPathEditorInput)
      path = ((IPathEditorInput)editorPart.getEditorInput()).getPath();
    if (path != null)
      dialog.setOriginalFile(path);
     
    dialog.create();   
     
    if (dialog.open() == Window.CANCEL) {
      return;
    }
     
    final IPath filePath = dialog.getResult();   
    final IFilter filter = dialog.getFilter();
    final IContainer targetContainer = dialog.getTargetContainer();
    if (filePath == null)
      return;     
   
    try {
      EditorUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().run(true, false, new IRunnableWithProgress() {
View Full Code Here

TOP

Related Classes of ag.ion.noa4e.editor.ui.dialogs.OfficeSaveAsDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.