Package org.eclipse.core.filebuffers.manipulation

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


* @since 3.1
*/
public class RemoveTrailingWhitespaceHandler extends FileBufferOperationHandler {

  public RemoveTrailingWhitespaceHandler() {
    super(new RemoveTrailingWhitespaceOperation());
  }
View Full Code Here


    if (project != null) {
      updateSaveActionsState(project.getProject());
    }

    if (saveActionsEnabled) {
      RemoveTrailingWhitespaceOperation op = new ExtendedRemoveTrailingWhitespaceOperation(
          saveActionsIgnoreEmptyLines);
      try {
        op.run(FileBuffers.getTextFileBufferManager()
            .getTextFileBuffer(getDocument()), progressMonitor);
      } catch (OperationCanceledException e) {
        Logger.logException(e);
      } catch (CoreException e) {
        Logger.logException(e);
View Full Code Here

TOP

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

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.