Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
258,900
void (@NotNull VirtualFile projectDir, @NotNull String vcsDirName) { LocalFileSystem.getInstance().refreshAndFindFileByPath(projectDir.getPath() + "/" + vcsDirName); }
refreshVcsDir
258,901
VcsRootProblemNotifier (@NotNull Project project) { return new VcsRootProblemNotifier(project); }
createInstance
258,902
void () { Collection<VcsRootError> errors = scan(); if (errors.isEmpty()) { synchronized (NOTIFICATION_LOCK) { expireNotification(); } return; } MAPPING_DETECTION_LOG.debug("Following errors detected: " + errors); Collection<VcsRootError> importantUnregisteredRoots = getImportantUnregisteredMappings(errors); Collection...
rescanAndNotifyIfNeeded
258,903
NotificationAction () { return NotificationAction.create( VcsBundle.messagePointer("action.NotificationAction.VcsRootProblemNotifier.text.configure"), (event, notification) -> { if (!myProject.isDisposed()) { ShowSettingsUtil.getInstance().showSettingsDialog(myProject, VcsMappingConfigurable.class); BackgroundTaskUtil....
getConfigureNotificationAction
258,904
void (Collection<? extends VcsRootError> importantUnregisteredRoots, boolean silently) { List<VcsDirectoryMapping> mappings = myVcsManager.getDirectoryMappings(); for (VcsRootError root : importantUnregisteredRoots) { mappings = VcsUtil.addMapping(mappings, root.getMapping()); } if (silently) { myVcsManager.setAutoDire...
addMappings
258,905
boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return false; VirtualFile file = LocalFileSystem.getInstance().findFileByPath(mapping.getDirectory()); return file != null && (myChangeListManager.isIgnoredFile(file) || ReadAction.compute(() -> myProjectFileIndex.isExcluded(file))); }
isIgnoredOrExcludedPath
258,906
boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return false; return mySettings.isIgnoredUnregisteredRoot(mapping.getDirectory()); }
isExplicitlyIgnoredPath
258,907
boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return false; return exists(myVcsManager.getDirectoryMappings(), it -> { return Objects.equals(mapping.getDirectory(), it.getDirectory()); }); }
conflictsWithExistingMapping
258,908
void () { if (myNotification != null) { final Notification notification = myNotification; ApplicationManager.getApplication().invokeLater(notification::expire); myNotification = null; } }
expireNotification
258,909
Collection<VcsRootError> () { return new VcsRootErrorsFinder(myProject).find(); }
scan
258,910
String (@NotNull Collection<? extends VcsRootError> errors) { List<? extends VcsRootError> sortedRoots = sorted(errors, (root1, root2) -> { if (root1.getMapping().isDefaultMapping()) return -1; if (root2.getMapping().isDefaultMapping()) return 1; return root1.getMapping().getDirectory().compareTo(root2.getMapping().get...
joinRootsForPresentation
258,911
String (Collection<? extends VcsRootError> roots) { String result = null; for (VcsRootError root : roots) { String vcsName = root.getMapping().getVcs(); if (result == null) { result = vcsName; } else if (!result.equals(vcsName)) { return VcsBundle.message("vcs.generic.name"); } } return result; }
getVcsName
258,912
List<VcsRootError> (@NotNull Collection<? extends VcsRootError> errors) { return filter(errors, error -> { VcsDirectoryMapping mapping = error.getMapping(); return error.getType() == UNREGISTERED_ROOT && !isIgnoredOrExcludedPath(mapping) && !isExplicitlyIgnoredPath(mapping) && !conflictsWithExistingMapping(mapping); })...
getImportantUnregisteredMappings
258,913
boolean (Collection<? extends VcsRootError> allErrors) { return exists(allErrors, it -> it.getType() == UNREGISTERED_ROOT && isExplicitlyIgnoredPath(it.getMapping())); }
areThereExplicitlyIgnoredRoots
258,914
Collection<VcsRootError> (@NotNull Collection<? extends VcsRootError> errors) { return filter(errors, error -> error.getType() == VcsRootError.Type.EXTRA_MAPPING); }
getInvalidRoots
258,915
Collection<VcsRootError> () { Collection<VcsRoot> vcsRoots = myRootDetector.getOrDetect(); return calcErrors(vcsRoots); }
getOrFind
258,916
Collection<VcsRootError> () { Collection<VcsRoot> vcsRoots = myRootDetector.detect(); return calcErrors(vcsRoots); }
find
258,917
Collection<VcsRootError> (@NotNull Collection<VcsRoot> detectedRoots) { List<VcsDirectoryMapping> mappings = myVcsManager.getDirectoryMappings(); Collection<VcsRootError> errors = new ArrayList<>(); errors.addAll(findExtraMappings(mappings)); errors.addAll(findUnregisteredRoots(mappings, detectedRoots)); return errors;...
calcErrors
258,918
Collection<VcsRootError> (@NotNull List<? extends VcsDirectoryMapping> mappings, @NotNull Collection<VcsRoot> vcsRoots) { Collection<VcsRootError> errors = new ArrayList<>(); List<String> mappedPaths = mappingsToPathsWithSelectedVcs(mappings); for (VcsRoot root : vcsRoots) { String vcsPath = root.getPath().getPath(); A...
findUnregisteredRoots
258,919
Collection<VcsRootError> (@NotNull List<? extends VcsDirectoryMapping> mappings) { Collection<VcsRootError> errors = new ArrayList<>(); for (VcsDirectoryMapping mapping : mappings) { if (!hasVcsChecker(mapping.getVcs())) { continue; } if (!isRoot(mapping)) { errors.add(new VcsRootErrorImpl(VcsRootError.Type.EXTRA_MAPPI...
findExtraMappings
258,920
boolean (String vcs) { if (StringUtil.isEmptyOrSpaces(vcs)) { return false; } for (VcsRootChecker checker : VcsRootChecker.EXTENSION_POINT_NAME.getExtensionList()) { if (vcs.equalsIgnoreCase(checker.getSupportedVcs().getName())) { return true; } } return false; }
hasVcsChecker
258,921
List<String> (@NotNull List<? extends VcsDirectoryMapping> mappings) { List<String> paths = new ArrayList<>(); for (VcsDirectoryMapping mapping : mappings) { if (mapping.isNoneMapping()) { continue; } if (!mapping.isDefaultMapping()) { paths.add(mapping.getDirectory()); } else { String basePath = myProject.getBasePath(...
mappingsToPathsWithSelectedVcs
258,922
VcsRootErrorsFinder (Project project) { return new VcsRootErrorsFinder(project); }
getInstance
258,923
boolean (@NotNull final VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return true; AbstractVcs vcs = myVcsManager.findVcsByName(mapping.getVcs()); if (vcs == null) return false; VcsRootChecker rootChecker = myVcsManager.getRootChecker(vcs); VirtualFile directory = LocalFileSystem.getInstance().findFile...
isRoot
258,924
Collection<VcsRoot> () { MAPPING_DETECTION_LOG.debug("VcsRootDetectorImpl.detect"); synchronized (LOCK) { Activity activity = StartUpMeasurer.startActivity("VcsRootDetector.detect"); Collection<VcsRoot> roots = scanForRootsInContentRoots(); activity.end(); myDetectedRoots = ContainerUtil.map(roots, DetectedVcsRoot::new...
detect
258,925
Collection<VcsRoot> (@Nullable VirtualFile startDir) { MAPPING_DETECTION_LOG.debug("VcsRootDetectorImpl.detect root", startDir); if (startDir == null || !startDir.isInLocalFileSystem()) return Collections.emptyList(); return Collections.unmodifiableSet(scanForDirectory(startDir)); }
detect
258,926
Collection<VcsRoot> () { MAPPING_DETECTION_LOG.debug("VcsRootDetectorImpl.getOrDetect"); synchronized (LOCK) { if (myDetectedRoots != null) { return ContainerUtil.mapNotNull(myDetectedRoots, it -> it.toVcsRoot(myProject)); } return detect(); } }
getOrDetect
258,927
Set<VcsRoot> (@NotNull VirtualFile dirToScan) { if (!VcsRootChecker.EXTENSION_POINT_NAME.hasAnyExtensions()) { return Collections.emptySet(); } Set<VcsRoot> detectedRoots = new HashSet<>(); Map<VirtualFile, Boolean> scannedDirs = new HashMap<>(); detectedRoots.addAll(scanForRootsInsideDir(myProject, dirToScan, null, sc...
scanForDirectory
258,928
Collection<VcsRoot> () { if (myProject.isDisposed() || !VcsRootChecker.EXTENSION_POINT_NAME.hasAnyExtensions()) { return Collections.emptyList(); } List<VirtualFile> contentRoots = ContainerUtil.sorted(DefaultVcsRootPolicy.getInstance(myProject).getDefaultVcsRoots(), Comparator.comparing(root -> root.getPath().length()...
scanForRootsInContentRoots
258,929
Set<VcsRoot> (@NotNull Project project, @NotNull VirtualFile root, @Nullable Set<? extends VirtualFile> skipDirs, @NotNull Map<VirtualFile, Boolean> scannedDirs) { Set<VcsRoot> result = new HashSet<>(); VcsRootScanner.visitDirsRecursivelyWithoutExcluded(project, root, false, dir -> { if (skipDirs != null && skipDirs.co...
scanForRootsInsideDir
258,930
Collection<VcsRoot> (@NotNull Collection<? extends VirtualFile> dirsToScan, @NotNull Map<VirtualFile, Boolean> scannedDirs, @NotNull Collection<VcsRoot> detectedRoots) { Set<VirtualFile> skipDirs = new HashSet<>(); for (VcsRoot root : detectedRoots) { skipDirs.add(root.getPath()); } // ignore mappings in ~/ and above C...
scanForRootsAboveDirs
258,931
void (@NotNull VirtualFile root, @NotNull Map<VirtualFile, Boolean> scannedDirs, @NotNull Set<? super VirtualFile> skipDirs, @NotNull Set<? super VcsRoot> result) { Pattern ignorePattern = VcsRootScanner.parseDirIgnorePattern(); if (VcsRootScanner.isUnderIgnoredDirectory(myProject, ignorePattern, root)) { return; } Vir...
scanForRootsAboveDir
258,932
Collection<VcsRoot> (@NotNull Map<VirtualFile, Boolean> scannedDirs, @NotNull Collection<VcsRoot> detectedRoots) { Set<VcsRoot> result = new HashSet<>(); for (VcsRoot root : detectedRoots) { VcsRootChecker rootChecker = VcsRootChecker.EXTENSION_POINT_NAME.findFirstSafe(checker -> { return root.getVcs() != null && Objec...
scanDependentRoots
258,933
void (@NotNull AnActionEvent e) { Project project = e.getProject(); Editor editor = e.getData(CommonDataKeys.EDITOR); Integer selectedOffset = e.getData(SELECTED_OFFSET_KEY); if (project == null || editor == null) { e.getPresentation().setEnabledAndVisible(false); return; } LineStatusTracker<?> tracker = LineStatusTrac...
update
258,934
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
258,935
void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); Editor editor = e.getRequiredData(CommonDataKeys.EDITOR); Integer selectedOffset = e.getData(SELECTED_OFFSET_KEY); LineStatusTracker<?> tracker = LineStatusTrackerManager.getInstance(project).getLineStatusTracker(editor.getDo...
actionPerformed
258,936
boolean (@NotNull Editor editor, @NotNull LineStatusTrackerI<?> tracker) { return DiffUtil.isSomeRangeSelected(editor, lines -> !ContainerUtil.isEmpty(tracker.getRangesForLines(lines))); }
isSomeChangeSelected
258,937
boolean (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor) { return true; }
isEnabled
258,938
void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor, @Nullable Range range) { if (range != null) { rollback(tracker, range, editor); } else { rollback(tracker, editor); } }
doAction
258,939
void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor) { BitSet selectedLines = DiffUtil.getSelectedLines(editor); tracker.rollbackChanges(selectedLines); }
rollback
258,940
void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Range range, @Nullable Editor editor) { if (editor != null) DiffUtil.moveCaretToLineRangeIfNeeded(editor, range.getLine1(), range.getLine2()); tracker.rollbackChanges(range); }
rollback
258,941
void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor, @Nullable Range range) { if (range == null) { //noinspection unchecked List<Range> ranges = (List<Range>)tracker.getRangesForLines(DiffUtil.getSelectedLines(editor)); if (ranges == null || ranges.isEmpty()) return; Range start = ranges.get(0); Range ...
doAction
258,942
boolean (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor) { return tracker instanceof PartialLocalLineStatusTracker; }
isEnabled
258,943
void (@NotNull LineStatusTrackerI<?> tracker, @NotNull Editor editor, @Nullable Range range) { moveToAnotherChangelist((PartialLocalLineStatusTracker)tracker, editor); }
doAction
258,944
void (@NotNull PartialLocalLineStatusTracker tracker, @NotNull Editor editor) { moveToAnotherChangelist(tracker, DiffUtil.getSelectedLines(editor)); }
moveToAnotherChangelist
258,945
void (@NotNull PartialLocalLineStatusTracker tracker, @NotNull BitSet selectedLines) { Project project = tracker.getProject(); List<LocalRange> ranges = tracker.getRangesForLines(selectedLines); if (ranges == null || ranges.isEmpty()) return; LocalChangeList targetList = MoveChangesToAnotherListAction.askTargetChangeli...
moveToAnotherChangelist
258,946
void (@NotNull PartialLocalLineStatusTracker tracker, @NotNull LocalRange range) { Project project = tracker.getProject(); LocalChangeList targetList = MoveChangesToAnotherListAction.askTargetChangelist(project, singletonList(range), tracker); if (targetList == null) return; tracker.moveToChangelist(range, targetList);...
moveToAnotherChangelist
258,947
ProjectLevelVcsManagerEx (Project project) { return (ProjectLevelVcsManagerEx)ProjectLevelVcsManager.getInstance(project); }
getInstanceEx
258,948
JComponent () { JPanel wrapper = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); myHighlightRecentlyChanged = new JCheckBox(myCheckboxText); myHighlightInterval = new JSpinner(createSpinnerModel()); wrapper.add(myHighlightRecentlyChanged); wrapper.add(myHighlightInterval); final JLabel days = new JLabel(myMeasure); ...
createComponent
258,949
void (ActionEvent e) { myHighlightInterval.setEnabled(myHighlightRecentlyChanged.isSelected()); }
actionPerformed
258,950
MapInfo (@NotNull VcsDirectoryMapping mapping) { return new MapInfo(mapping, Type.UNREGISTERED); }
unregistered
258,951
MapInfo (@NotNull VcsDirectoryMapping mapping, boolean valid) { return new MapInfo(mapping, valid ? Type.NORMAL : Type.INVALID); }
registered
258,952
String () { if (type == Type.SEPARATOR) return ""; return mapping.toString(); }
toString
258,953
void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { if (value instanceof MapInfo info) { SimpleTextAttributes textAttributes = getAttributes(info); if (!selected && (info == MapInfo.SEPARATOR || info.type == MapInfo.Type.UNREGISTERED)) { setBackground(UIUtil.getDecorate...
customizeCellRenderer
258,954
SimpleTextAttributes (@NotNull MapInfo info) { if (info == MapInfo.SEPARATOR) { return new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD | SimpleTextAttributes.STYLE_SMALLER, null); } else if (info.type == MapInfo.Type.INVALID) { return new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, JBColor.RED); } e...
getAttributes
258,955
void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { if (myInfo == MapInfo.SEPARATOR) { if (!selected) { setBackground(UIUtil.getDecoratedRowColor()); } return; } if (myInfo.type == MapInfo.Type.UNREGISTERED && !selected) { setBackground(UIUtil.getDecoratedRowColor()); }...
customizeCellRenderer
258,956
void () { if (myRootDetectionIndicator != null) myRootDetectionIndicator.cancel(); myScopeFilterConfig.disposeUIResources(); }
dispose
258,957
void () { myCheckers.clear(); for (VcsRootChecker checker : VcsRootChecker.EXTENSION_POINT_NAME.getExtensionList()) { VcsKey key = checker.getSupportedVcs(); AbstractVcs vcs = myVcsManager.findVcsByName(key.getName()); if (vcs == null) { continue; } myCheckers.put(key.getName(), checker); } }
updateRootCheckers
258,958
void () { myScopeFilterConfig.reset(); List<MapInfo> mappings = new ArrayList<>(); for (VcsDirectoryMapping mapping : ProjectLevelVcsManager.getInstance(myProject).getDirectoryMappings()) { mappings.add(MapInfo.registered(new VcsDirectoryMapping(mapping.getDirectory(), mapping.getVcs(), mapping.getRootSettings()), isMa...
initializeModel
258,959
void () { if (myProject.isDefault() || !TrustedProjects.isTrusted(myProject)) return; if (myRootDetectionIndicator != null) myRootDetectionIndicator.cancel(); if (!VcsUtil.shouldDetectVcsMappingsFor(myProject)) return; myRootDetectionIndicator = BackgroundTaskUtil.executeAndTryWait(indicator -> { List<VcsDirectoryMappi...
scheduleUnregisteredRootsLoading
258,960
boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return true; VcsRootChecker checker = myCheckers.get(mapping.getVcs()); if (checker == null) return true; VirtualFile directory = LocalFileSystem.getInstance().findFileByPath(mapping.getDirectory()); return directory != null && checker.val...
isMappingValid
258,961
ComboBox<AbstractVcs> (@NotNull Project project) { AbstractVcs[] allVcses = ProjectLevelVcsManager.getInstance(project).getAllSupportedVcss(); ComboBox<AbstractVcs> comboBox = new ComboBox<>(ArrayUtil.append(allVcses, null)); comboBox.setRenderer(SimpleListCellRenderer.create(VcsBundle.message("none.vcs.presentation"),...
buildVcsesComboBox
258,962
void () { VcsMappingConfigurationDialog dlg = new VcsMappingConfigurationDialog(myProject, VcsBundle.message("directory.mapping.add.title")); if (dlg.showAndGet()) { addMapping(dlg.getMapping()); } }
addMapping
258,963
void (VcsDirectoryMapping mapping) { List<MapInfo> items = new ArrayList<>(myModel.getItems()); items.add(MapInfo.registered(new VcsDirectoryMapping(mapping.getDirectory(), mapping.getVcs(), mapping.getRootSettings()), isMappingValid(mapping))); items.sort(MapInfo.COMPARATOR); myModel.setItems(items); }
addMapping
258,964
void (List<MapInfo> infos) { List<MapInfo> items = new ArrayList<>(myModel.getItems()); for (MapInfo info : infos) { items.remove(info); items.add(MapInfo.registered(info.mapping, isMappingValid(info.mapping))); } sortAndAddSeparatorIfNeeded(items); myModel.setItems(items); }
addSelectedUnregisteredMappings
258,965
void (@NotNull List<MapInfo> items) { boolean hasUnregistered = false; boolean hasSeparator = false; for (MapInfo item : items) { if (item.type == MapInfo.Type.UNREGISTERED) { hasUnregistered = true; } else if (item.type == MapInfo.Type.SEPARATOR) { hasSeparator = true; } } if (!hasUnregistered && hasSeparator) { items...
sortAndAddSeparatorIfNeeded
258,966
void () { VcsMappingConfigurationDialog dlg = new VcsMappingConfigurationDialog(myProject, VcsBundle.message("directory.mapping.remove.title")); int row = myDirectoryMappingTable.getSelectedRow(); VcsDirectoryMapping mapping = myDirectoryMappingTable.getRow(row).mapping; dlg.setMapping(mapping); if (dlg.showAndGet()) {...
editMapping
258,967
void (int row, @NotNull VcsDirectoryMapping mapping) { List<MapInfo> items = new ArrayList<>(myModel.getItems()); items.set(row, MapInfo.registered(mapping, isMappingValid(mapping))); items.sort(MapInfo.COMPARATOR); myModel.setItems(items); }
setMapping
258,968
void () { ArrayList<MapInfo> mappings = new ArrayList<>(myModel.getItems()); int index = myDirectoryMappingTable.getSelectionModel().getMinSelectionIndex(); Collection<MapInfo> selection = myDirectoryMappingTable.getSelection(); mappings.removeAll(selection); Collection<MapInfo> removedValidRoots = ContainerUtil.mapNot...
removeMapping
258,969
JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBag gb = new GridBag() .setDefaultInsets(JBUI.insets(0, 0, DEFAULT_VGAP, DEFAULT_HGAP)) .setDefaultWeightX(1) .setDefaultFill(GridBagConstraints.HORIZONTAL); JComponent mappingsTable = createMappingsTable(); // don't start loading automatically myLoadi...
createMainComponent
258,970
JComponent () { JPanel panelForTable = ToolbarDecorator.createDecorator(myDirectoryMappingTable, null) .setAddActionUpdater(e -> !myIsDisabled && rootsOfOneKindInSelection()) .setAddAction(button -> { List<MapInfo> unregisteredRoots = getSelectedUnregisteredRoots(); if (unregisteredRoots.isEmpty()) { addMapping(); } el...
createMappingsTable
258,971
List<MapInfo> () { return ContainerUtil.filter(myDirectoryMappingTable.getSelection(), info -> info.type == MapInfo.Type.UNREGISTERED); }
getSelectedUnregisteredRoots
258,972
boolean () { Collection<MapInfo> selection = myDirectoryMappingTable.getSelection(); if (selection.isEmpty()) { return true; } if (selection.size() == 1 && selection.iterator().next().type == MapInfo.Type.SEPARATOR) { return true; } List<MapInfo> selectedRegisteredRoots = getSelectedRegisteredRoots(); return selectedRe...
rootsOfOneKindInSelection
258,973
List<MapInfo> () { Collection<MapInfo> selection = myDirectoryMappingTable.getSelection(); return ContainerUtil.filter(selection, info -> info.type == MapInfo.Type.NORMAL || info.type == MapInfo.Type.INVALID); }
getSelectedRegisteredRoots
258,974
boolean () { return getSelectedRegisteredRoots().size() == myDirectoryMappingTable.getSelection().size(); }
onlyRegisteredRootsInSelection
258,975
JComponent () { final JBLabel label = new JBLabel(myProjectMessage); label.setComponentStyle(UIUtil.ComponentStyle.SMALL); label.setFontColor(UIUtil.FontColor.BRIGHTER); label.setBorder(JBUI.Borders.empty(2, 5, 2, 0)); return label; }
createProjectMappingDescription
258,976
void () { initializeModel(); }
reset
258,977
void () { List<VcsDirectoryMapping> newMappings = getModelMappings(); List<VcsDirectoryMapping> previousMappings = myVcsManager.getDirectoryMappings(); myVcsConfiguration.addIgnoredUnregisteredRoots(previousMappings.stream() .filter(mapping -> !newMappings.contains(mapping) && !mapping.isDefaultMapping()) .map(mapping ...
adjustIgnoredRootsSettings
258,978
boolean () { if (myScopeFilterConfig.isModified()) return true; return !getModelMappings().equals(myVcsManager.getDirectoryMappings()); }
isModified
258,979
List<VcsDirectoryMapping> () { return ContainerUtil.mapNotNull(myModel.getItems(), info -> info == MapInfo.SEPARATOR || info.type == MapInfo.Type.UNREGISTERED ? null : info.mapping); }
getModelMappings
258,980
MapInfo (final MapInfo mapping) { return mapping; }
valueOf
258,981
TableCellRenderer (MapInfo vcsDirectoryMapping) { return myDirectoryRenderer; }
getRenderer
258,982
String (final MapInfo object) { return object.mapping.getVcs(); }
valueOf
258,983
boolean (MapInfo info) { return info != MapInfo.SEPARATOR && info.type != MapInfo.Type.UNREGISTERED; }
isCellEditable
258,984
void (final MapInfo o, final String aValue) { o.mapping = new VcsDirectoryMapping(o.mapping.getDirectory(), aValue, o.mapping.getRootSettings()); }
setValue
258,985
TableCellRenderer (final MapInfo info) { return new MyVcsRenderer(info, myAllVcss); }
getRenderer
258,986
TableCellEditor (final MapInfo o) { return new AbstractTableCellEditor() { @Override public Object getCellEditorValue() { AbstractVcs selectedVcs = myVcsComboBox.getItem(); return selectedVcs == null ? "" : selectedVcs.getName(); //NON-NLS handled by custom renderer } @Override public Component getTableCellEditorCompon...
getEditor
258,987
Object () { AbstractVcs selectedVcs = myVcsComboBox.getItem(); return selectedVcs == null ? "" : selectedVcs.getName(); //NON-NLS handled by custom renderer }
getCellEditorValue
258,988
Component (JTable table, Object value, boolean isSelected, int row, int column) { myVcsComboBox.setSelectedItem(value); return myVcsComboBox; }
getTableCellEditorComponent
258,989
String () { String maxString = null; for (AbstractVcs vcs : myAllVcss) { String name = vcs.getDisplayName(); if (maxString == null || maxString.length() < name.length()) { maxString = name; } } return maxString; }
getMaxStringValue
258,990
int () { return DEFAULT_HGAP; }
getAdditionalWidth
258,991
boolean (@NotNull Project project, @Nullable VcsKey vcsKey) { if (project.isDefault()) return true; if (vcsKey == null) return false; List<VcsDirectoryMapping> mappings = ProjectLevelVcsManager.getInstance(project).getDirectoryMappings(); return ContainerUtil.exists(mappings, it -> vcsKey.getName().equals(it.getVcs()))...
isEnabled
258,992
void () { for (ProjectLevelProvider provider : OptionsTopHitProvider.Companion.getPROJECT_LEVEL_EP().getExtensionList()) { if (provider instanceof VcsOptionsTopHitProviderBase) { TopHitCache.Companion.getInstance(myProject).invalidateCachedOptions(provider.getClass()); } } }
directoryMappingChanged
258,993
boolean () { return false; }
postponeValidation
258,994
void () { ButtonGroup bg = new ButtonGroup(); bg.add(myUseCustomShelfDirectory); bg.add(myUseDefaultShelfDirectory); myUseCustomShelfDirectory.setSelected(myVcsConfiguration.USE_CUSTOM_SHELF_PATH); myMoveShelvesCheckBox.setSelected(myVcsConfiguration.MOVE_SHELVES); myShelfDirectoryPath .setText( FileUtil.toSystemDepend...
initComponents
258,995
void (boolean enabled) { myShelfDirectoryPath.setEnabled(enabled); myShelfDirectoryPath.setEditable(enabled); }
setEnabledCustomShelfDirectoryComponents
258,996
JComponent () { JPanel contentPanel = new JPanel(new BorderLayout(DEFAULT_HGAP, DEFAULT_VGAP)); JBLabel label = new JBLabel(VcsBundle.message("change.shelves.location.dialog.group.title")); contentPanel.add(label, BorderLayout.NORTH); JPanel buttonPanel = new JPanel(new BorderLayout(DEFAULT_HGAP, DEFAULT_VGAP)); button...
createNorthPanel
258,997
JComponent () { return null; }
createCenterPanel
258,998
JPanel () { JPanel customPanel = new JPanel(new BorderLayout()); customPanel.add(myUseCustomShelfDirectory, BorderLayout.WEST); customPanel.add(myShelfDirectoryPath, BorderLayout.CENTER); return customPanel; }
createCustomShelveLocationPanel
258,999
JPanel () { JPanel defaultPanel = new JPanel(new BorderLayout()); defaultPanel.add(myUseDefaultShelfDirectory, BorderLayout.WEST); JLabel infoLabel = new JLabel(getDefaultShelfPresentationPath(myProject)); infoLabel.setBorder(null); infoLabel.setForeground(JBColor.GRAY); defaultPanel.add(infoLabel, BorderLayout.CENTER)...
createDefaultLocationPanel