Package org.eclipse.ui.ide.undo

Examples of org.eclipse.ui.ide.undo.CreateFileOperation.execute()


            final String contents = getConfigContent(info, configType);
            final CreateFileOperation fop = new CreateFileOperation(cfg, null,
                    // TODO real encoding?
                    new ByteArrayInputStream(contents.getBytes(Charsets.ISO_8859_1)),
                    "creating file " + cfg.getName());
            fop.execute(monitor, notifier);
            break;
        case INTERNAL:
            break;
        default:
            break;
View Full Code Here


        {
          // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved. Making this undoable resulted in too many
          // accidental file deletions.
          op.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
        } catch (final ExecutionException e)
        {
          getContainer().getShell().getDisplay().syncExec(new Runnable()
          {
            public void run()
View Full Code Here

        try {
          // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved.  Making this undoable resulted in too many
          // accidental file deletions.
          op.execute(monitor, WorkspaceUndoUtil
              .getUIInfoAdapter(getShell()));
        } catch (final ExecutionException e) {
         
          ErrorDialog.openError(getContainer().getShell(),
              "Failed to create DISPEL diagram file",
View Full Code Here

          // https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved.  Making this undoable resulted in too many
          // accidental file deletions.
     
          op.execute(new NullProgressMonitor(), WorkspaceUndoUtil
              .getUIInfoAdapter(getShell()));
        } catch (final ExecutionException e) {
         
          MessageDialog.openError(getShell(),
              "Failed to create DISPEL diagram file",
View Full Code Here

          // see bug
          // https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved.  Making this undoable resulted in too many
          // accidental file deletions.
          op.execute(monitor, WorkspaceUndoUtil
              .getUIInfoAdapter(getShell()));
        } catch (final ExecutionException e) {
         
          ErrorDialog.openError(getContainer().getShell(),
              "Failed to create DISPEL diagram file",
View Full Code Here

          // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved.  Making this undoable resulted in too many
          // accidental file deletions.
     
          op.execute(new NullProgressMonitor(), WorkspaceUndoUtil
              .getUIInfoAdapter(getShell()));
        } catch (final ExecutionException e) {
         
          MessageDialog.openError(getShell(),
              "Failed to create DISPEL diagram file",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.