This commit is contained in:
Konstantin Bulenkov
2011-05-13 11:49:18 +04:00
parent 62e3f58b8f
commit 6782d9cbf7
2 changed files with 18 additions and 0 deletions
@@ -70,4 +70,9 @@ public class DirDiffDialog extends DialogWrapper {
protected Action[] createActions() {
return new Action[]{};
}
@Override
protected String getHelpId() {
return "reference.dialogs.diff.folder";
}
}
@@ -15,10 +15,14 @@
*/
package com.intellij.openapi.diff.impl.dir;
import com.intellij.ide.DataManager;
import com.intellij.ide.diff.DirDiffSettings;
import com.intellij.openapi.actionSystem.DataProvider;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.FrameWrapper;
import com.intellij.openapi.util.Disposer;
import org.jetbrains.annotations.NonNls;
import java.awt.*;
@@ -36,6 +40,15 @@ public class DirDiffFrame extends FrameWrapper {
setComponent(myPanel.getPanel());
setProject(project);
closeOnEsc();
DataManager.registerDataProvider(myPanel.getPanel(), new DataProvider() {
@Override
public Object getData(@NonNls String dataId) {
if (PlatformDataKeys.HELP_ID.is(dataId)) {
return "reference.dialogs.diff.folder";
}
return null;
}
});
}