/*
 * Copyright 2000-2009 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.intellij.openapi.editor.actions;

import com.intellij.ide.DataManager;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.actionSystem.EditorAction;
import com.intellij.openapi.editor.actionSystem.EditorActionHandler;
import com.intellij.openapi.project.Project;
import com.intellij.find.FindUtil;
import org.jetbrains.annotations.NotNull;

public class ReplaceAction extends EditorAction {
  private static class Handler extends EditorActionHandler {
    @Override
    public void execute(@NotNull Editor editor, DataContext dataContext) {
      Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));
      FindUtil.replace(project, editor);
    }

    @Override
    public boolean isEnabled(Editor editor, DataContext dataContext) {
      Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));
      return project != null;
    }
  }

  public ReplaceAction() {
    super(new IncrementalFindAction.Handler(true));
  }

}

@@ -665,1107 +665,100 @@
 lij.
-ide.DataManager;%0Aimport com.intellij.openapi.actionSystem.CommonDataKeys;%0Aimport com.intellij.openapi.actionSystem.DataContext;%0Aimport com.intellij.openapi.actionSystem.PlatformDataKeys;%0Aimport com.intellij.openapi.editor.Editor;%0Aimport com.intellij.openapi.editor.actionSystem.EditorAction;%0Aimport com.intellij.openapi.editor.actionSystem.EditorActionHandler;%0Aimport com.intellij.openapi.project.Project;%0Aimport com.intellij.find.FindUtil;%0Aimport org.jetbrains.annotations.NotNull;%0A%0Apublic class ReplaceAction extends EditorAction %7B%0A  private static class Handler extends EditorActionHandler %7B%0A    @Override%0A    public void execute(@NotNull Editor editor, DataContext dataContext) %7B%0A      Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));%0A      FindUtil.replace(project, editor);%0A    %7D%0A%0A    @Override%0A    public boolean isEnabled(Editor editor, DataContext dataContext) %7B%0A      Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));%0A      return project != null;%0A    %7D%0A  %7D%0A
+openapi.editor.actionSystem.EditorAction;%0A%0Apublic class ReplaceAction extends EditorAction %7B
 %0A  p
@@ -837,11 +837,10 @@
 ));%0A  %7D%0A
-%0A
 %7D%0A

Remove unused inner class