mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="util" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user