mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed django tag selectioner (PY-1339)
This commit is contained in:
+2
-1
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.intellij.codeInsight.editorActions;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -39,7 +40,7 @@ public abstract class ExtendWordSelectionHandlerBase implements ExtendWordSelect
|
||||
ranges = expandToWholeLine(editorText, originalRange, false);
|
||||
}
|
||||
|
||||
List<TextRange> result = new ArrayList<TextRange>();
|
||||
List<TextRange> result = Lists.newArrayList();
|
||||
result.addAll(ranges);
|
||||
return result;
|
||||
}
|
||||
|
||||
+2
-1
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.intellij.codeInsight.editorActions.wordSelection;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -39,7 +40,7 @@ public abstract class AbstractWordSelectioner extends ExtendWordSelectionHandler
|
||||
ranges = super.select(e, editorText, cursorOffset, editor);
|
||||
}
|
||||
else {
|
||||
ranges = new ArrayList<TextRange>();
|
||||
ranges = Lists.newArrayList();
|
||||
}
|
||||
SelectWordUtil.addWordSelection(editor.getSettings().isCamelWords(), editorText, cursorOffset, ranges);
|
||||
return ranges;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.editorActions;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.codeInsight.editorActions.wordSelection.AbstractWordSelectioner;
|
||||
import com.intellij.codeInsight.highlighting.BraceMatchingUtil;
|
||||
import com.intellij.ide.highlighter.HighlighterFactory;
|
||||
@@ -73,7 +74,7 @@ public class HtmlSelectioner extends AbstractWordSelectioner {
|
||||
result = super.select(e, editorText, cursorOffset, editor);
|
||||
}
|
||||
else {
|
||||
result = new ArrayList<TextRange>();
|
||||
result = Lists.newArrayList();
|
||||
}
|
||||
|
||||
if (ourStyleSelectioner != null) {
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<orderEntry type="library" name="XmlBeans" level="project" />
|
||||
<orderEntry type="module" module-name="platform-resources" />
|
||||
<orderEntry type="module" module-name="vcs-api" />
|
||||
<orderEntry type="library" name="Guava" level="project" />
|
||||
</component>
|
||||
<component name="copyright">
|
||||
<Base>
|
||||
|
||||
Reference in New Issue
Block a user