Package org.eclipse.core.filebuffers.manipulation

Examples of org.eclipse.core.filebuffers.manipulation.FileBufferOperationRunner


              locations= generateLocations(files, new SubProgressMonitor(monitor, 30));
            } else
              locations= new IPath[] { location };

            if (locations != null && locations.length > 0) {
              FileBufferOperationRunner runner= new FileBufferOperationRunner(FileBuffers.getTextFileBufferManager(), getShell());
              runner.execute(locations, fileBufferOperation, new SubProgressMonitor(monitor, ticks));
            }
            status= new Status(IStatus.OK, EditorsUI.PLUGIN_ID, IStatus.OK, "", null)//$NON-NLS-1$
          } finally {
            monitor.done();
          }
View Full Code Here


              locations= generateLocations(files, new SubProgressMonitor(monitor, 30));
            } else
              locations= new IPath[] { location };

            if (locations != null && locations.length > 0) {
              FileBufferOperationRunner runner= new FileBufferOperationRunner(FileBuffers.getTextFileBufferManager(), getShell());
              runner.execute(locations, fileBufferOperation, new SubProgressMonitor(monitor, ticks));
            }
            status= new Status(IStatus.OK, EditorsUI.PLUGIN_ID, IStatus.OK, "", null)//$NON-NLS-1$
          } finally {
            monitor.done();
          }
View Full Code Here

        // convert operation to change line delimiters
        TextFileBufferOperation convertOperation = new ConvertLineDelimitersOperation(
            "\n");

        // operation runner for the convert operation
        FileBufferOperationRunner runner = new FileBufferOperationRunner(
            buffManager, null);

        // execute convert operation in runner
        try {
            // FIXME #2671663: Converting Line Delimiters causes Save
            runner.execute(paths, convertOperation, new NullProgressMonitor());
        } catch (OperationCanceledException e) {
            EditorManager.log.error("Can't convert line delimiters:", e);
        } catch (CoreException e) {
            EditorManager.log.error("Can't convert line delimiters:", e);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.core.filebuffers.manipulation.FileBufferOperationRunner

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.