Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
253,400
String () { return getId(); }
getMinorViewId
253,401
ProjectAbstractTreeStructureBase () { return myTestTreeStructure; }
createStructure
253,402
ProjectViewTree (@NotNull DefaultTreeModel treeModel) { return new MyProjectViewTree(treeModel); }
createTree
253,403
Icon () { return AllIcons.General.ProjectTab; }
getIcon
253,404
String () { return ""; }
getId
253,405
String () { return ""; }
getTitle
253,406
int () { return myWeight; }
getWeight
253,407
boolean () { return true; }
supportsManualOrder
253,408
void (PsiElement element, VirtualFile virtualFile, AbstractProjectViewPane pane) { Assert.assertNull(ProjectViewTestUtil.getVisiblePath(element, pane)); pane.select(element, virtualFile, true); PlatformTestUtil.waitWhileBusy(pane.getTree()); Assert.assertTrue(ProjectViewTestUtil.isExpanded(element, pane)); }
checkNavigateFromSourceBehaviour
253,409
AbstractProjectViewPane () { final TestProjectViewPSIPane pane = new TestProjectViewPSIPane(myProject, this, 9); pane.createComponent(); Disposer.register(this, pane); PlatformTestUtil.waitWhileBusy(pane.getTree()); return pane; }
createPane
253,410
boolean () { return myShowMembers; }
isShowMembers
253,411
boolean () { return myFlattenPackages; }
isFlattenPackages
253,412
boolean () { return myHideEmptyMiddlePackages; }
isHideEmptyMiddlePackages
253,413
boolean () { return myShowLibraryContents; }
isShowLibraryContents
253,414
boolean () { return myShowExcludedFiles; }
isShowExcludedFiles
253,415
void (boolean showMembers) { myShowMembers = showMembers; }
setShowMembers
253,416
boolean () { return myFlattenModules; }
isFlattenModules
253,417
void (boolean flattenModules) { myFlattenModules = flattenModules; }
setFlattenModules
253,418
NodeSortKey () { return mySortKey; }
getSortKey
253,419
void (NodeSortKey sortKey) { mySortKey = sortKey; }
setSortKey
253,420
void (boolean hideEmptyMiddlePackages) { myHideEmptyMiddlePackages = hideEmptyMiddlePackages; }
setHideEmptyMiddlePackages
253,421
void (boolean flattenPackages) { myFlattenPackages = flattenPackages; }
setFlattenPackages
253,422
void () { myShowExcludedFiles = false; }
hideExcludedFiles
253,423
void (boolean showLibraryContents) { myShowLibraryContents = showLibraryContents; }
setShowLibraryContents
253,424
void () { }
dispose
253,425
void (@NotNull Project project, @NotNull String ext, @NotNull String before, @NotNull String after, @NotNull Action action) { String fileName = "FTU." + ext; FileType fileType = FileTypeManager.getInstance().getFileTypeByFileName(fileName); FormatData data = extractFormatData(before); PsiFile file = PsiFileFactory.getI...
testFormatting
253,426
FormatData (@NotNull String before) { final String SELECTION_START = "<selection>"; final String SELECTION_END = "<selection/>"; int startOffset = before.indexOf(SELECTION_START); if (startOffset > 0) { int endOffset = before.indexOf(SELECTION_END) - SELECTION_START.length(); String text = before .replace(SELECTION_STA...
extractFormatData
253,427
void (PsiFile psiFile, int startOffset, int endOffset) { Project project = psiFile.getProject(); CodeStyleManager.getInstance(project).reformatText(psiFile, startOffset, endOffset); }
run
253,428
void (PsiFile psiFile, int startOffset, int endOffset) { Project project = psiFile.getProject(); CodeStyleManager.getInstance(project).adjustLineIndent(psiFile, startOffset); }
run
253,429
void (PsiFile psiFile, int startOffset, int endOffset) { FormattingService formattingService = FormattingServiceUtil.findService(psiFile, false, false); FormatTextRanges formatRanges = new FormatTextRanges(); formatRanges.add(new TextRange(startOffset, endOffset), true); formatRanges.setExtendToContext(true); formattin...
run
253,430
void (PsiFile psiFile, int startOffset, int endOffset) { List<TextRange> ranges = List.of(new TextRange(startOffset, endOffset)); Project project = psiFile.getProject(); CodeStyleManager.getInstance(project).reformatChanges(psiFile, new ChangedRangesInfo(ranges, ranges)); }
run
253,431
String () { return ""; }
getDisplayName
253,432
JComponent () { return new JPanel(); }
createComponent
253,433
boolean () { return !myDataTextField.equals(myConfiguration.getData()); }
isModified
253,434
String () { return myDataTextField; }
getDataTextField
253,435
void (final String dataTextField) { myDataTextField = dataTextField; }
setDataTextField
253,436
void () { myConfiguration.setData(myDataTextField); }
apply
253,437
void () { myDataTextField = myConfiguration.getData(); }
reset
253,438
void () { myDataTextField = null; }
disposeUIResources
253,439
AnotherMockFacetConfiguration () { return new AnotherMockFacetConfiguration(); }
createDefaultConfiguration
253,440
AnotherMockFacet (@NotNull Module module, final String name, @NotNull AnotherMockFacetConfiguration configuration, @Nullable Facet underlyingFacet) { return new AnotherMockFacet(module, name, configuration); }
createFacet
253,441
boolean () { return false; }
isOnlyOneFacetAllowed
253,442
boolean (final ModuleType moduleType) { return true; }
isSuitableModuleType
253,443
AnotherMockFacetType () { return findInstance(AnotherMockFacetType.class); }
getInstance
253,444
void () { myInitialized = true; }
initFacet
253,445
void () { myDisposed = true; }
disposeFacet
253,446
boolean () { return myConfigured; }
isConfigured
253,447
void () { myConfigured = true; }
configure
253,448
boolean () { return myInitialized; }
isInitialized
253,449
boolean () { return myDisposed; }
isDisposed
253,450
FacetEditorTab[] (final FacetEditorContext editorContext, final FacetValidatorsManager validatorsManager) { myEditor = new MockFacetEditorTab(this); return new FacetEditorTab[]{myEditor}; }
createEditorTabs
253,451
MockFacetEditorTab () { return myEditor; }
getEditor
253,452
void (VirtualFile root) { myRootUrls.add(root.getUrl()); }
addRoot
253,453
void (String url) { myRootUrls.add(url); }
addRoot
253,454
void (VirtualFile root) { myRootUrls.remove(root.getUrl()); }
removeRoot
253,455
void (final String data) { myData = data; }
setData
253,456
String () { return myData; }
getData
253,457
Collection<String> () { return myRootUrls; }
getRootUrls
253,458
FacetEditorTab[] (FacetEditorContext editorContext, FacetValidatorsManager validatorsManager) { return new FacetEditorTab[0]; }
createEditorTabs
253,459
AnotherFacetConfigProperties () { return myProperties; }
getState
253,460
void (@NotNull AnotherFacetConfigProperties properties) { myProperties = properties; }
loadState
253,461
MockFacetConfiguration () { return new MockFacetConfiguration(); }
createDefaultConfiguration
253,462
Facet (@NotNull Module module, final String name, @NotNull MockFacetConfiguration configuration, @Nullable Facet underlyingFacet) { return new Facet<>(this, module, name, configuration, underlyingFacet); }
createFacet
253,463
boolean (final ModuleType moduleType) { return true; }
isSuitableModuleType
253,464
boolean () { return false; }
isOnlyOneFacetAllowed
253,465
MockSubFacetType () { return findInstance(MockSubFacetType.class); }
getInstance
253,466
MockFacetConfiguration () { return new MockFacetConfiguration(); }
createDefaultConfiguration
253,467
MockFacet (@NotNull Module module, final String name, @NotNull MockFacetConfiguration configuration, @Nullable Facet underlyingFacet) { return new MockFacet(module, name, configuration); }
createFacet
253,468
boolean () { return false; }
isOnlyOneFacetAllowed
253,469
boolean (final ModuleType moduleType) { return true; }
isSuitableModuleType
253,470
MockFacetType () { return findInstance(MockFacetType.class); }
getInstance
253,471
void () { myInitialized = true; }
initFacet
253,472
void () { myDisposed = true; }
disposeFacet
253,473
boolean () { return myConfigured; }
isConfigured
253,474
void () { myConfigured = true; }
configure
253,475
boolean () { return myInitialized; }
isInitialized
253,476
boolean () { return myDisposed; }
isDisposed
253,477
void (VirtualFile root) { getConfiguration().addRoot(root); fireFacetChangedEvent(); }
addRoot
253,478
void () { FacetManager.getInstance(getModule()).facetConfigurationChanged(this); }
fireFacetChangedEvent
253,479
void (VirtualFile root) { getConfiguration().removeRoot(root); fireFacetChangedEvent(); }
removeRoot
253,480
Collection<VirtualFile> () { return ContainerUtil.mapNotNull(getConfiguration().getRootUrls(), VirtualFileManager.getInstance()::findFileByUrl); }
getFacetRoots
253,481
int () { return constructorCounter; }
getConstructorCounter
253,482
void (int constructorCounter) { MockFacet.constructorCounter = constructorCounter; }
setConstructorCounter
253,483
VirtualFile () { return myVirtualFile; }
getVirtualFile
253,484
boolean (final @NotNull PsiElementProcessor<? super PsiFileSystemItem> processor) { return true; }
processChildren
253,485
String () { return "mock.file"; }
getName
253,486
ItemPresentation () { return null; }
getPresentation
253,487
boolean () { return false; }
isDirectory
253,488
PsiDirectory () { return null; }
getContainingDirectory
253,489
PsiDirectory () { throw new UnsupportedOperationException("Method getParentDirectory is not yet implemented in " + getClass().getName()); }
getParentDirectory
253,490
long () { return myModStamp; }
getModificationStamp
253,491
PsiFile () { return this; }
getOriginalFile
253,492
FileType () { return StdFileTypes.JAVA; }
getFileType
253,493
Language () { return StdFileTypes.JAVA.getLanguage(); }
getLanguage
253,494
FileViewProvider () { return myFileViewProvider; }
getViewProvider
253,495
PsiManager () { return myPsiManager; }
getManager
253,496
PsiDirectory () { return null; }
getParent
253,497
PsiElement () { return null; }
getFirstChild
253,498
PsiElement () { return null; }
getLastChild
253,499
void (@NotNull PsiElementVisitor visitor) { }
acceptChildren