Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
26,000 | String () { return myInvalidJdk; } | getInvalidJdk |
26,001 | void (String name) { myKnownCons.add(name); } | registerCon |
26,002 | String[] () { return ArrayUtilRt.toStringArray(myKnownCons); } | getUsedCons |
26,003 | CachedXmlDocumentSet () { return myDocumentSet; } | getDocumentSet |
26,004 | void (@Nullable CachedXmlDocumentSet documentSet) { myDocumentSet = documentSet; } | setDocumentSet |
26,005 | void (String path, String var) { myEclipseVariablePaths.put(path, var); } | registerEclipseVariablePath |
26,006 | void (String path, String var) { myEclipseVariablePaths.put(SRC_PREFIX + path, var); } | registerEclipseSrcVariablePath |
26,007 | void (String path, String var) { myEclipseVariablePaths.put(SRC_LINK_PREFIX + path, var); } | registerEclipseLinkedSrcVarPath |
26,008 | String (String path) { return myEclipseVariablePaths.get(SRC_LINK_PREFIX + path); } | getEclipseLinkedSrcVariablePath |
26,009 | void (String path, String var) { myEclipseVariablePaths.put(LINK_PREFIX + path, var); } | registerEclipseLinkedVarPath |
26,010 | String (String path) { return myEclipseVariablePaths.get(LINK_PREFIX + path); } | getEclipseLinkedVarPath |
26,011 | String (String path) { return myEclipseVariablePaths.get(path); } | getEclipseVariablePath |
26,012 | String (String path) { return myEclipseVariablePaths.get(SRC_PREFIX + path); } | getEclipseSrcVariablePath |
26,013 | void (String con) { myUnknownCons.add(con); } | registerUnknownCons |
26,014 | Set<String> () { return myUnknownCons; } | getUnknownCons |
26,015 | boolean () { return myForceConfigureJDK; } | isForceConfigureJDK |
26,016 | void () { myForceConfigureJDK = true; myExpectedModuleSourcePlace++; } | setForceConfigureJDK |
26,017 | void (String url) { myEclipseUrls.add(url); } | registerEclipseLibUrl |
26,018 | boolean (String url) { return myEclipseUrls.contains(url); } | isEclipseLibUrl |
26,019 | Resolution (@NotNull Storage storage, @NotNull StateStorageOperation operation) { if (operation == StateStorageOperation.READ) { return Resolution.DO; } if (isEclipseStorage(myModule) || (myEclipseUrls.isEmpty() && myEclipseVariablePaths.isEmpty() && !myForceConfigureJDK && myUnknownCons.isEmpty())) { return Resolution... | getResolution |
26,020 | Element () { Element root = new Element("EclipseModuleSettings"); for (String eclipseUrl : myEclipseUrls) { root.addContent(new Element(LIBELEMENT).setAttribute(VALUE_ATTR, eclipseUrl)); } for (String var : myEclipseVariablePaths.keySet()) { Element varElement = new Element(VARELEMENT); if (var.startsWith(SRC_PREFIX)) ... | getState |
26,021 | void (@NotNull Element state) { myEclipseUrls.clear(); myEclipseVariablePaths.clear(); myUnknownCons.clear(); mySrcPlace.clear(); myKnownCons.clear(); for (Element o : state.getChildren(LIBELEMENT)) { myEclipseUrls.add(o.getAttributeValue(VALUE_ATTR)); } for (Element o : state.getChildren(VARELEMENT)) { myEclipseVariab... | loadState |
26,022 | void (int expectedModuleSourcePlace) { myExpectedModuleSourcePlace = expectedModuleSourcePlace; } | setExpectedModuleSourcePlace |
26,023 | boolean (int expectedPlace) { return myExpectedModuleSourcePlace == expectedPlace; } | isExpectedModuleSourcePlace |
26,024 | void (String srcUrl, int placeIdx) { mySrcPlace.put(srcUrl, placeIdx); } | registerSrcPlace |
26,025 | int (String srcUtl) { Integer v = mySrcPlace.get(srcUtl); return v == null ? -1 : v; } | getSrcPlace |
26,026 | String (@NotNull String name) { return nameToDir.get(name); } | getParent |
26,027 | void (@NotNull String name, @NotNull String path) { nameToDir.put(name, path); } | register |
26,028 | void (@NotNull String name) { nameToDir.remove(name); } | unregister |
26,029 | boolean (@NotNull String name) { return getFile(name, false) != null; } | exists |
26,030 | void (Consumer<? super List<String>> onFinish) { AppJavaExecutorUtil.executeOnPooledIoThread(() -> { try { RecentProjectsManagerBase manager = (RecentProjectsManagerBase)RecentProjectsManager.getInstance(); @Nls String groupName = EclipseBundle.message("eclipse.projects"); ProjectGroup group = ContainerUtil.find(manage... | detectProjects |
26,031 | void (@Nullable ProjectGroup projectGroup) { if (projectGroup != null && EclipseBundle.message("eclipse.projects").equals(projectGroup.getName())) { EclipseProjectDetectorUsagesCollector.logProjectOpened(false); } } | logRecentProjectOpened |
26,032 | void (List<String> projects, Path path) { File file = path.toFile(); if (!file.exists()) return; try { String prefs = FileUtil.loadFile(file); String[] workspaces = getWorkspaces(prefs); for (String workspace : workspaces) { scanForProjects(workspace, projects); } } catch (IOException ignore) { } } | collectProjects |
26,033 | void (String workspace, List<String> projects) { if (isInSpecialMacFolder(workspace)) { return; } File[] files = new File(workspace).listFiles(); if (files == null) { return; } for (File file : files) { if (isInSpecialMacFolder(file.getPath())) { continue; } String[] list = file.list(); if (list != null && ContainerUti... | scanForProjects |
26,034 | boolean (String file) { if (!SystemInfo.isMac) return false; if (FileSystemUtil.isSymLink(file)) { return true; } String home = System.getProperty("user.home"); Path path = Path.of(file); return path.startsWith(Path.of(home, "Documents")) || path.startsWith(Path.of(home, "Pictures")) || path.startsWith(Path.of(home, "D... | isInSpecialMacFolder |
26,035 | void (File file, Consumer<File> processor, int depth) { if (depth == 0 || isInSpecialMacFolder(file.getPath())) return; processor.accept(file); File[] files = file.listFiles(pathname -> !pathname.getName().startsWith(".")); if (files == null) return; for (File child : files) { visitFiles( child, processor, depth - 1); ... | visitFiles |
26,036 | void () { EclipseProjectDetectorUsagesCollector.logProjectOpened(true); } | projectOpened |
26,037 | void (@NotNull final AnActionEvent e) { e.getPresentation().setEnabled(e.getProject() != null); } | update |
26,038 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
26,039 | void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); // to flush iml files if (project == null) { return; } project.save(); List<Module> modules = new SmartList<>(); List<Module> incompatibleModules = new SmartList<>(); for (Module module : ModuleManager.getInstance(project).getModules... | actionPerformed |
26,040 | void (ActionEvent e) { myUserLibrariesTF.setEnabled(myExportProjectLibrariesCb.isSelected()); myPathToUserLibsLabel.setEnabled(myExportProjectLibrariesCb.isSelected()); } | actionPerformed |
26,041 | JComponent () { return contentPane; } | createCenterPanel |
26,042 | void () { moduleChooser = new ElementsChooser<>(true) { @Override protected String getItemText(@NotNull final Module module) { return module.getName(); } }; } | createUIComponents |
26,043 | String (@NotNull final Module module) { return module.getName(); } | getItemText |
26,044 | boolean () { return linkCheckBox.isSelected(); } | isLink |
26,045 | List<Module> () { return moduleChooser.getMarkedElements(); } | getSelectedModules |
26,046 | File () { return myExportProjectLibrariesCb.isSelected() ? new File(myUserLibrariesTF.getText()) : null; } | getUserLibrariesFile |
26,047 | void (final Library library, final Element libElement) { final VirtualFile[] files = library.getFiles(OrderRootType.CLASSES); for (VirtualFile file : files) { Element archElement = new Element("archive"); if (file.getFileSystem() instanceof JarFileSystem) { final VirtualFile localFile = JarFileSystem.getInstance().getV... | writeUserLibrary |
26,048 | void (@NotNull ModifiableRootModel model) { myContentEntry = model.addContentEntry(pathToUrl(myRootPath)); } | init |
26,049 | void (Set<? super String> usedVariables, Element classpathElement, final String rootPath) { for (Element element : classpathElement.getChildren(EclipseXml.CLASSPATHENTRY_TAG)) { String path = element.getAttributeValue(EclipseXml.PATH_ATTR); if (path == null) { continue; } String kind = element.getAttributeValue(Eclipse... | collectVariables |
26,050 | int (ModifiableRootModel rootModel) { return rearrangeOrderEntryOfType(rootModel, ModuleSourceOrderEntry.class); } | rearrange |
26,051 | String (ModifiableRootModel rootModel, String path) { final VirtualFile contentRoot = myContentEntry.getFile(); if (contentRoot != null) { return EPathUtil.expandEclipsePath2Url(path, rootModel, myCurrentRoots, contentRoot); } return EPathUtil.expandEclipsePath2Url(path, rootModel, myCurrentRoots); } | expandEclipsePath2Url |
26,052 | Set<String> () { return EclipseNatureImporter.getAllDefinedCons(); } | getDefinedCons |
26,053 | void (ModifiableRootModel rootModel, Element element, boolean exported, String libName, String url, String srcUrl, String nativeRoot, ExpandMacroToPathMap macroMap) { final Library library = rootModel.getModuleLibraryTable().getModifiableModel().createLibrary(libName); final Library.ModifiableModel modifiableModel = li... | addModuleLibrary |
26,054 | void (ModifiableRootModel rootModel, String junitName, ExpandMacroToPathMap macroMap) { final Library library = rootModel.getModuleLibraryTable().getModifiableModel().createLibrary(junitName); final Library.ModifiableModel modifiableModel = library.getModifiableModel(); modifiableModel.addRoot(getJunitClsUrl(junitName.... | addJUnitDefaultLib |
26,055 | void (ModifiableRootModel rootModel, String srcUrl, boolean testFolder) { myContentEntry.addSourceFolder(srcUrl, testFolder); } | addSourceFolderToCurrentContentRoot |
26,056 | void (ModifiableRootModel rootModel, String srcUrl, boolean testFolder) { rootModel.addContentEntry(srcUrl).addSourceFolder(srcUrl, testFolder); } | addSourceFolder |
26,057 | void (ModifiableRootModel rootModel, Collection<? super String> unknownJdks, EclipseModuleManager eclipseModuleManager, String jdkName) { if (jdkName == null) { rootModel.inheritSdk(); } else { final Sdk moduleJdk = ProjectJdkTable.getInstance().findJdk(jdkName); if (moduleJdk != null) { rootModel.setSdk(moduleJdk); } ... | setUpModuleJdk |
26,058 | void (ModifiableRootModel rootModel, boolean exported, String moduleName) { rootModel.addInvalidModuleEntry(moduleName).setExported(exported); } | addInvalidModuleEntry |
26,059 | int (ModifiableRootModel rootModel, Class<? extends OrderEntry> orderEntryClass) { OrderEntry[] orderEntries = rootModel.getOrderEntries(); int moduleSourcesIdx = 0; for (OrderEntry orderEntry : orderEntries) { if (orderEntryClass.isAssignableFrom(orderEntry.getClass())) { break; } moduleSourcesIdx++; } orderEntries = ... | rearrangeOrderEntryOfType |
26,060 | void (ModifiableRootModel rootModel, final String path) { setOutputUrl(rootModel, path); } | setupOutput |
26,061 | void (@NotNull ModifiableRootModel rootModel, @NotNull @NonNls String path) { CompilerModuleExtension compilerModuleExtension = rootModel.getModuleExtension(CompilerModuleExtension.class); compilerModuleExtension.setCompilerOutputPath(pathToUrl(path)); compilerModuleExtension.inheritCompilerOutputPath(false); } | setOutputUrl |
26,062 | void (ModifiableRootModel rootModel, boolean exported, Library library) { for (OrderEntry orderEntry : rootModel.getOrderEntries()) { if (orderEntry instanceof LibraryOrderEntry && ((LibraryOrderEntry)orderEntry).isModuleLevel() && Comparing.equal(((LibraryOrderEntry)orderEntry).getLibrary(), library)) { ((LibraryOrder... | setLibraryEntryExported |
26,063 | void (final ModifiableRootModel rootModel, final Collection<? super String> unknownLibraries, final boolean exported, final String name, final boolean applicationLevel) { Library lib = findLibraryByName(myProject, name); if (lib != null) { rootModel.addLibraryEntry(lib).setExported(exported); } else { unknownLibraries.... | addNamedLibrary |
26,064 | Library (Project project, String name) { final LibraryTablesRegistrar tablesRegistrar = LibraryTablesRegistrar.getInstance(); Library lib = tablesRegistrar.getLibraryTable().getLibraryByName(name); if (lib == null) { lib = tablesRegistrar.getLibraryTable(project).getLibraryByName(name); } if (lib == null) { for (Librar... | findLibraryByName |
26,065 | String (final boolean version4) { String url = version4 ? JavaSdkUtil.getJunit4JarPath() : JavaSdkUtil.getJunit3JarPath(); final VirtualFile localFile = VirtualFileManager.getInstance().findFileByUrl(pathToUrl(url)); if (localFile != null) { final VirtualFile jarFile = JarFileSystem.getInstance().getJarRootForLocalFile... | getJunitClsUrl |
26,066 | String (String url) { final VirtualFile localFile = VirtualFileManager.getInstance().findFileByUrl(url); if (localFile != null) { final VirtualFile jarFile = JarFileSystem.getInstance().getJarRootForLocalFile(localFile); if (jarFile != null) { return jarFile.getUrl(); } } return url; } | prepareValidUrlInsideJar |
26,067 | boolean (@NotNull Element root, @NotNull ModuleRootModel model) { boolean isModified = false; CompilerModuleExtension compilerModuleExtension = model.getModuleExtension(CompilerModuleExtension.class); if (compilerModuleExtension.getCompilerOutputUrlForTests() != null) { final Element pathElement = new Element(IdeaXml.O... | writeIdeaSpecificClasspath |
26,068 | void (Element element, String classesUrl, final String rootName, ModuleRootModel model) { VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(classesUrl); if (file == null) { return; } final Project project = model.getModule().getProject(); if (file.getFileSystem() instanceof JarFileSystem) { file = JarFi... | appendModuleRelatedRoot |
26,069 | boolean (Element element, String classesUrl, String rootName, VirtualFile file, Module module) { for (VirtualFile contentRoot : ModuleRootManager.getInstance(module).getContentRoots()) { if (VfsUtilCore.isAncestor(contentRoot, file, false)) { final Element clsElement = new Element(rootName); clsElement.setAttribute(PRO... | appendRelatedToModule |
26,070 | Element (@NotNull ModuleRootModel model) { Element classpathElement = new Element(EclipseXml.CLASSPATH_TAG); for (OrderEntry orderEntry : model.getOrderEntries()) { createClasspathEntry(orderEntry, classpathElement, model); } String outputPath = "bin"; final String compilerOutputUrl = model.getModuleExtension(CompilerM... | writeClasspath |
26,071 | Element (String kind, String path, Element classpathRoot) { return addOrderEntry(kind, path, classpathRoot, myOldEntries); } | addOrderEntry |
26,072 | Element (String kind, String path, Element classpathRoot, Map<String, Element> oldEntries) { return addOrderEntry(kind, path, classpathRoot, -1, oldEntries); } | addOrderEntry |
26,073 | Element (@NotNull String kind, String path, Element classpathRoot, int index, Map<String, Element> oldEntries) { Element element = getOldElement(kind, path, oldEntries); if (element != null) { Element clonedElement = element.clone(); if (index == -1 || index >= classpathRoot.getContentSize()) { classpathRoot.addContent... | addOrderEntry |
26,074 | Element (@NotNull String kind, String path, Map<String, Element> entries) { return entries.get(kind + getJREKey(path)); } | getOldElement |
26,075 | String (String path) { return path.startsWith(EclipseXml.JRE_CONTAINER) ? EclipseXml.JRE_CONTAINER : path; } | getJREKey |
26,076 | void (Element orderEntry, ExportableOrderEntry dependency) { setExported(orderEntry, dependency.isExported()); } | setExported |
26,077 | void (Element orderEntry, boolean exported) { setOrRemoveAttribute(orderEntry, EclipseXml.EXPORTED_ATTR, exported ? EclipseXml.TRUE_VALUE : null); } | setExported |
26,078 | void (@NotNull Element element, @NotNull String name, @Nullable String value) { if (value == null) { element.removeAttribute(name); } else { element.setAttribute(name, value); } } | setOrRemoveAttribute |
26,079 | void (@NotNull Element element, String name, String value) { if (element.getAttribute(name) == null) { element.setAttribute(name, value); } } | setAttributeIfAbsent |
26,080 | void (Element element, ModuleRootModel model, final List<String> currentRoots, Library.ModifiableModel modifiableModel) { final Element attributes = element.getChild("attributes"); if (attributes == null) { return; } for (Element attribute : attributes.getChildren("attribute")) { if (Comparing.strEqual(attribute.getAtt... | appendJavadocRoots |
26,081 | String (ModuleRootModel model, String javadocPath, List<String> currentRoots) { if (javadocPath.startsWith(FILE_PROTOCOL)) { if (new File(javadocPath.substring(FILE_PROTOCOL.length())).exists()) { return VfsUtilCore.pathToUrl(javadocPath.substring(FILE_PROTOCOL.length())); } } else { final String protocol = VirtualFile... | toIdeaJavadocUrl |
26,082 | String (@Nullable String relativeToModulePathWithJarSuffix) { String relativeToModulePath = relativeToModulePathWithJarSuffix; if (relativeToModulePath != null) { int jarSufIdx = relativeToModulePathWithJarSuffix.indexOf(JarFileSystem.JAR_SEPARATOR); if (jarSufIdx != -1) { relativeToModulePath = relativeToModulePath.su... | stripPathInsideJar |
26,083 | boolean (String path) { final int jarSufIdx = path.indexOf(JarFileSystem.JAR_SEPARATOR); if (jarSufIdx != -1) { path = path.substring(0, jarSufIdx); } return new File(path).exists(); } | isJarFileExist |
26,084 | String (ModuleRootModel model, String javadocPath) { final String protocol = VirtualFileManager.extractProtocol(javadocPath); if (!Comparing.strEqual(protocol, HttpFileSystem.getInstance().getProtocol())) { final String path = VfsUtilCore.urlToPath(javadocPath); final VirtualFile contentRoot = getContentRoot(model); fi... | toEclipseJavadocPath |
26,085 | void (Element orderEntry, LibraryOrderEntry libraryOrderEntry, final ModuleRootModel model) { setupAttributes(orderEntry, s -> toEclipseJavadocPath(model, s), JAVADOC_LOCATION, libraryOrderEntry.getRootUrls(JavadocOrderRootType.getInstance())); } | setupJavadocAttributes |
26,086 | boolean (String ideaUrl, String eclipseUrl) { final String path = VfsUtilCore.urlToPath(eclipseUrl); if (ideaUrl.contains(path)) { return true; } else { final String relativeToModulePath = EPathCommonUtil.getRelativeToModulePath(path); final int relativeIdx = relativeToModulePath != null ? ideaUrl.indexOf(relativeToMod... | areUrlsPointTheSame |
26,087 | String (final String path, final ModifiableRootModel model, final List<String> currentRoots) { final VirtualFile contentRoot = getContentRoot(model); LOG.assertTrue(contentRoot != null); return expandEclipsePath2Url(path, model, currentRoots, contentRoot); } | expandEclipsePath2Url |
26,088 | String (final String path, final ModifiableRootModel model, final List<String> currentRoots, final @NotNull VirtualFile contentRoot) { final String rootPath = contentRoot.getPath(); String url = null; if (new File(path).exists()) { //absolute path url = EPathCommonUtil.pathToUrl(path); } else { if (path.startsWith("/")... | expandEclipsePath2Url |
26,089 | String (final String url, final ModuleRootModel model) { final Project project = model.getModule().getProject(); final VirtualFile contentRoot = getContentRoot(model); VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file != null) { LOG.assertTrue(file.isValid()); if (file.getFileSystem() ins... | collapse2EclipsePath |
26,090 | void (ActionEvent e) { updateProjectListEnabledStatus(); } | actionPerformed |
26,091 | void (ActionEvent e) { updateProjectListEnabledStatus(); } | actionPerformed |
26,092 | void (ListSelectionEvent e) { EclipseProjectCodeStyleData codeStyleData = myCodeStylesList.getSelectedValue(); updateOnSelectedItemChange(codeStyleData); } | valueChanged |
26,093 | void (ActionEvent e) { updateOnOrganizeImportsBoxChange(); } | actionPerformed |
26,094 | void (@NotNull JBLabel hintLabel) { hintLabel.setForeground(JBColor.GRAY); hintLabel.setFont(UIUtil.getLabelFont(UIUtil.FontSize.SMALL)); } | customizeHintLabel |
26,095 | JComponent () { return myTopPanel; } | getComponent |
26,096 | void () { EclipseImportBuilder builder = (EclipseImportBuilder)getWizardContext().getProjectBuilder(); assert builder != null; if (myImportCodeStyleRB.isSelected()) { builder.getParameters().codeStyleData = myCodeStylesList.getSelectedValue(); } } | updateDataModel |
26,097 | void (@Nullable EclipseProjectCodeStyleData codeStyleData) { myOrganizeImportsCheckBox.setEnabled(codeStyleData != null && codeStyleData.isEclipseImportsConfigAvailable()); myOrganizeImportsCheckBox.setSelected(codeStyleData != null && codeStyleData.isImportOrganizeImportsConfig()); } | updateOnSelectedItemChange |
26,098 | void () { EclipseProjectCodeStyleData codeStyleData = myCodeStylesList.getSelectedValue(); if (codeStyleData != null) { codeStyleData.setImportOrganizeImportsConfig(myOrganizeImportsCheckBox.isSelected()); } } | updateOnOrganizeImportsBoxChange |
26,099 | void () { myCodeStylesListModel.clear(); for(EclipseProjectCodeStyleData codeStyleData : getCodeStylesList()) { myCodeStylesListModel.addElement(codeStyleData); } boolean isEnabled = !myCodeStylesListModel.isEmpty(); myImportCodeStyleRB.setEnabled(isEnabled); myImportCodeStyleLabel.setEnabled(isEnabled); myUseDefaultCo... | updateStep |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.