Merge remote-tracking branch 'origin/master'

This commit is contained in:
Dmitry Jemerov
2012-08-28 19:23:06 +02:00
4 changed files with 29 additions and 2 deletions
@@ -0,0 +1,14 @@
package icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
/**
* NOTE THIS FILE IS AUTO-GENERATED by the build/scripts/icons.gant
* Don't repeat mistakes of others ;-)
*/
public class PythonHelpersIcons {
public static final Icon Keybd_closed = IconLoader.getIcon("/coverage/htmlfiles/keybd_closed.png"); // 35x12
public static final Icon Keybd_open = IconLoader.getIcon("/coverage/htmlfiles/keybd_open.png"); // 35x12
}
+1
View File
@@ -7,6 +7,7 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="util" />
</component>
</module>
+13
View File
@@ -0,0 +1,13 @@
package icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
/**
* NOTE THIS FILE IS AUTO-GENERATED by the build/scripts/icons.gant
* Don't repeat mistakes of others ;-)
*/
public class RestIcons {
public static final Icon Rst = IconLoader.getIcon("/com/jetbrains/rest/res/rst.png"); // 16x16
}
@@ -95,7 +95,7 @@ public class TypeAssertionIntention implements IntentionAction {
final Document document = editor.getDocument();
if (statementList != null) {
PsiElement statementListParent = statementList.getParent();
PsiElement statementListParent = PsiTreeUtil.getParentOfType(statementList, PyStatement.class);
if (document.getLineNumber(statementList.getTextOffset()) ==
document.getLineNumber(statementListParent.getTextOffset())) {
final String substring =
@@ -105,7 +105,6 @@ public class TypeAssertionIntention implements IntentionAction {
text + "\n\t" + statementList.getText());
statementListParent = statementListParent.replace(foo);
statementListParent = CodeInsightUtilBase.forcePsiPostprocessAndRestoreElement(statementListParent);
statementList = PsiTreeUtil.findChildOfType(statementListParent, PyStatementList.class);
element = statementList.getStatements()[0];
}