Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
271,000 | void () { VirtualFilePointer p1 = createPointer("a/p1"); createPointer("invalid/path"); VirtualFilePointer p2 = createPointer("b/p2"); VirtualFile root = myDir(); VirtualFileSystemEntry a = createChildDirectory(root, "a"); VirtualFileSystemEntry b = createChildDirectory(root, "b"); UsefulTestCase.assertSameElements(myV... | testUrlsHavingOnlyStartingSlashInCommonAndInvalidUrlBetweenThem |
271,001 | VirtualFileSystemEntry (VirtualFile root, String childName) { return (VirtualFileSystemEntry)HeavyPlatformTestCase.createChildDirectory(root, childName); } | createChildDirectory |
271,002 | void (@NotNull VirtualFileSystemEntry file, @NotNull String childName, VirtualFilePointer @NotNull ... pointers) { UsefulTestCase.assertSameElements(myVirtualFilePointerManager.getPointersUnder(file, childName), pointers); } | assertPointersUnder |
271,003 | VirtualFilePointer (@NotNull String relativePath) { return myVirtualFilePointerManager.create(myDir().getUrl()+"/"+relativePath, disposable, null); } | createPointer |
271,004 | VirtualFilePointer (@NotNull String relativePath) { return myVirtualFilePointerManager.createDirectoryPointer(myDir().getUrl()+"/"+relativePath, true, disposable, new VirtualFilePointerListener() { }); } | createRecursivePointer |
271,005 | VirtualFile () { return tempDir.getVirtualFileRoot(); } | myDir |
271,006 | void () { String path = "$KOTLIN_BUNDLED$/lib/allopen-compiler-plugin.jar!/"; VirtualFilePointer pointer = myVirtualFilePointerManager.create("jar://" + path, disposable, null); assertTrue(pointer.getUrl(), pointer.getUrl().endsWith(path)); assertEquals("allopen-compiler-plugin.jar", pointer.getFileName()); } | testIncorrectRelativeUrlMustNotCrashVirtualPointers |
271,007 | void () { File root = tempDir.getRoot(); while (root.getParentFile() != null) root = root.getParentFile(); String diskRoot = UriUtil.trimTrailingSlashes(FileUtil.toSystemIndependentName(root.getPath())); assertJarSeparatorParsedCorrectlyForFileInsideJar("/", "!/", null, "_"); assertJarSeparatorParsedCorrectlyForFileIns... | testJarUrlContainingInvalidExclamationInTheMiddleMustNotCrashAnything |
271,008 | void (@NotNull String relativePathInsideJar, @NotNull String expectedPointerRelativeUrl, @Nullable String expectedPointerFileName, @NotNull String expectedPathInsideJar) { String abc = "abc" + new SecureRandom().nextLong()+".jar"; String tempRoot = UriUtil.trimTrailingSlashes(FileUtil.toSystemIndependentName(tempDir.ge... | assertJarSeparatorParsedCorrectlyForFileInsideJar |
271,009 | void (@NotNull String sourceUrl, @NotNull String expectedPointerUrl, @NotNull String expectedPointerFileName) { VirtualFilePointer pointer = VirtualFilePointerManager.getInstance().create(sourceUrl, disposable, null); assertEquals(expectedPointerUrl, pointer.getUrl()); assertEquals(expectedPointerFileName, pointer.getF... | assertJarSeparatorParsedCorrectly |
271,010 | void () { myJarFS.clearHandlersCache(); } | tearDown |
271,011 | void () { VirtualFile file = VirtualFileManager.getInstance().findFileByUrl("http://www.jetbrains.com/"); assertNotNull(file); assertNotNull(PsiManager.getInstance(getProject()).findFile(file)); } | testPsiFileForRoot |
271,012 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(PathUtil.getParentPath(root), true); assertThat(paths).isEmpty(); } | flatRootReportedExactlyViaParent |
271,013 | void () { String root = FILE_ROOT; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(root, true); assertThat(paths).containsExactly(root); } | flatRootReportedExactlyViaItself |
271,014 | void () { String root = DIR_ROOT; String child = root + CHILD_FILE; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(child, true); assertThat(paths).containsExactly(child); } | flatRootReportedExactlyViaChild |
271,015 | void () { String root = FILE_ROOT; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(PathUtil.getParentPath(root), false); assertThat(paths).containsExactly(root); } | flatRootReportedInexactlyViaParent |
271,016 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(root, false); assertThat(paths).containsExactly(root); } | flatRootReportedInexactlyViaItself |
271,017 | void () { String root = DIR_ROOT; String child = root + CHILD_DIR; CanonicalPathMap map = createCanonicalPathMap(emptyList(), singletonList(root)); Collection<String> paths = map.mapToOriginalWatchRoots(child, false); assertThat(paths).isEmpty(); } | flatRootReportedInexactlyViaChild |
271,018 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(PathUtil.getParentPath(root), true); assertThat(paths).isEmpty(); } | recursiveRootReportedExactlyViaParent |
271,019 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(root, true); assertThat(paths).containsExactly(root); } | recursiveRootReportedExactlyViaItself |
271,020 | void () { String root = DIR_ROOT; String child = root + CHILD_FILE; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(child, true); assertThat(paths).containsExactly(child); } | recursiveRootReportedExactlyViaChild |
271,021 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(PathUtil.getParentPath(root), false); assertThat(paths).containsExactly(root); } | recursiveRootReportedInexactlyViaParent |
271,022 | void () { String root = DIR_ROOT; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(root, false); assertThat(paths).containsExactly(root); } | recursiveRootReportedInexactlyViaItself |
271,023 | void () { String root = DIR_ROOT; String child = root + CHILD_DIR; CanonicalPathMap map = createCanonicalPathMap(singletonList(root), emptyList()); Collection<String> paths = map.mapToOriginalWatchRoots(child, false); assertThat(paths).containsExactly(child); } | recursiveRootReportedInexactlyViaChild |
271,024 | void () { assumeSymLinkCreationIsSupported(); // Tests the situation where the watch root is a symlink AND REMAPPED by the native file watcher. File realDir = tempDir.newDirectory("real"); File symLink = IoTestUtil.createSymLink(realDir.getPath(), tempDir.getRoot() + "/link"); File mappedDir = new File(tempDir.getRoot(... | remappedSymLinkReportsOriginalWatchedPath |
271,025 | void () { String root = DIR_ROOT + separatorChar + "sub", collidingRoot = root + "-dir", otherRoot = root + "XXX"; String probe = root + separatorChar + "file"; CanonicalPathMap map = createCanonicalPathMap(asList(root, collidingRoot, otherRoot), emptyList()); Collection<String> watched = map.mapToOriginalWatchRoots(pr... | partialMatchCollision |
271,026 | CanonicalPathMap (Collection<String> recursive, Collection<String> flat) { NavigableSet<String> recursiveSet = StreamEx.of(recursive).into(WatchRootsUtil.createFileNavigableSet()); NavigableSet<String> flatSet = StreamEx.of(flat).into(WatchRootsUtil.createFileNavigableSet()); CanonicalPathMap pathMap = new CanonicalPat... | createCanonicalPathMap |
271,027 | void () { OverrideFileTypeManager manager = OverrideFileTypeManager.getInstance(); VirtualFile xml = myFixture.getTempDirFixture().createFile("test.xml"); FileType originalType = xml.getFileType(); assertEquals(StdFileTypes.XML, originalType); manager.addFile(xml, PlainTextFileType.INSTANCE); UIUtil.dispatchAllInvocati... | testMarkAsPlainText |
271,028 | void () { init(""" line1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" line1 li<caret>ne2 li<caret>ne3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); // hitting document bottom checkResultByText(""" line1 li<caret>ne2 ... | testUpDown |
271,029 | void () { init(""" line1 line2 line3 line4 line<caret>5 line6 line7"""); setEditorVisibleSize(1000, 3); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_UP_WITH_SELECTION); checkResultByText(""" line1 line<caret>2 line<caret>3 line<caret>4 line<caret>5 line6 line7"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_... | testPageUpDown |
271,030 | void () { init(""" line1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT_WITH_SELECTION); checkResultByText(""" line1 li<selection>n<caret></selection>e2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" line1 li<selection>n<caret></... | testSelectionWithKeyboard |
271,031 | void () { init("aaa aaa<caret>\n" + "bbbb bbbb"); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); moveCaretToPreviousWordWithSelection(); checkResultByText("aaa <selection><caret>aaa</selection>\n" + "bbbb <selection><caret>bb</selection>bb"); moveCaretToNextWordWithSelection(); checkResultByTex... | testSelectNextPrevWord |
271,032 | void () { init("a"); mouse().pressAt(0, 2).dragTo(0, 4).release(); verifyCaretsAndSelections(0, 4, 2, 4); left(); verifyCaretsAndSelections(0, 2, 2, 2); } | testMoveToSelectionStart |
271,033 | void () { init("a"); mouse().pressAt(0, 4).dragTo(0, 2).release(); verifyCaretsAndSelections(0, 2, 2, 4); right(); verifyCaretsAndSelections(0, 4, 4, 4); } | testMoveToSelectionEnd |
271,034 | void () { init("a"); mouse().pressAt(0, 4).dragTo(0, 3).release(); verifyCaretsAndSelections(0, 3, 3, 4); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT_WITH_SELECTION); verifyCaretsAndSelections(0, 4, 4, 4); } | testReverseBlockSelection |
271,035 | void () { init("\n\n"); mouse().clickAt(1, 1); verifyCaretsAndSelections(1, 1, 1, 1); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT_WITH_SELECTION); verifyCaretsAndSelections(1, 2, 1, 2); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); verifyCaretsAndSelections(1, 2, 1, 2, 2, 2, 1, 2);... | testSelectionWithKeyboardInEmptySpace |
271,036 | void () { init(""" a bbb ccccc"""); mouse().pressAt(2, 4).dragTo(0, 1).release(); verifyCaretsAndSelections(0, 1, 1, 4, 1, 1, 1, 4, 2, 1, 1, 4); } | testBlockSelection |
271,037 | void () { init(""" a bbb ccccc"""); mouse().pressAt(0, 2).dragTo(2, 3).release(); type('S'); checkResultByText(""" a S<caret> bbS<caret> ccS<caret>cc"""); } | testTyping |
271,038 | void () { init(""" a bbb ccccc"""); mouse().pressAt(0, 2).dragTo(2, 4).release(); copy(); home(); paste(); checkResultByText(""" <caret>a b <caret>bbb cc<caret>ccccc"""); } | testCopyPasteOfShortLines |
271,039 | void () { init(""" a bbb ccccc"""); mouse().pressAt(1, 2).dragTo(2, 4).release(); copy(); mouse().clickAt(0, 2); paste(); checkResultByText(""" a b <caret> bbcc<caret>b ccccc"""); } | testPasteOfBlockToASingleCaret |
271,040 | void () { init(""" a bbb ccccc"""); ((EditorEx)getEditor()).setColumnMode(false); mouse().pressAt(0, 0).dragTo(1, 1).release(); copy(); ((EditorEx)getEditor()).setColumnMode(true); mouse().clickAt(1, 0); paste(); checkResultByText(""" a a<caret>bbb b<caret>ccccc"""); } | testPasteOfSeveralLinesCopiedFromIdeaToASingleCaret |
271,041 | void () { init(""" line1 line2 line3 line4"""); mouse().pressAt(1, 1).dragTo(2, 2).release(); executeAction(IdeActions.ACTION_EDITOR_TEXT_START_WITH_SELECTION); checkResultByText(""" <selection><caret>l</selection>ine1 <selection><caret>l</selection>ine2 line3 line4"""); } | testSelectToDocumentStart |
271,042 | void () { init(""" line1 line2 line3 line4"""); mouse().pressAt(1, 1).dragTo(2, 2).release(); executeAction(IdeActions.ACTION_EDITOR_TEXT_END_WITH_SELECTION); checkResultByText(""" line1 l<selection>ine2<caret></selection> l<selection>ine3<caret></selection> l<selection>ine4<caret></selection>"""); } | testSelectToDocumentEnd |
271,043 | void () { init(""" aaaaa bbbbb cccccccccc"""); ((EditorEx)getEditor()).setColumnMode(true); mouse().clickAt(1, 2); checkResultByText(""" aaaaa bb<caret>bbb cccccccccc"""); mouse().shift().clickAt(2, 5); checkResultByText(""" aaaaa bb<selection>bbb<caret></selection> cc<selection>ccc<caret></selection>ccccc"""); mouse()... | testSelectColumnsUsingShift |
271,044 | void () { init(""" a BBB ccccc"""); mouse().pressAt(1, 2).dragTo(2, 4).release(); executeAction("EditorToggleCase"); checkResultByText(""" a BBb ccccc"""); verifyCaretsAndSelections(1, 4, 2, 4, 2, 4, 2, 4); } | testToggleCaseToLower |
271,045 | void () { init(""" a BBb ccccc"""); mouse().pressAt(1, 2).dragTo(2, 4).release(); executeAction("EditorToggleCase"); checkResultByText(""" a BBB ccCCc"""); verifyCaretsAndSelections(1, 4, 2, 4, 2, 4, 2, 4); } | testToggleCaseToUpper |
271,046 | void () { init(""" <caret> <caret> """); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" <caret> <caret> <caret> <caret> """); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" <caret> <caret> <caret> <caret> <caret>"""); executeA... | testSeparatedCarets |
271,047 | void () { init("abc\nabc\n<caret>abc\nabc\nabc"); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_PAGE_DOWN_WITH_SELECTION); checkResultByText("abc\nabc\n<caret>abc\n<caret>abc\n<caret>abc"); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_UP_WITH_SELECTION); checkResultByText("abc\nabc\n<caret>abc\n<caret>abc\nabc... | testPageMovementsInteroperateWithLineMovements |
271,048 | void () { init(""" ab<caret>c ab<caret> a"""); executeAction(IdeActions.ACTION_EDITOR_DELETE); checkResultByText(""" ab<caret> ab<caret> a"""); } | testDeleteForShorterAndLongerLines |
271,049 | void (String text) { configureFromFileText(getTestName(false) + ".txt", text); setEditorVisibleSize(1000, 1000); ((EditorEx)getEditor()).setColumnMode(true); } | init |
271,050 | void () { initText(StringUtil.repeat("\nLorem ipsum", 10_000)); TextAttributes attributes = new TextAttributes(Color.red, null, null, null, Font.PLAIN); for (int offset = 0; offset < getEditor().getDocument().getTextLength(); offset++) { getEditor().getMarkupModel().addRangeHighlighter(offset, offset + 1, 0, attributes... | testEditingWithALotOfHighlighters |
271,051 | void () { initText(StringUtil.repeat(LOREM_IPSUM + '\n', 15000)); doTestScrollingPerformance("scrolling through text file with many lines", 2600); } | testScrollingThroughLongTextFile |
271,052 | void () { initText(StringUtil.repeat(LOREM_IPSUM + ' ', 15000)); EditorTestUtil.configureSoftWraps(getEditor(), EDITOR_WIDTH_PX, TEST_CHAR_WIDTH); doTestScrollingPerformance("scrolling through long soft wrapped line", 2500); } | testScrollingThroughLongSoftWrappedLine |
271,053 | void (String message, int expectedMs) { EditorImpl editor = (EditorImpl)getEditor(); int editorHeight = editor.getPreferredHeight(); int[] result = {0}; PlatformTestUtil.startPerformanceTest(message, expectedMs, () -> { for (int y = 0; y < editorHeight; y += 1000) { Rectangle clip = new Rectangle(0, y, EDITOR_WIDTH_PX,... | doTestScrollingPerformance |
271,054 | void () { new RunAll( () -> JBUIScale.setUserScaleFactorForTest(oldUserScaleFactor), () -> FontLayoutService.setInstance(null), () -> super.tearDown() ).run(); } | tearDown |
271,055 | String () { return getTestName(true) + ".png"; } | getFileName |
271,056 | void (@NotNull TextAttributes attributes) { ((EditorEx)getEditor()).setHighlighter(new UniformHighlighter(attributes)); } | setUniformEditorHighlighter |
271,057 | RangeHighlighter (int startOffset, int endOffset, int layer, Color foregroundColor, Color backgroundColor) { return addRangeHighlighter(startOffset, endOffset, layer, new TextAttributes(foregroundColor, backgroundColor, null, null, Font.PLAIN)); } | addRangeHighlighter |
271,058 | RangeHighlighter (int startOffset, int endOffset, int layer, Color foregroundColor, Color backgroundColor) { return addLineHighlighter(startOffset, endOffset, layer, new TextAttributes(foregroundColor, backgroundColor, null, null, Font.PLAIN)); } | addLineHighlighter |
271,059 | RangeHighlighter (int startOffset, int endOffset, int layer, TextAttributes textAttributes) { return getEditor().getMarkupModel().addRangeHighlighter(startOffset, endOffset, layer, textAttributes, HighlighterTargetArea.EXACT_RANGE); } | addRangeHighlighter |
271,060 | RangeHighlighter (int startOffset, int endOffset, int layer, TextAttributes textAttributes) { return getEditor().getMarkupModel().addRangeHighlighter(startOffset, endOffset, layer, textAttributes, HighlighterTargetArea.LINES_IN_RANGE); } | addLineHighlighter |
271,061 | RangeHighlighter (int startOffset, int endOffset, int layer, Color borderColor) { return addRangeHighlighter(startOffset, endOffset, layer, new TextAttributes(null, null, borderColor, EffectType.BOXED, Font.PLAIN)); } | addBorderHighlighter |
271,062 | void (int charCountToWrapAt, boolean useCustomSoftWrapIndent) { int charWidthInPixels = BitmapFont.CHAR_WIDTH; // we're adding 1 to charCountToWrapAt, to account for wrap character width, and 1 to overall width to overcome wrapping logic subtleties EditorTestUtil.configureSoftWraps(getEditor(), (charCountToWrapAt + 1) ... | configureSoftWraps |
271,063 | int (@NotNull Graphics g, @NotNull SoftWrapDrawingType drawingType, int x, int y, int lineHeight) { g.setColor(getEditor().getColorsScheme().getDefaultForeground()); int xStart = x + charWidthInPixels / 4; int xEnd = x + charWidthInPixels * 3 / 4; int yStart = y + lineHeight / 4; int yEnd = y + lineHeight * 3 / 4; swit... | paint |
271,064 | int (@NotNull Graphics g, @NotNull SoftWrapDrawingType drawingType, int x, int y, int lineHeight) { return charWidthInPixels; } | getDrawingHorizontalOffset |
271,065 | int (@NotNull SoftWrapDrawingType drawingType) { return charWidthInPixels; } | getMinDrawingWidth |
271,066 | boolean () { return true; } | canUse |
271,067 | void () { } | reinit |
271,068 | File (boolean bold) { return getTestDataFile(TEST_DATA_PATH, bold ? "_fontBold.png" : "_font.png"); } | getFontFile |
271,069 | File (@NotNull String directory, @NotNull String fileName) { return new File(PathManagerEx.findFileUnderCommunityHome(directory), fileName); } | getTestDataFile |
271,070 | String () { return TEST_DATA_PATH; } | getTestDataPath |
271,071 | BufferedImage (int width, int height) { //noinspection UndesirableClassUsage return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); } | createImageForPainting |
271,072 | Graphics () { return new MyGraphics((Graphics2D)myDelegate.create(), myPlainFont, myBoldFont); } | create |
271,073 | void (GlyphVector g, float x, float y) { for (int i = 0; i < g.getNumGlyphs(); i++) { drawChar((char)g.getGlyphCode(i),(int)x, (int)y); x += BitmapFont.CHAR_WIDTH; } } | drawGlyphVector |
271,074 | void (char[] data, int offset, int length, int x, int y) { for (int i = offset; i < offset + length; i++) { drawChar(data[i], x, y); x += BitmapFont.CHAR_WIDTH; } } | drawChars |
271,075 | void (String str, float x, float y) { for (int i = 0; i < str.length(); i++) { drawChar(str.charAt(i), (int)x, (int)y); x += BitmapFont.CHAR_WIDTH; } } | drawString |
271,076 | void (String str, int x, int y) { drawString(str, (float)x, (float)y); } | drawString |
271,077 | void (char c, int x, int y) { (StringUtil.containsIgnoreCase(getFont().getFontName(), "bold") ? myBoldFont : myPlainFont).draw(myDelegate, c, x, y); } | drawChar |
271,078 | BitmapFont (Font font) { font = font.deriveFont(FONT_SIZE); int imageWidth = CHAR_WIDTH * NUM_CHARACTERS; //noinspection UndesirableClassUsage BufferedImage image = new BufferedImage(imageWidth, CHAR_HEIGHT, BufferedImage.TYPE_BYTE_BINARY); Graphics2D g = image.createGraphics(); g.setColor(Color.white); g.fillRect(0, 0... | createFromFont |
271,079 | void (Graphics2D g, char c, int x, int y) { if (c >= NUM_CHARACTERS) return; for (int i = 0; i < CHAR_HEIGHT; i++) { for (int j = 0; j < CHAR_WIDTH; j++) { if (myImage.getRGB(j + c * CHAR_WIDTH, i) == 0xFF000000) { g.fillRect(x + j, y + i - CHAR_HEIGHT + CHAR_DESCENT, 1, 1); } } } } | draw |
271,080 | HighlighterIterator (int startOffset) { return new UniformHighlighter.Iterator(startOffset); } | createIterator |
271,081 | void (@NotNull HighlighterClient editor) { myDocument = editor.getDocument(); } | setEditor |
271,082 | TextAttributes () { return myAttributes; } | getTextAttributes |
271,083 | int () { return myOffset; } | getStart |
271,084 | int () { return myDocument.getTextLength(); } | getEnd |
271,085 | IElementType () { return null; } | getTokenType |
271,086 | void () { myOffset = myDocument.getTextLength(); } | advance |
271,087 | void () { myOffset = 0; } | retreat |
271,088 | boolean () { return myOffset == myDocument.getTextLength(); } | atEnd |
271,089 | Document () { return myDocument; } | getDocument |
271,090 | int (@NotNull Inlay inlay) { return 10; } | calcWidthInPixels |
271,091 | void (@NotNull Inlay inlay, @NotNull Graphics g, @NotNull Rectangle r, @NotNull TextAttributes textAttributes) { g.setColor(JBColor.CYAN); g.drawRect(r.x, r.y, r.width - 1, r.height - 1); } | paint |
271,092 | Dimension () { return new Dimension(0, 0); } | getPreferredSize |
271,093 | void () { configureFromFileText(getTestName(false) + ".txt", "text <caret>"); WriteCommandAction.runWriteCommandAction(getProject(), () -> { EditorModificationUtil.insertStringAtCaret(getEditor(), " ", false, false); }); checkResultByText("text <caret> "); } | testInsertStringAtCaretNotMovingCaret |
271,094 | void () { initText("some <selection>t<caret>ext</selection>\n" + "another line"); mouse().alt().shift().clickAt(1, 1); // alt-shift-click in a 'free space' checkResultByText("some <selection>t<caret>ext</selection>\n" + "a<caret>nother line"); mouse().alt().shift().clickAt(0, 8); // alt-shift-click in existing selectio... | testCaretAddingAndRemoval |
271,095 | void () { initText(""" <caret>line long line very long line long line line"""); setEditorVisibleSize(1000, 1000); EditorMouseFixture mouse = mouse(); mouse.alt().pressAt(1, 6); checkResultByText(""" line long l<caret>ine very long line long line line"""); mouse.dragTo(4, 6); // still holding Alt checkResultByText(""" l... | testAltDragStartingFromWithinLine |
271,096 | void () { initText(""" <caret>line long line very long line long line line"""); setEditorVisibleSize(1000, 1000); EditorMouseFixture mouse = mouse(); mouse.middle().pressAt(1, 17); checkResultByText(""" line long line<caret> very long line long line line"""); mouse.dragTo(2, 16); checkResultByText(""" line long line<ca... | testMiddleButtonDragStartingFromVirtualSpace |
271,097 | void () { initText(""" line1 line2 line3"""); setEditorVisibleSize(1000, 1000); EditorMouseFixture mouse = mouse(); mouse.pressAt(0, 1).dragTo(1, 2); checkResultByText(""" l<selection>ine1 li<caret></selection>ne2 line3"""); mouse.alt().dragTo(1, 3); checkResultByText(""" l<selection>in<caret></selection>e1 l<selection... | testAltOnOffWhileDragging |
271,098 | void () { initText(""" some<caret> text<caret> some <selection><caret>other</selection> <selection>text<caret></selection> <selection>ano<caret>ther</selection> line"""); type('A'); checkResultByText(""" someA<caret> textA<caret> some A<caret> A<caret> A<caret> line"""); } | testTyping |
271,099 | void () { initText("<selection><caret>one</selection> two \n" + "<selection><caret>three</selection> four "); executeAction("EditorCopy"); executeAction("EditorLineEnd"); executeAction("EditorPaste"); checkResultByText("one twoone<caret> \n" + "three fourthree<caret> "); } | testCopyPaste |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.