Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
47,500 | boolean (String inputString) { return checkInput(inputString); } | canClose |
47,501 | IndentProperty (Project project) { return project.getService(IndentProperty.class); } | getInstance |
47,502 | Integer (RadComponent component) { return component.getConstraints().getIndent(); } | getValue |
47,503 | HGapProperty (Project project) { return project.getService(HGapProperty.class); } | getInstance |
47,504 | Integer (final RadContainer component) { if (component.getLayout() instanceof BorderLayout) { BorderLayout layout = (BorderLayout) component.getLayout(); return layout.getHgap(); } if (component.getLayout() instanceof FlowLayout) { FlowLayout layout = (FlowLayout) component.getLayout(); return layout.getHgap(); } if (c... | getValue |
47,505 | int (final LayoutManager layout) { if (layout instanceof FlowLayout) { return 5; } if (layout instanceof BorderLayout || layout instanceof CardLayout) { return 0; } return -1; } | getDefaultGap |
47,506 | Integer (final RadComponent component) { //noinspection unchecked final Object parentValue = myParent.getValue(component); if (parentValue == null) return 0; try { return parentValue.getClass().getField(myFieldName).getInt(parentValue); } catch (Exception e) { throw new RuntimeException(e); } } | getValue |
47,507 | PropertyRenderer<Integer> () { return myRenderer; } | getRenderer |
47,508 | PropertyEditor<Integer> () { return myEditor; } | getEditor |
47,509 | SameSizeHorizontallyProperty (Project project) { return project.getService(SameSizeHorizontallyProperty.class); } | getInstance |
47,510 | boolean (GridLayoutManager gridLayoutManager) { return gridLayoutManager.isSameSizeHorizontally(); } | getGridLayoutPropertyValue |
47,511 | void (GridLayoutManager gridLayoutManager, boolean booleanValue) { gridLayoutManager.setSameSizeHorizontally(booleanValue); } | setGridLayoutPropertyValue |
47,512 | JLabel (final RadRootContainer rootContainer, final V value, final boolean selected, final boolean hasFocus) { // Reset text and icon setText(null); setIcon(null); // Background and foreground if(selected){ setForeground(UIUtil.getTableSelectionForeground()); setBackground(UIUtil.getTableSelectionBackground(true)); }el... | getComponent |
47,513 | void (@NotNull V value) { if (myStaticText == null) { @NlsSafe String s = value.toString(); setText(s); } else { setText(myStaticText); } } | customize |
47,514 | JLabel (final RadRootContainer rootContainer, final IconDescriptor iconDescriptor, final boolean selected, final boolean hasFocus) { if (iconDescriptor != null) { IntroIconProperty.ensureIconLoaded(rootContainer.getModule(), iconDescriptor); } final JLabel component = super.getComponent(rootContainer, iconDescriptor, s... | getComponent |
47,515 | void (@NotNull IconDescriptor value) { setIcon(value.getIcon()); @NlsSafe String path = value.getIconPath(); setText(path); } | customize |
47,516 | void (final String value) { final String className = PsiNameHelper.getShortClassName(value); if(value.length() == className.length()){ // class in default package setText(className); } else{ final String packageName = value.substring(0, value.length() - className.length() - 1); setText(UIDesignerBundle.message("class.i... | customize |
47,517 | void (@NotNull final StringDescriptor value) { @NlsSafe String resolvedValue = value.getResolvedValue(); if (resolvedValue == null) { resolvedValue = value.getValue(); } if (resolvedValue != null) { setText(StringUtil.escapeStringCharacters(resolvedValue)); } else { setText(""); } } | customize |
47,518 | JComponent (final RadRootContainer rootContainer, String value, boolean selected, boolean hasFocus) { clear(); setBackground(selected ? UIUtil.getTableSelectionBackground(true) : UIUtil.getTableBackground()); if (value != null && value.length() > 0) { RadComponent target = (RadComponent)FormEditingUtil.findComponent(ro... | getComponent |
47,519 | void (@Nullable final RadComponent target, boolean selected) { clear(); final SimpleTextAttributes baseAttributes = selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES; if (target == null) { append(UIDesignerBundle.message("component.none"), baseAttributes); ret... | renderComponent |
47,520 | void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { renderComponent((RadComponent) value, false); } | customizeCellRenderer |
47,521 | JComponent (final RadRootContainer rootContainer, final Boolean value, final boolean selected, final boolean hasFocus) { // Background and foreground if(selected){ setForeground(UIUtil.getTableSelectionForeground()); setBackground(UIUtil.getTableSelectionBackground(true)); }else{ setForeground(UIUtil.getTableForeground... | getComponent |
47,522 | void (@NotNull final Insets value) { setText(formatText(value)); } | customize |
47,523 | void (final Rectangle value) { myBuffer.setLength(0); myBuffer.append('[').append(value.x).append(", "); myBuffer.append(value.y).append(", "); myBuffer.append(value.width).append(", "); myBuffer.append(value.height).append("]"); @NlsSafe String text = myBuffer.substring(0, myBuffer.length()); // [jeka] important! do n... | customize |
47,524 | void (@NotNull final Integer value) { final int policy=value.intValue(); myBuffer.setLength(0); if((policy & GridConstraints.SIZEPOLICY_CAN_SHRINK) != 0){ myBuffer.append(UIDesignerBundle.message("property.can.shrink")); } if((policy & GridConstraints.SIZEPOLICY_CAN_GROW) != 0){ if(myBuffer.length()>0){ myBuffer.append... | customize |
47,525 | void (@NotNull FontDescriptor value) { setText(IntroFontProperty.descriptorToString(value)); setForeground(value.isValid() ? null : JBColor.red); } | customize |
47,526 | JComponent (RadRootContainer rootContainer, ColorDescriptor value, boolean selected, boolean hasFocus) { prepareComponent(value, selected); return this; } | getComponent |
47,527 | void (final ColorDescriptor value, final boolean selected) { myColorDescriptor = value; clear(); setIcon(AllIcons.Nodes.EmptyNode); setBackground(selected ? UIUtil.getTableSelectionBackground(true) : UIUtil.getTableBackground()); if (myColorDescriptor != null) { @NlsSafe String fragment = myColorDescriptor.toString(); ... | prepareComponent |
47,528 | void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { prepareComponent((ColorDescriptor) value, selected); } | customizeCellRenderer |
47,529 | void (@NotNull final Integer value) { // Find pair for(int i = myPairs.length - 1; i >= 0; i--){ if(myPairs[i].myValue == value.intValue()){ @NlsSafe String text = myPairs[i].myText; setText(text); return; } } throw new IllegalArgumentException("unknown value: " + value); } | customize |
47,530 | void (@NotNull final Dimension value) { setText("[" + value.width + ", " + value.height + "]"); } | customize |
47,531 | String (final PsiFile file, final String fileText, final String nameWithoutExtension) { if (GuiFormFileType.INSTANCE.equals(file.getFileType())) { LwRootContainer rootContainer = null; try { rootContainer = Utils.getRootContainer(fileText, null); } catch (Exception ignored) { } if (rootContainer != null && rootContaine... | getTemplateText |
47,532 | boolean (@NotNull final FileTemplate template) { FileType fileType = FileTypeManagerEx.getInstanceEx().getFileTypeByExtension(template.getExtension()); return fileType.equals(GuiFormFileType.INSTANCE); } | handlesTemplate |
47,533 | boolean (final PsiDirectory @NotNull [] dirs) { for (PsiDirectory dir : dirs) { if (JavaDirectoryService.getInstance().getPackage(dir) != null) return true; } return false; } | canCreate |
47,534 | void () { myEditorTextField1 = new EditorTextField("", myProject, JavaFileType.INSTANCE); final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myProject); PsiPackage defaultPackage = JavaPsiFacade.getInstance(myProject).findPackage(""); final PsiCodeFragment fragment = factory.createReferenceCode... | createUIComponents |
47,535 | JComponent () { return myEditorTextField1; } | getPreferredFocusedComponent |
47,536 | JComponent () { return myRootPanel; } | createCenterPanel |
47,537 | String () { return myEditorTextField1.getDocument().getText(); } | getClassName |
47,538 | JComponent () { return myRootPanel; } | createCenterPanel |
47,539 | JComponent () { return myPropertyNameTextField; } | getPreferredFocusedComponent |
47,540 | ClientPropertiesManager (@NotNull Project project) { return project.getService(ClientPropertiesManager.class); } | getInstance |
47,541 | ClientPropertiesManager () { return new ClientPropertiesManager(myPropertyMap); } | clone |
47,542 | void (final ClientPropertiesManager manager) { myPropertyMap.clear(); myPropertyMap.putAll(manager.myPropertyMap); } | saveFrom |
47,543 | String () { return myName; } | getName |
47,544 | String () { return myClass; } | getValueClass |
47,545 | int (final Object o) { ClientProperty prop = (ClientProperty) o; return myName.compareTo(prop.getName()); } | compareTo |
47,546 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final ClientProperty that = (ClientProperty)o; if (!myClass.equals(that.myClass)) return false; if (!myName.equals(that.myName)) return false; return true; } | equals |
47,547 | int () { int result; result = myName.hashCode(); result = 31 * result + myClass.hashCode(); return result; } | hashCode |
47,548 | void (@NotNull Element state) { myPropertyMap.clear(); for (Element propertiesElement : state.getChildren(ELEMENT_PROPERTIES)) { String aClass = propertiesElement.getAttributeValue(ATTRIBUTE_CLASS); List<ClientProperty> classProps = new ArrayList<>(); for (Element propertyElement : propertiesElement.getChildren(ELEMENT... | loadState |
47,549 | Element () { Element element = new Element("state"); if (equals(ourDefaultManager.getValue())) { return element; } for (Map.Entry<String, List<ClientProperty>> entry : myPropertyMap.entrySet()) { Element propertiesElement = new Element(ELEMENT_PROPERTIES); propertiesElement.setAttribute(ATTRIBUTE_CLASS, entry.getKey())... | getState |
47,550 | void (final Class selectedClass, final ClientProperty enteredProperty) { List<ClientProperty> list = myPropertyMap.get(selectedClass.getName()); if (list == null) { list = new ArrayList<>(); myPropertyMap.put(selectedClass.getName(), list); } list.add(enteredProperty); } | addConfiguredProperty |
47,551 | void (final Class selectedClass, final String name) { List<ClientProperty> list = myPropertyMap.get(selectedClass.getName()); if (list != null) { for(ClientProperty prop: list) { if (prop.getName().equals(name)) { list.remove(prop); break; } } } } | removeConfiguredProperty |
47,552 | void (final String className) { if (!myPropertyMap.containsKey(className)) { myPropertyMap.put(className, new ArrayList<>()); } } | addClientPropertyClass |
47,553 | void (final Class<?> selectedClass) { myPropertyMap.remove(selectedClass.getName()); } | removeClientPropertyClass |
47,554 | List<ClientProperty> (Class<?> componentClass) { List<ClientProperty> list = myPropertyMap.get(componentClass.getName()); if (list == null) { return Collections.emptyList(); } return new ArrayList<>(list); } | getConfiguredProperties |
47,555 | List<ClientProperty> (Class componentClass) { List<ClientProperty> result = new ArrayList<>(); while(!componentClass.getName().equals(Object.class.getName())) { List<ClientProperty> props = myPropertyMap.get(componentClass.getName()); if (props != null) { result.addAll(props); } componentClass = componentClass.getSuper... | getClientProperties |
47,556 | boolean (Object obj) { if (!(obj instanceof ClientPropertiesManager rhs)) { return false; } if (rhs.myPropertyMap.size() != myPropertyMap.size()) { return false; } for(Map.Entry<String, List<ClientProperty>> entry: myPropertyMap.entrySet()) { List<ClientProperty> rhsList = rhs.myPropertyMap.get(entry.getKey()); if (rhs... | equals |
47,557 | void () { ClientPropertiesManager.getInstance(myProject).saveFrom(myManager); } | save |
47,558 | void () { mySelectedProperties = myManager.getConfiguredProperties(mySelectedClass); myTableModel.fireTableDataChanged(); } | updateSelectedProperties |
47,559 | JComponent () { myClassTree = new Tree(); myClassTree.setRootVisible(false); myClassTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { @Override public void valueChanged(TreeSelectionEvent e) { final TreePath leadSelectionPath = e.getNewLeadSelectionPath(); if (leadSelectionPath == null) re... | createCenterPanel |
47,560 | void (TreeSelectionEvent e) { final TreePath leadSelectionPath = e.getNewLeadSelectionPath(); if (leadSelectionPath == null) return; final DefaultMutableTreeNode node = (DefaultMutableTreeNode)leadSelectionPath.getLastPathComponent(); mySelectedClass = (Class<?>)node.getUserObject(); updateSelectedProperties(); } | valueChanged |
47,561 | void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)value; if (node.getUserObject() instanceof Class<?> cls) { @NlsSafe String name = cls.getName(); append(name, SimpleTextAttributes.REGULAR_ATTRIBU... | customizeCellRenderer |
47,562 | void (AnActionButton button) { ClassNameInputDialog dlg = new ClassNameInputDialog(myProject, mySplitter); dlg.show(); if (dlg.getExitCode() == OK_EXIT_CODE) { String className = dlg.getClassName(); if (className.isEmpty()) return; final Class<?> aClass; try { aClass = Class.forName(className, true, LoaderFactory.getIn... | run |
47,563 | void (AnActionButton button) { if (mySelectedClass != null) { myManager.removeClientPropertyClass(mySelectedClass); fillClassTree(); } } | run |
47,564 | void (AnActionButton button) { AddClientPropertyDialog dlg = new AddClientPropertyDialog(myProject); dlg.show(); if (dlg.getExitCode() == OK_EXIT_CODE) { for (ClientPropertiesManager.ClientProperty prop : myManager.getClientProperties(mySelectedClass)) { if (prop.getName().equalsIgnoreCase(dlg.getEnteredProperty().getN... | run |
47,565 | void (AnActionButton button) { int row = myPropertiesTable.getSelectedRow(); if (row >= 0 && row < mySelectedProperties.size()) { myManager.removeConfiguredProperty(mySelectedClass, mySelectedProperties.get(row).getName()); updateSelectedProperties(); if (!mySelectedProperties.isEmpty()) { if (row >= mySelectedProperti... | run |
47,566 | int (Class<?> aClass) { int level = 0; while (aClass.getSuperclass() != null) { level++; aClass = aClass.getSuperclass(); } return level; } | getInheritanceLevel |
47,567 | void () { List<Class<?>> configuredClasses = myManager.getConfiguredClasses(myProject); configuredClasses.sort(Comparator.comparingInt(ConfigureClientPropertiesDialog::getInheritanceLevel)); DefaultMutableTreeNode root = new DefaultMutableTreeNode(); DefaultTreeModel treeModel = new DefaultTreeModel(root); Map<Class<?>... | fillClassTree |
47,568 | String () { return "ConfigureClientPropertiesDialog"; } | getDimensionServiceKey |
47,569 | int () { return mySelectedProperties.size(); } | getRowCount |
47,570 | int () { return 2; } | getColumnCount |
47,571 | Object (int rowIndex, int columnIndex) { if (columnIndex == 0) { return mySelectedProperties.get(rowIndex).getName(); } return mySelectedProperties.get(rowIndex).getValueClass(); } | getValueAt |
47,572 | String (int column) { if (column == 0) { return UIDesignerBundle.message("client.properties.name"); } return UIDesignerBundle.message("client.properties.class"); } | getColumnName |
47,573 | boolean (@NotNull final ReferencesSearch.SearchParameters p, @NotNull final Processor<? super PsiReference> consumer) { SearchScope userScope = p.getScopeDeterminedByUser(); if (!scopeCanContainForms(userScope)) return true; final PsiElement refElement = p.getElementToSearch(); final PsiFile psiFile = ReadAction.comput... | execute |
47,574 | boolean (SearchScope scope) { if (!(scope instanceof LocalSearchScope localSearchScope)) return true; final PsiElement[] elements = localSearchScope.getScope(); for (final PsiElement element : elements) { if (element instanceof PsiDirectory) return true; boolean isForm = ReadAction.compute(() -> { PsiFile file; if (ele... | scopeCanContainForms |
47,575 | boolean (Processor<? super PsiReference> processor, PsiManager psiManager, final PsiClass aClass, GlobalSearchScope scope, final LocalSearchScope filterScope) { String className = getQualifiedName(aClass); return className == null || processReferencesInUIFormsInner(className, aClass, processor, scope, psiManager, filte... | processReferencesInUIForms |
47,576 | String (final PsiClass aClass) { return ReadAction.compute(() -> { if (!aClass.isValid()) return null; return aClass.getQualifiedName(); }); } | getQualifiedName |
47,577 | boolean (Processor<? super PsiReference> processor, PsiManager psiManager, final PsiEnumConstant enumConstant, GlobalSearchScope scope, final LocalSearchScope filterScope) { String className = ReadAction.compute(() -> enumConstant.getName()); return processReferencesInUIFormsInner(className, enumConstant, processor, sc... | processEnumReferencesInUIForms |
47,578 | boolean (String name, PsiElement element, Processor<? super PsiReference> processor, GlobalSearchScope scope1, PsiManager manager, final LocalSearchScope filterScope) { GlobalSearchScope scope = GlobalSearchScope.projectScope(manager.getProject()).intersectWith(scope1); List<PsiFile> files = FormClassIndex.findFormsBou... | processReferencesInUIFormsInner |
47,579 | boolean (Processor<? super PsiReference> processor, PsiManager psiManager, PsiField field, GlobalSearchScope scope1, LocalSearchScope filterScope) { GlobalSearchScope scope = GlobalSearchScope.projectScope(psiManager.getProject()).intersectWith(scope1); PsiClass containingClass = ReadAction.compute(() -> field.getConta... | processReferencesInUIForms |
47,580 | boolean (final Processor<? super PsiReference> processor, final PsiFile file, String name, final PsiElement element, final LocalSearchScope filterScope) { CharSequence chars = ApplicationManager.getApplication().runReadAction((NullableComputable<CharSequence>)() -> { if (filterScope != null) { boolean isInScope = false... | processReferences |
47,581 | boolean (final Processor<? super PsiReference> processor, PsiManager psiManager, final Property property, final GlobalSearchScope globalSearchScope, final LocalSearchScope filterScope) { final Project project = psiManager.getProject(); final GlobalSearchScope scope = GlobalSearchScope.projectScope(project).intersectWit... | processReferencesInUIForms |
47,582 | boolean (VirtualFile virtualFile) { return FileTypeRegistry.getInstance().isFileOfType(virtualFile, GuiFormFileType.INSTANCE); } | accept |
47,583 | boolean (final Processor<? super PsiReference> processor, PsiManager psiManager, final PropertiesFile propFile, final GlobalSearchScope globalSearchScope, final LocalSearchScope filterScope) { final Project project = psiManager.getProject(); GlobalSearchScope scope = GlobalSearchScope.projectScope(project).intersectWit... | processReferencesInUIForms |
47,584 | boolean (List<PsiFile> files, PsiManager psiManager, String baseName, PsiElement element, LocalSearchScope filterScope, Processor<? super PsiReference> processor) { return psiManager.runInBatchFilesMode(() -> { for (PsiFile file : files) { ProgressManager.checkCanceled(); if (file.getFileType() != GuiFormFileType.INSTA... | processReferencesInFiles |
47,585 | PsiElement () { final Module module = ModuleUtilCore.findModuleForFile(myFile); if (module == null) { return null; } final VirtualFile formFile = ResourceFileUtil.findResourceFileInDependents(module, getRangeText()); if (formFile == null) { return null; } return myFile.getManager().findFile(formFile); } | resolve |
47,586 | PsiElement (@NotNull final String newElementName) { return handleFileRename(newElementName, "", true); } | handleElementRename |
47,587 | PsiElement () { final PsiElement element = myClassReference.resolve(); if(element instanceof PsiClass){ return ((PsiClass)element).findFieldByName(getRangeText(), true); } return null; } | resolve |
47,588 | String () { return myComponentClassName; } | getComponentClassName |
47,589 | TextRange () { return myComponentClassNameRange; } | getComponentClassNameTextRange |
47,590 | boolean () { return myCustomCreate; } | isCustomCreate |
47,591 | Icon () { if (myIcon != null) { return myIcon; } return PlatformIcons.UI_FORM_ICON; } | getIcon |
47,592 | boolean () { return true; } | isNavigateAction |
47,593 | AnAction () { return new AnAction() { @Override public void actionPerformed(@NotNull AnActionEvent e) { List<PsiFile> formFiles = getBoundFormFiles(); if (formFiles.size() > 0) { final VirtualFile virtualFile = formFiles.get(0).getVirtualFile(); if (virtualFile == null) { return; } Project project = myElement.getProjec... | getClickAction |
47,594 | void (@NotNull AnActionEvent e) { List<PsiFile> formFiles = getBoundFormFiles(); if (formFiles.size() > 0) { final VirtualFile virtualFile = formFiles.get(0).getVirtualFile(); if (virtualFile == null) { return; } Project project = myElement.getProject(); FileEditor[] editors = FileEditorManager.getInstance(project).ope... | actionPerformed |
47,595 | String () { List<PsiFile> formFiles = getBoundFormFiles(); if (formFiles.size() > 0) { return composeText(formFiles); } return super.getTooltipText(); } | getTooltipText |
47,596 | List<PsiFile> () { List<PsiFile> formFiles = Collections.emptyList(); PsiClass aClass; if (myElement instanceof PsiField) { aClass = ((PsiField) myElement).getContainingClass(); } else { aClass = (PsiClass) myElement; } if (aClass != null && aClass.getQualifiedName() != null) { formFiles = FormClassIndex.findFormsBound... | getBoundFormFiles |
47,597 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; BoundIconRenderer that = (BoundIconRenderer)o; if (!myQName.equals(that.myQName)) return false; if (myIcon != null ? !myIcon.equals(that.myIcon) : that.myIcon != null) return false; return true; } | equals |
47,598 | int () { int result = myElement.hashCode(); result = 31 * result + (myIcon != null ? myIcon.hashCode() : 0); return result; } | hashCode |
47,599 | UsageType (@NotNull PsiElement element) { final PsiFile psiFile = element.getContainingFile(); if (psiFile != null && psiFile.getFileType() == GuiFormFileType.INSTANCE) { return FORM_USAGE_TYPE; } return null; } | getUsageType |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.