Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
67,200 | List<String> () { return myPanel.getRepositories(); } | getRepositories |
67,201 | void (final String name) { myProxyGroup.setName(name); } | setDisplayName |
67,202 | ProxyGroup () { return myProxyGroup; } | getEditableObject |
67,203 | String () { return myProxyGroup.getName(); } | getBannerSlogan |
67,204 | JComponent () { return myPanel.getMainPanel(); } | createOptionsPanel |
67,205 | String () { return myProxyGroup.getDisplayName(); } | getDisplayName |
67,206 | String () { return null; } | getHelpTopic |
67,207 | boolean () { // not used return false; } | isModified |
67,208 | void () { if (myIsInitialized) { myProxyGroup.setPatterns(myPanel.getPatterns()); myPanel.copyStringProperties(myProxyGroup.getProperties()); } } | applyImpl |
67,209 | void (final boolean valid) { myPanel.setIsValid(valid); } | setIsValid |
67,210 | boolean (final String value) { if (value == null) { return true; } try { final String portString = value.trim(); if (portString.length() > 0) { Integer.valueOf(portString); } } catch (NumberFormatException e) { return false; } return true; } | checkNumericFieldValue |
67,211 | void () { try { myPanel.setStringProperties(myProxyGroup.getProperties()); myPanel.setPatterns(myProxyGroup.getPatterns()); myPanel.setIsDefaultGroup(myProxyGroup.isDefault()); myIsInitialized = true; } catch (NumberFormatException e) { // never } } | reset |
67,212 | void (final String groupName, final List<String> urls) { for (String url : urls) { final Set<String> set; if (urls2groups.containsKey(url)) { set = urls2groups.get(url); } else { set = new HashSet<>(); urls2groups.put(url, set); } set.add(groupName); } } | acceptUrls |
67,213 | JComponent () { if (myComponent == null) { myComponent = super.createComponent(); } return myComponent; } | createComponent |
67,214 | String () { return message("configurable.SvnConfigureProxiesComponent.display.name"); } | getDisplayName |
67,215 | String () { return null; } | getHelpTopic |
67,216 | void (final ProxyGroup template) { final ProxyGroup group; if (template == null) { group = new ProxyGroup(message("value.new.server.group.name"), "", new HashMap<>()); } else { group = new ProxyGroup(message("value.new.server.group.name"), template.getPatterns(), template.getProperties()); } addNode(createNodeForObject... | addGroup |
67,217 | List<String> (final Collection<String> all) { // i.e. all-[all used] final List<String> result = new LinkedList<>(all); for (int i = 0; i < myRoot.getChildCount(); i++) { final MyNode node = (MyNode) myRoot.getChildAt(i); final GroupConfigurable groupConfigurable = (GroupConfigurable) node.getConfigurable(); if (! grou... | getGlobalGroupRepositories |
67,218 | boolean (final ValidationListener listener) { final Set<String> checkSet = new HashSet<>(); final AmbiguousPatternsFinder ambiguousPatternsFinder = new AmbiguousPatternsFinder(); for (int i = 0; i < myRoot.getChildCount(); i++) { final MyNode node = (MyNode) myRoot.getChildAt(i); final GroupConfigurable groupConfigurab... | validate |
67,219 | ArrayList<AnAction> (final boolean fromPopup) { ArrayList<AnAction> result = new ArrayList<>(); result.add(new DumbAwareAction(SvnBundle.messagePointer("action.DumbAware.SvnConfigureProxiesComponent.text.add"), SvnBundle.messagePointer("action.DumbAware.SvnConfigureProxiesComponent.description.add"), IconUtil.getAddIco... | createActions |
67,220 | void (@NotNull AnActionEvent event) { addGroup(null); } | actionPerformed |
67,221 | void (@NotNull final AnActionEvent e) { final TreePath path = myTree.getSelectionPath(); final MyNode node = (MyNode)path.getLastPathComponent(); final MyNode parentNode = (MyNode) node.getParent(); int idx = parentNode.getIndex(node); super.actionPerformed(e); idx = (idx == parentNode.getChildCount()) ? idx - 1 : idx;... | actionPerformed |
67,222 | void (@NotNull AnActionEvent event) { // apply - for update of editable object try { getSelectedConfigurable().apply(); } catch (ConfigurationException e) { // suppress & wait for OK } final ProxyGroup selectedGroup = (ProxyGroup)getSelectedObject(); if (selectedGroup != null) { addGroup(selectedGroup); } } | actionPerformed |
67,223 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
67,224 | void (@NotNull AnActionEvent event) { event.getPresentation().setEnabled(getSelectedObject() != null); } | update |
67,225 | void () { super.reset(); myManager.updateFromFile(); for (int i = 0; i < myRoot.getChildCount(); i++) { final MyNode node = (MyNode) myRoot.getChildAt(i); final GroupConfigurable groupConfigurable = (GroupConfigurable) node.getConfigurable(); groupConfigurable.reset(); } } | reset |
67,226 | MyNode (final ProxyGroup group) { final ConfigureProxiesOptionsPanel panel = new ConfigureProxiesOptionsPanel(myValidator, myTestConnectionPerformer); final GroupConfigurable gc = new GroupConfigurable(group, myTreeUpdaterValidator, panel); if (group.isDefault()) { myDefaultGroupPanel = panel; } // first added node mus... | createNodeForObject |
67,227 | void () { myRoot.removeAllChildren(); DefaultProxyGroup defaultProxyGroup = myManager.getDefaultGroup(); defaultProxyGroup = (defaultProxyGroup == null) ? new DefaultProxyGroup(Collections.emptyMap()) : defaultProxyGroup; final Map<String, ProxyGroup> userGroups = myManager.getGroups(); myRoot.add(createNodeForObject(d... | fillTree |
67,228 | Comparator<MyNode> () { return GroupNodesComparator.getInstance(); } | getNodeComparator |
67,229 | GroupNodesComparator () { return instance; } | getInstance |
67,230 | int (final MyNode node1, final MyNode node2) { if ((node1.getConfigurable() instanceof GroupConfigurable) && (node2.getConfigurable() instanceof GroupConfigurable)) { final ProxyGroup group1 = ((GroupConfigurable) node1.getConfigurable()).getEditableObject(); final ProxyGroup group2 = ((GroupConfigurable) node2.getConf... | compare |
67,231 | void (final boolean valid) { for (int i = 0; i < myRoot.getChildCount(); i++) { final MyNode node = (MyNode) myRoot.getChildAt(i); final GroupConfigurable groupConfigurable = (GroupConfigurable) node.getConfigurable(); groupConfigurable.setIsValid(valid); } } | setIsValid |
67,232 | void () { for (Runnable runnable : myRunnables) { runnable.run(); } } | run |
67,233 | void (final String patterns, final String exceptions) { } | onChange |
67,234 | void (final SvnConfigureProxiesComponent component) { myComponents.add(component); } | add |
67,235 | void () { if (myStopped) { return; } myListener.onSuccess(); // clear status of previous validation boolean valid = true; for (SvnConfigureProxiesComponent component : myComponents) { if(! component.validate(myListener)) { valid = false; break; } } for (SvnConfigureProxiesComponent component : myComponents) { component... | run |
67,236 | void () { myStopped = true; } | stop |
67,237 | String () { return myCopyPath; } | getCopyPath |
67,238 | long () { return myCopyRevision; } | getCopyRevision |
67,239 | String () { return myPath; } | getPath |
67,240 | char () { return myType; } | getType |
67,241 | String () { return path; } | getPath |
67,242 | Builder (@NotNull NodeKind kind) { this.kind = kind; return this; } | setKind |
67,243 | Builder (char type) { this.action = String.valueOf(type); return this; } | setType |
67,244 | Builder (String copyFromPath) { this.copyFromPath = copyFromPath; return this; } | setCopyFromPath |
67,245 | Builder (long copyFromRevision) { this.copyFromRevision = copyFromRevision; return this; } | setCopyFromRevision |
67,246 | Builder (String path) { this.path = path; return this; } | setPath |
67,247 | LogEntryPath () { return new LogEntryPath(this); } | build |
67,248 | List<WCInfoWithBranches> () { List<WCInfoWithBranches> result = new ArrayList<>(); for (WCInfo info : myVcs.getAllWcInfos()) { ContainerUtil.addIfNotNull(result, createInfo(info)); } return result; } | loadRoots |
67,249 | WCInfoWithBranches (@NotNull WCInfoWithBranches info) { File file = info.getRootInfo().getIoFile(); RootUrlInfo rootInfo = myVcs.getSvnFileUrlMapping().getWcRootForFilePath(getFilePath(info.getRootInfo().getVirtualFile())); return rootInfo != null ? createInfo(new WCInfo(rootInfo, SvnUtil.isWorkingCopyRoot(file), SvnUt... | reloadInfo |
67,250 | WCInfoWithBranches (@NotNull WCInfo info) { if (!info.getFormat().supportsMergeInfo()) { return null; } final String url = info.getUrl().toString(); if (myLocation != null && !myLocation.toPresentableString().startsWith(url) && !url.startsWith(myLocation.toPresentableString())) { return null; } if (!SvnUtil.checkReposi... | createInfo |
67,251 | WCInfoWithBranches (@NotNull WCInfo info, @NotNull RootUrlInfo rootUrlInfo) { SvnBranchConfigurationNew configuration = SvnBranchConfigurationManager.getInstance(myVcs.getProject()).get(rootUrlInfo.getVirtualFile()); Ref<WCInfoWithBranches.Branch> workingCopyBranch = Ref.create(); List<WCInfoWithBranches.Branch> branch... | createInfoWithBranches |
67,252 | void (@NotNull Url url, @NotNull Url branchUrl, @NotNull List<WCInfoWithBranches.Branch> branches, @NotNull Ref<WCInfoWithBranches.Branch> workingCopyBranch) { WCInfoWithBranches.Branch branch = new WCInfoWithBranches.Branch(branchUrl); if (!SvnUtil.isAncestor(branchUrl, url)) { branches.add(branch); } else { workingCo... | add |
67,253 | String () { return myAuthor; } | getAuthor |
67,254 | String () { return myMessage; } | getMessage |
67,255 | long () { return myRevision; } | getRevision |
67,256 | boolean () { return myHasChildren; } | hasChildren |
67,257 | boolean () { return !childEntries.isEmpty(); } | hasChildren |
67,258 | Builder (long revision) { this.revision = revision; return this; } | setRevision |
67,259 | Builder (String author) { this.author = author; return this; } | setAuthor |
67,260 | Builder (Date date) { this.date = date; return this; } | setDate |
67,261 | Builder (String message) { this.message = message; return this; } | setMessage |
67,262 | Builder (boolean hasChildren) { // probably LogEntry interface will be changed and child entries will be specified explicitly later, but for now just use such "fake" // implementation for setting "hasChildren" value childEntries.clear(); if (hasChildren) { childEntries.add(this); } return this; } | setHasChildren |
67,263 | Builder (@NotNull LogEntryPath.Builder path) { changedPaths.add(path); return this; } | addPath |
67,264 | LogEntry () { return new LogEntry(this); } | build |
67,265 | String (@NotNull SvnFileRevision revision) { return revision.getRevisionNumber().asString(); } | getPresentableName |
67,266 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
67,267 | boolean (@NotNull final AnActionEvent e) { return myIsSelected; } | isSelected |
67,268 | void (@NotNull final AnActionEvent e, final boolean state) { myIsSelected = state; if (state) { myManager.setFilteringStrategy(myStrategy); } else { myManager.removeFilteringStrategy(myStrategy.getKey()); } } | setSelected |
67,269 | boolean () { return myMediator.canGoBack(); } | canGoBack |
67,270 | boolean () { return myMediator.canGoForward(); } | canGoForward |
67,271 | void () { myMediator.goForward(); setItems(myMediator.getCurrent()); } | goForward |
67,272 | void () { myMediator.onBeforeClose(); } | onBeforeClose |
67,273 | void (final RootsAndBranches action) { if (myMergeInfoRefreshActions == null) { myMergeInfoRefreshActions = new ArrayList<>(); myMergeInfoRefreshActions.add(action); myConnection.subscribe(BRANCHES_CHANGED, (project, vcsRoot) -> callReloadMergeInfo()); final Consumer<Boolean> reloadConsumer = aBoolean -> { if (Boolean.... | addPanel |
67,274 | void () { reloadRunnable.run(); } | itemsReloaded |
67,275 | void () { } | emptyRefresh |
67,276 | void (final Consumer<RootsAndBranches> consumer) { myUpdater.queue(() -> { for (final RootsAndBranches action : myMergeInfoRefreshActions) { if (action.strategyInitialized()) { if (ApplicationManager.getApplication().isDispatchThread()) { consumer.consume(action); } else { ApplicationManager.getApplication().invokeLate... | doForEachInitialized |
67,277 | void () { doForEachInitialized(rootsAndBranches -> { rootsAndBranches.reloadPanels(); rootsAndBranches.refresh(); }); } | callReloadMergeInfo |
67,278 | void (final RootsAndBranches action) { if (myMergeInfoRefreshActions != null) { myMergeInfoRefreshActions.remove(action); } } | removePanel |
67,279 | LogEntryConsumer (final Revision fromIncluding, final Revision toIncluding, final boolean includingYoungest, final boolean includeOldest, final List<CommittedChangeList> result) { return logEntry -> { if (myProject.isDisposed()) throw new ProcessCanceledException(); final ProgressIndicator progress = ProgressManager.ge... | createLogHandler |
67,280 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
67,281 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(enabled(e)); } | update |
67,282 | void (final JComponent comp) { registerCustomShortcutSet(new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.ALT_MASK | InputEvent.CTRL_MASK)), comp); } | registerSelf |
67,283 | boolean (final AnActionEvent e) { final Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) return false; final VirtualFile revisionVirtualFile = e.getData(VcsDataKeys.VCS_VIRTUAL_FILE); if (revisionVirtualFile == null) return false; final VcsFileRevision revision = e.getData(VcsDataKeys.VCS_FILE_... | enabled |
67,284 | void (@NotNull AnActionEvent e) { if (! enabled(e)) return; final Project project = e.getData(CommonDataKeys.PROJECT); final VcsFileRevision revision = e.getData(VcsDataKeys.VCS_FILE_REVISION); final VirtualFile revisionVirtualFile = e.getData(VcsDataKeys.VCS_VIRTUAL_FILE); SvnMergeSourceDetails.showMe(project, (SvnFil... | actionPerformed |
67,285 | boolean () { return ((myCurrentIdx + 1) < myChunks.size()) || (!myCanNotGoBack); } | canGoBack |
67,286 | boolean () { return myCurrentIdx > 0; } | canGoForward |
67,287 | void () { --myCurrentIdx; } | goForward |
67,288 | List<CommittedChangeList> () { debugPrinting(); return (List<CommittedChangeList>)((myChunks.isEmpty()) ? Collections.<List<CommittedChangeList>>emptyList() : fragmentsToLists(myChunks.get(myCurrentIdx))); } | getCurrent |
67,289 | void () { LOG.debug("== showing screen (" + myCurrentIdx + "): =="); if (!myChunks.isEmpty()) { for (Fragment fragment : myChunks.get(myCurrentIdx)) { LOG.debug(fragment.getOrigin().toString() + " from: " + fragment.getList().get(0).getNumber() + " to: " + fragment.getList().get(fragment.getList().size() - 1).getNumber... | debugPrinting |
67,290 | List<CommittedChangeList> (final List<Fragment> fragments) { final List<CommittedChangeList> result = new ArrayList<>(); for (Fragment fragment : fragments) { result.addAll(fragment.getList()); } return result; } | fragmentsToLists |
67,291 | void () { if ((myVisuallyCached != null) && (myVisuallyCached.hadBeenSuccessfullyAccessed())) { myVisuallyCached.doCacheUpdate(myChunks); // keep also in internal cache InternallyCachedProvider.initCache(myChunks, myProject); } else if (myInternallyCached != null) { myInternallyCached.doCacheUpdate(myChunks); } else { ... | onBeforeClose |
67,292 | void (final List<List<Fragment>> fragmentsListList) { final List<CommittedChangeList> lists = getAllBeforeVisuallyCached(fragmentsListList); CommittedChangesCache.getInstance(myProject).submitExternallyLoaded(myLocation, myAlreadyReaded.getList().get(0).getNumber(), lists); } | doCacheUpdate |
67,293 | void (final ChangesBunch loaded) { myHolesDetected |= (!loaded.isConsistentWithPrevious()); super.addToLoaded(loaded); } | addToLoaded |
67,294 | void (final List<List<Fragment>> fragmentListList, final Project project) { final List<CommittedChangeList> lists = getAllBeforeVisuallyCached(fragmentListList); if (!lists.isEmpty()) { LoadedRevisionsCache.getInstance(project).put(lists, false, null); } } | initCache |
67,295 | void (final List<List<Fragment>> fragmentsListList) { final List<CommittedChangeList> lists = new ArrayList<>(); LoadedRevisionsCache.Bunch bindAddress = null; boolean consistent = false; if (myHolesDetected) { boolean liveMet = false; for (int i = 0; i < fragmentsListList.size(); i++) { final List<Fragment> fragmentLi... | doCacheUpdate |
67,296 | void (final Fragment fragment) { if ((myBunchSize == 0) || (fragment.getList().isEmpty())) { return; } final List<CommittedChangeList> list = fragment.getList(); final List<CommittedChangeList> subList = ContainerUtil.getFirstItems(list, myBunchSize); myResult.add(new Fragment(fragment.getOrigin(), subList, fragment.is... | addToResult |
67,297 | MergeInfoHolder (final String key) { final MergeInfoHolder holder = myHolders.get(key); if (holder != null) { return holder; } return myHolders.get(key.endsWith(File.separator) ? key.substring(0, key.length() - 1) : key + File.separator); } | getHolder |
67,298 | SvnMergeInfoRootPanelManual (final String key) { final SvnMergeInfoRootPanelManual panel = myMergePanels.get(key); if (panel != null) { return panel; } return myMergePanels.get(key.endsWith(File.separator) ? key.substring(0, key.length() - 1) : key + File.separator); } | getPanelData |
67,299 | IntegrateChangeListsAction () { return myIntegrateAction; } | getIntegrateAction |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.