PY-15447, PY-15448 Fix help ID in several Python refactorings

* Added help IDs for "Extract Superclass" and "Push Members Down"
* Changed help ID in "Introduce Variable"
This commit is contained in:
Mikhail Golubev
2015-04-02 16:36:00 +03:00
parent 987fdbcdac
commit 246d671e39
3 changed files with 15 additions and 1 deletions
@@ -25,6 +25,7 @@ import com.intellij.refactoring.RefactoringBundle;
import com.jetbrains.python.psi.PyClass;
import com.jetbrains.python.refactoring.classes.membersManager.vp.MembersBasedViewSwingImpl;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.awt.*;
@@ -120,4 +121,10 @@ class PyExtractSuperclassViewSwingImpl
public String getSuperClassName() {
return myExtractedSuperNameField.getText();
}
@Nullable
@Override
protected String getHelpId() {
return "refactoring.extract.superclass.dialog";
}
}
@@ -21,6 +21,7 @@ import com.jetbrains.python.psi.PyClass;
import com.jetbrains.python.refactoring.classes.membersManager.vp.MembersBasedViewSwingImpl;
import com.jetbrains.python.refactoring.classes.membersManager.vp.MembersViewInitializationInfo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.awt.*;
@@ -38,4 +39,10 @@ public class PyPushDownViewSwingImpl extends MembersBasedViewSwingImpl<PyPushDow
myCenterPanel.add(myPyMemberSelectionPanel, BorderLayout.CENTER);
setTitle(PyPushDownHandler.REFACTORING_NAME);
}
@Nullable
@Override
protected String getHelpId() {
return "refactoring.pushMembersDown";
}
}
@@ -52,7 +52,7 @@ public class PyIntroduceVariableHandler extends IntroduceHandler {
@Override
protected String getHelpId() {
return "python.reference.introduceVariable";
return "refactoring.introduceVariable";
}
@Override