Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
26,300 | ActionGroup (@NotNull EditorMouseEvent event) { DefaultActionGroup group = new DefaultActionGroup(); group.add(CustomActionsSchema.getInstance().getCorrectedAction(IdeActions.GROUP_CUT_COPY_PASTE)); group.add(CustomActionsSchema.getInstance().getCorrectedAction(IdeActions.ACTION_EDIT_SOURCE)); group.addSeparator(); gro... | getActionGroup |
26,301 | void (@NotNull AnActionEvent e) { final String valueToPropagate = editor.getDocument().getText(); final String currentSelectedProperty = getSelectedPropertyName(); if (currentSelectedProperty == null) { return; } ApplicationManager.getApplication().runWriteAction(() -> WriteCommandAction.runWriteCommandAction(myProject... | actionPerformed |
26,302 | Object (@NotNull String dataId) { return ResourceBundleEditor.this.getData(dataId); } | getData |
26,303 | Dimension () { return getPreferredSize(); } | getPreferredScrollableViewportSize |
26,304 | int (Rectangle visibleRect, int orientation, int direction) { Editor editor = myEditors.values().iterator().next(); return editor.getLineHeight()*4; } | getScrollableUnitIncrement |
26,305 | int (Rectangle visibleRect, int orientation, int direction) { return visibleRect.height; } | getScrollableBlockIncrement |
26,306 | boolean () { return true; } | getScrollableTracksViewportWidth |
26,307 | boolean () { return false; } | getScrollableTracksViewportHeight |
26,308 | void (@NotNull AnActionEvent e) { final ResourceBundleEditor editor = getEditor(e); LOG.assertTrue(editor != null); final PropertyBundleEditorStructureViewElement element = (PropertyBundleEditorStructureViewElement)editor.getSelectedElementIfOnlyOne(); LOG.assertTrue(element != null); final PsiFile file = editor.getRes... | actionPerformed |
26,309 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
26,310 | void (@NotNull AnActionEvent e) { final ResourceBundleEditor editor = getEditor(e); e.getPresentation().setEnabledAndVisible(editor != null && editor.getSelectedElementIfOnlyOne() instanceof PropertyStructureViewElement); } | update |
26,311 | ResourceBundleEditor (@NotNull AnActionEvent e) { final FileEditor editor = e.getData(PlatformCoreDataKeys.FILE_EDITOR); return editor instanceof ResourceBundleEditor ? (ResourceBundleEditor)editor : null; } | getEditor |
26,312 | String () { return getFamilyName(); } | getText |
26,313 | String () { return getQuickFix().getFamilyName(); } | getFamilyName |
26,314 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return true; } | isAvailable |
26,315 | boolean () { return false; } | startInWriteAction |
26,316 | QuickFix<ResourceBundleEditorProblemDescriptor> () { return myDescriptor.getFixes()[myIndex]; } | getQuickFix |
26,317 | TextAttributes (EditorColorsScheme colorsScheme) { if (myInspectedPropertyProblems != null) { return myInspectedPropertyProblems.getTextAttributes(colorsScheme); } return null; } | getErrorTextAttributes |
26,318 | void (InspectedPropertyProblems inspectedPropertyProblems) { myInspectedPropertyProblems = inspectedPropertyProblems; } | setInspectedPropertyProblems |
26,319 | void (String separator) { myByWordPrefixesGrouper.setSeparator(separator); PropertiesSeparatorManager.getInstance(myResourceBundle.getProject()).setSeparator(myResourceBundle, separator); } | setSeparator |
26,320 | void (boolean showOnlyIncomplete) { myRoot.setShowOnlyIncomplete(showOnlyIncomplete); } | setShowOnlyIncomplete |
26,321 | boolean () { return myRoot.isShowOnlyIncomplete(); } | isShowOnlyIncomplete |
26,322 | String () { return myByWordPrefixesGrouper.getSeparator(); } | getSeparator |
26,323 | void (boolean state) { myGrouped = state; } | setGroupingActive |
26,324 | StructureViewTreeElement () { return myRoot; } | getRoot |
26,325 | Object () { return null; } | getCurrentEditorElement |
26,326 | void (@NotNull FileEditorPositionListener listener) { } | addEditorPositionListener |
26,327 | void (@NotNull FileEditorPositionListener listener) { } | removeEditorPositionListener |
26,328 | void (@NotNull ModelListener modelListener) { } | addModelListener |
26,329 | void (@NotNull ModelListener modelListener) { } | removeModelListener |
26,330 | void () { } | dispose |
26,331 | boolean (final Object element) { return false; } | shouldEnterElement |
26,332 | boolean (final StructureViewTreeElement element) { return false; } | isAlwaysShowsPlus |
26,333 | boolean (final StructureViewTreeElement element) { return element instanceof PropertyStructureViewElement; } | isAlwaysLeaf |
26,334 | void () { throw new IllegalStateException(); } | run |
26,335 | void () { FileDocumentManager.getInstance().saveAllDocuments(); myEventsProcessor.flush(); } | flush |
26,336 | void (@NotNull VirtualFileEvent event) { myEventsProcessor.queue(event, EventType.FILE_CREATED); } | fileCreated |
26,337 | void (@NotNull VirtualFileEvent event) { myEventsProcessor.queue(event, EventType.FILE_DELETED); } | fileDeleted |
26,338 | void (@NotNull VirtualFilePropertyEvent event) { myEventsProcessor.queue(event, EventType.PROPERTY_CHANGED); } | propertyChanged |
26,339 | void (@NotNull VirtualFileEvent event) { myEventsProcessor.queue(event, EventType.CONTENT_CHANGED); } | contentsChanged |
26,340 | void (Update @NotNull [] updates) { final ReadTask task = new ReadTask() { final Set<EventWithType> myEvents = myEventQueue.getAndSet(ConcurrentCollectionFactory.createConcurrentSet()); @Nullable @Override public Continuation performInReadAction(@NotNull ProgressIndicator indicator) throws ProcessCanceledException { if... | execute |
26,341 | void (@NotNull ProgressIndicator indicator) { myEventQueue.updateAndGet(s -> { s.addAll(myEvents); return s; }); myUpdateQueue.queue(FORCE_UPDATE); } | onCanceled |
26,342 | void (VirtualFileEvent event, EventType type) { myEventQueue.updateAndGet(s -> { s.add(new EventWithType(type, event)); return s; }); myUpdateQueue.queue(FORCE_UPDATE); } | queue |
26,343 | void () { myUpdateQueue.flush(); } | flush |
26,344 | void (VirtualFile virtualFile, boolean isViewer) { myFiles.add(virtualFile); myIsViewer.add(isViewer); } | addFile |
26,345 | void () { for (int i = 0; i < myFiles.size(); i++) { VirtualFile file = myFiles.get(i); final Boolean viewer = myIsViewer.get(i); final EditorEx editor = myEditor.getTranslationEditors().get(file); if (editor != null) { editor.setViewer(viewer); } } } | run |
26,346 | EventType () { return myType; } | getType |
26,347 | VirtualFile () { return myFile; } | getFile |
26,348 | String () { LOG.assertTrue(myType == EventType.PROPERTY_CHANGED, "Unexpected event type: " + myType); return Objects.requireNonNull(myPropertyName); } | getPropertyName |
26,349 | Object () { LOG.assertTrue(myType == EventType.PROPERTY_CHANGED, "Unexpected event type: " + myType); return Objects.requireNonNull(myPropertyNewValue); } | getPropertyNewValue |
26,350 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EventWithType type = (EventWithType)o; if (myType != type.myType) return false; if (!myFile.equals(type.myFile)) return false; if (!Objects.equals(myPropertyName, type.myPropertyName)) return false; if (!Objects.... | equals |
26,351 | int () { int result = myType.hashCode(); result = 31 * result + myFile.hashCode(); result = 31 * result + (myPropertyName != null ? myPropertyName.hashCode() : 0); result = 31 * result + (myPropertyNewValue != null ? myPropertyNewValue.hashCode() : 0); return result; } | hashCode |
26,352 | boolean (final @NotNull Project project, final @NotNull VirtualFile file) { if (file instanceof ResourceBundleAsVirtualFile) { return true; } if (!file.isValid()) { return false; } FileType type = file.getFileType(); if (type != PropertiesFileType.INSTANCE && type != StdFileTypes.XML) { return false; } return ReadActio... | accept |
26,353 | boolean () { return false; } | acceptRequiresReadAction |
26,354 | FileEditor (@NotNull Project project, @NotNull VirtualFile file) { ResourceBundle resourceBundle; if (file instanceof ResourceBundleAsVirtualFile) { resourceBundle = ((ResourceBundleAsVirtualFile)file).getResourceBundle(); } else { PsiFile psiFile = PsiManager.getInstance(project).findFile(file); if (psiFile == null) {... | createEditor |
26,355 | FileEditorState (@NotNull Element element, @NotNull Project project, @NotNull VirtualFile file) { return new ResourceBundleEditor.ResourceBundleEditorState(null); } | readState |
26,356 | FileEditorPolicy () { return FileEditorPolicy.PLACE_AFTER_DEFAULT_EDITOR; } | getPolicy |
26,357 | String () { return "ResourceBundle"; } | getEditorTypeId |
26,358 | void (@NotNull final AnActionEvent e) { IdeFocusManager.getGlobalInstance() .doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(getNext(e).getContentComponent(), true)); } | actionPerformed |
26,359 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
26,360 | void (@NotNull AnActionEvent e) { boolean enabled = getNext(e) != null; e.getPresentation().setEnabled(enabled); } | update |
26,361 | Editor (@NotNull AnActionEvent e) { final Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor == null) { return null; } return editor.getUserData(myNext ? NEXT_EDITOR_KEY : PREV_EDITOR_KEY); } | getNext |
26,362 | ProblemHighlightType () { return myHighlightType; } | getHighlightType |
26,363 | String () { return myDescriptionTemplate; } | getDescriptionTemplate |
26,364 | TextAttributes (EditorColorsScheme scheme) { TextAttributes mixedAttributes = null; for (HighlightInfoType type : myHighlightTypes) { final TextAttributes current = scheme.getAttributes(type.getAttributesKey()); if (mixedAttributes == null) { mixedAttributes = current; } else { mixedAttributes = TextAttributes.merge(mi... | getTextAttributes |
26,365 | void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (customize(value)) { return; } super.customizeCellRenderer(tree, value, selected, expanded, leaf, row, hasFocus); } | customizeCellRenderer |
26,366 | boolean (Object value) { final Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (!(userObject instanceof TreeElementWrapper)) { return false; } final TreeElement treeElement = ((TreeElementWrapper)userObject).getValue(); if (treeElement == null) { return false; } final ItemPresentation presentati... | customize |
26,367 | IncompletePropertyInspection (PsiElement element) { final InspectionProjectProfileManager profileManager = InspectionProjectProfileManager.getInstance(element.getProject()); InspectionProfile inspectionProfile = profileManager.getCurrentProfile(); return (IncompletePropertyInspection) inspectionProfile.getUnwrappedTool... | getInstance |
26,368 | String () { return ResourceBundleEditorBundle.message("incomplete.property.quick.fix.name"); } | getFamilyName |
26,369 | boolean () { return false; } | startInWriteAction |
26,370 | void (@NotNull Project project, @NotNull ResourceBundleEditorProblemDescriptor descriptor) { final PsiElement element = myElementPointer.getElement(); if (element == null) { return; } final IProperty property = PropertiesImplUtil.getProperty(element); if (property == null) { return; } final IncompletePropertyInspection... | applyFix |
26,371 | boolean (final String key, final ResourceBundle resourceBundle) { return isPropertyComplete(resourceBundle.getPropertiesFiles().stream().map(f -> f.findPropertyByKey(key)).filter(Objects::nonNull).toArray(IProperty[]::new), resourceBundle); } | isPropertyComplete |
26,372 | boolean (final IProperty[] properties, final ResourceBundle resourceBundle) { final Set<PropertiesFile> existed = ContainerUtil.map2Set(properties, IProperty::getPropertiesFile); for (PropertiesFile file : resourceBundle.getPropertiesFiles()) { if (!existed.contains(file) && !getIgnoredSuffixes().contains(PropertiesUti... | isPropertyComplete |
26,373 | Set<String> () { return mySuffixes; } | getIgnoredSuffixes |
26,374 | List<PropertiesFile> (final ResourceBundle resourceBundle, final String key) { return ContainerUtil.filter(resourceBundle.getPropertiesFiles(), propertiesFile -> propertiesFile.findPropertyByKey(key) == null && !getIgnoredSuffixes().contains(PropertiesUtil.getSuffix(propertiesFile))); } | getPropertiesFilesWithoutTranslation |
26,375 | void (Collection<String> suffixes) { mySuffixes.addAll(suffixes); } | addSuffixes |
26,376 | JPanel () { JPanel panel = ToolbarDecorator .createDecorator(myList) .disableUpDownActions() .setAddAction(new AnActionButtonRunnable() { @Override public void run(AnActionButton button) { final String result = Messages.showInputDialog(CommonDataKeys.PROJECT.getData(button.getDataContext()), ResourceBundleEditorBundle.... | buildPanel |
26,377 | void (AnActionButton button) { final String result = Messages.showInputDialog(CommonDataKeys.PROJECT.getData(button.getDataContext()), ResourceBundleEditorBundle.message("incomplete.property.add.ignored.suffixes.dialog.message"), ResourceBundleEditorBundle.message("incomplete.property.add.ignored.suffixes.dialog.title"... | run |
26,378 | void (AnActionButton button) { for (String s : myList.getSelectedValuesList()) { mySuffixes.remove(s); } changed(); } | run |
26,379 | void (@NotNull JList list, @NlsSafe String suffix, int index, boolean selected, boolean hasFocus) { append(suffix); final Locale locale = PropertiesUtil.getLocale("_" + suffix + ".properties"); if (locale != PropertiesUtil.DEFAULT_LOCALE) { if (PropertiesUtil.hasDefaultLanguage(locale)) { append(" "); append(Properties... | customizeCellRenderer |
26,380 | boolean (Project project) { return new DialogWrapper(project) { { init(); setTitle(ResourceBundleEditorBundle.message("incomplete.property.locales.to.ignore.dialog.title")); } @Override protected JComponent createCenterPanel() { return buildPanel(); } }.showAndGet(); } | showDialogAndGet |
26,381 | JComponent () { return buildPanel(); } | createCenterPanel |
26,382 | void () { ((MyListModel)myList.getModel()).modified(); } | changed |
26,383 | int () { return mySuffixes.size(); } | getSize |
26,384 | String (int index) { return ArrayUtilRt.toStringArray(mySuffixes)[index]; } | getElementAt |
26,385 | void () { fireContentsChanged(this, -1, -1); } | modified |
26,386 | String () { return PropertiesBundle.message("remove.property.intention.text"); } | getFamilyName |
26,387 | boolean () { return false; } | startInWriteAction |
26,388 | void (@NotNull Project project, @NotNull ResourceBundleEditorProblemDescriptor descriptor) { final Property element = myRepresentativePointer.getElement(); if (element == null) return; final String key = element.getKey(); if (key == null) return; final PropertiesFile file = PropertiesImplUtil.getPropertiesFile(myRepres... | applyFix |
26,389 | Set<String> () { return myDissociatedFiles; } | getDissociatedFiles |
26,390 | List<CustomResourceBundleState> () { return myCustomResourceBundles; } | getCustomResourceBundles |
26,391 | boolean () { return myCustomResourceBundles.isEmpty() && myDissociatedFiles.isEmpty(); } | isEmpty |
26,392 | ResourceBundleManagerState () { final ResourceBundleManagerState newState = new ResourceBundleManagerState(); final VirtualFileManager virtualFileManager = VirtualFileManager.getInstance(); for (final String dissociatedFileUrl : myDissociatedFiles) { if (virtualFileManager.findFileByUrl(dissociatedFileUrl) != null) { n... | removeNonExistentFiles |
26,393 | LocalQuickFix (PsiElement element, String key, List<PropertiesFile> files) { return QuickFixes.EMPTY_ACTION; } | createCreatePropertyFix |
26,394 | IntentionAction (@NotNull Property property) { return QuickFixes.EMPTY_ACTION; } | createRemovePropertyFix |
26,395 | LocalQuickFix (@NotNull Property property) { return QuickFixes.EMPTY_ACTION; } | createRemovePropertyLocalFix |
26,396 | PropertiesFile (@NotNull String bundleName, @NotNull Module searchFromModule, @Nullable Locale locale) { PropertiesReferenceManager manager = PropertiesReferenceManager.getInstance(searchFromModule.getProject()); return manager.findPropertiesFile(searchFromModule, bundleName, locale); } | getPropertiesFile |
26,397 | ResourceBundleWithCachedFiles (@NotNull final PropertiesFile representative) { return ReadAction.compute(() -> { final PsiFile containingFile = representative.getContainingFile(); if (!containingFile.isValid()) { return ResourceBundleWithCachedFiles.EMPTY; } final ResourceBundleManager manager = ResourceBundleManager.g... | getResourceBundleWithCachedFiles |
26,398 | List<PropertiesFile> (@NotNull PropertiesFile representative) { return getResourceBundleWithCachedFiles(representative).getFiles(); } | getResourceBundleFiles |
26,399 | ResourceBundle (@NotNull PropertiesFile representative) { return getResourceBundleWithCachedFiles(representative).getBundle(); } | getResourceBundle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.