Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
47,200 | void () { SwingUtilities.updateComponentTreeUI(myCbx); final ListCellRenderer renderer = myCbx.getRenderer(); if (renderer instanceof JComponent) { SwingUtilities.updateComponentTreeUI((JComponent)renderer); } } | updateUI |
47,201 | void (final PopupMenuEvent e) { myCancelled=false; } | popupMenuWillBecomeVisible |
47,202 | void (final PopupMenuEvent e) { if(!myCancelled){ fireValueCommitted(true, true); } } | popupMenuWillBecomeInvisible |
47,203 | void (final PopupMenuEvent e) { myCancelled=true; } | popupMenuCanceled |
47,204 | JComponent () { return myRootPanel; } | createCenterPanel |
47,205 | String () { return "UIDesigner.ListEditorDialog"; } | getDimensionServiceKey |
47,206 | String[] () { final String text = myLinesTextArea.getText(); if (text.length() == 0) return ArrayUtilRt.EMPTY_STRING_ARRAY; return text.split("\n"); } | getValue |
47,207 | void (final String[] value) { myLinesTextArea.setText(value == null ? "" : StringUtil.join(value, "\n")); } | setValue |
47,208 | JComponent () { return myLinesTextArea; } | getPreferredFocusedComponent |
47,209 | void (ActionEvent e) { showFontEditorDialog(); } | actionPerformed |
47,210 | void () { FontEditorDialog dlg = new FontEditorDialog(myProject, myPropertyName); dlg.setValue(myValue); dlg.show(); if (dlg.getExitCode() == DialogWrapper.OK_EXIT_CODE) { myValue = dlg.getValue(); myTextField.setText(IntroFontProperty.descriptorToString(myValue)); fireValueCommitted(true, false); } } | showFontEditorDialog |
47,211 | JComponent (RadComponent component, FontDescriptor value, InplaceContext inplaceContext) { myProject = component.getProject(); myValue = value != null ? value : new FontDescriptor(null, -1, -1); myTextField.setText(IntroFontProperty.descriptorToString(myValue)); return myTextField; } | getComponent |
47,212 | void () { SwingUtilities.updateComponentTreeUI(myTextField); } | updateUI |
47,213 | void (ListSelectionEvent e) { final Integer selValue = Integer.valueOf(myFontSizeList.getSelectedValue().toString()); myFontSizeEdit.setValue(selValue); updateValue(); } | valueChanged |
47,214 | void (ChangeEvent e) { @NlsSafe String value = myFontSizeEdit.getValue().toString(); myFontSizeList.setSelectedValue(value, true); updateValue(); } | stateChanged |
47,215 | void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { FontDescriptor descriptor = (FontDescriptor) value; clear(); @NlsSafe String font = descriptor.getSwingFont(); append(font, selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.SIMPLE_CELL_ATTRIBU... | customizeCellRenderer |
47,216 | void (ListSelectionEvent e) { myValue = (FontDescriptor)mySwingFontList.getSelectedValue(); updatePreview(); //showFont(myValue.getResolvedFont()); } | valueChanged |
47,217 | void (ChangeEvent e) { myFontNameList.setEnabled(myFontNameCheckbox.isSelected()); updateValue(); } | stateChanged |
47,218 | void (ItemEvent e) { myFontStyleList.setEnabled(myFontStyleCheckbox.isSelected()); updateValue(); } | itemStateChanged |
47,219 | void (ChangeEvent e) { myFontSizeList.setEnabled(myFontSizeCheckbox.isSelected()); myFontSizeEdit.setEnabled(myFontSizeCheckbox.isSelected()); updateValue(); } | stateChanged |
47,220 | FontDescriptor[] () { ArrayList<FontDescriptor> result = new ArrayList<>(); UIDefaults defaults = UIManager.getDefaults(); Enumeration e = defaults.keys (); while(e.hasMoreElements()) { Object key = e.nextElement(); Object value = defaults.get(key); if (key instanceof String && value instanceof Font) { result.add(FontD... | collectSwingFontDescriptors |
47,221 | FontDescriptor () { return myValue; } | getValue |
47,222 | void (@NotNull final FontDescriptor value) { myValue = value; if (value.getSwingFont() != null) { myTabbedPane.setSelectedIndex(1); mySwingFontList.setSelectedValue(myValue, true); } else { myFontNameCheckbox.setSelected(value.getFontName() != null); myFontSizeCheckbox.setSelected(value.getFontSize() >= 0); myFontStyle... | setValue |
47,223 | void () { final int fontSize = ((Integer)myFontSizeEdit.getValue()).intValue(); myValue = new FontDescriptor(myFontNameCheckbox.isSelected() ? toString(myFontNameList.getSelectedValue()) : null, myFontStyleCheckbox.isSelected() ? myFontStyleList.getSelectedIndex() : -1, myFontSizeCheckbox.isSelected() ? fontSize : -1);... | updateValue |
47,224 | void () { myPreviewTextLabel.setText(IntroFontProperty.descriptorToString(myValue)); myPreviewTextLabel.setFont(myValue.getResolvedFont(myRootPane.getFont())); } | updatePreview |
47,225 | JComponent () { return myRootPane; } | createCenterPanel |
47,226 | void (ListSelectionEvent e) { JList sourceList = (JList) e.getSource(); final Object selValue = sourceList.getSelectedValue(); if (selValue != null) { myTextField.setText(selValue.toString()); } else { myTextField.setText(""); } updateValue(); } | valueChanged |
47,227 | String (Object object) { return object == null ? null : object.toString(); } | toString |
47,228 | int () { return myList.size(); } | getSize |
47,229 | FontInfo (int index) { return myList.get(index); } | getElementAt |
47,230 | FontInfo (String name) { for (FontInfo info : myList) { if (info.toString().equalsIgnoreCase(name)) { return info; } } return null; } | findElement |
47,231 | void (ActionEvent e) { openListEditorDialog(myLastValue); } | actionPerformed |
47,232 | void (String[] value) { ListEditorDialog dlg = new ListEditorDialog(myLastComponent.getProject(), myPropertyName); dlg.setValue(value); dlg.show(); if (dlg.getExitCode() == DialogWrapper.OK_EXIT_CODE) { myLastValue = dlg.getValue(); myTextField.setText(listValueToString(myLastValue)); fireValueCommitted(true, false); }... | openListEditorDialog |
47,233 | JComponent (final RadComponent component, final String[] value, final InplaceContext inplaceContext) { myLastComponent = component; myLastValue = value; if (inplaceContext != null) { if (inplaceContext.isStartedByTyping()) { openListEditorDialog(new String[] { Character.toString(inplaceContext.getStartChar()) }); } els... | getComponent |
47,234 | void () { SwingUtilities.updateComponentTreeUI(myTextField); } | updateUI |
47,235 | String (final String[] value) { if (value == null) return ""; return StringUtil.join(value, ", "); } | listValueToString |
47,236 | void (final ActionEvent e) { fireValueCommitted(true, false); } | actionPerformed |
47,237 | void (@NotNull final AnActionEvent e) { if (!myCbx.isPopupVisible()) { fireEditingCancelled(); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance() .requestFocus(getInstance(getInstance(project).getActiveFormEditor()) .getPropertyInspector(), true)); } } | actionPerformed |
47,238 | String[] (final RadComponent component, final String currentName) { final ArrayList<String> result = new ArrayList<>(); if (currentName != null){ result.add(currentName); } final IRootContainer root = FormEditingUtil.getRoot(component); final String className = root.getClassToBind(); if (className == null) { return Arr... | getFieldNames |
47,239 | JComponent (final RadComponent component, final @NlsSafe String value, final InplaceContext inplaceContext) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-653866")) { final String[] fieldNames = getFieldNames(component, value); myCbx.setModel(new DefaultComboBoxModel(fieldNames)); myCbx.setSelec... | getComponent |
47,240 | void (ActionEvent e) { String title = UIDesignerBundle.message("color.chooser.title", myPropertyName); Color color = ColorChooserService.getInstance().showDialog(myTextField, title , myValue.getColor()); if (color != null) { myValue = new ColorDescriptor(color); updateTextField(); } } | actionPerformed |
47,241 | JComponent (RadComponent component, ColorDescriptor value, InplaceContext inplaceContext) { myValue = value != null ? value : new ColorDescriptor(JBColor.BLACK); updateTextField(); return myTextField; } | getComponent |
47,242 | void () { myTextField.setText(myValue == null ? "" : myValue.toString()); } | updateTextField |
47,243 | void () { SwingUtilities.updateComponentTreeUI(myTextField); } | updateUI |
47,244 | void () { SwingUtilities.updateComponentTreeUI(getCbx()); SwingUtilities.updateComponentTreeUI((JComponent)getCbx().getRenderer()); } | updateUI |
47,245 | JComponent (final RadComponent ignored, final Integer value, final InplaceContext inplaceContext) { // Find pair if (value == null) { getCbx().setSelectedItem(null); return getCbx(); } final ComboBoxModel model = getCbx().getModel(); for (int i = model.getSize() - 1; i >= 0; i--) { final Pair pair = (Pair)model.getElem... | getComponent |
47,246 | JComboBox () { if (myCbx == null) { myCbx = new JComboBox(myPairs); myCbx.setBorder(BorderFactory.createEmptyBorder()); myCbx.addPopupMenuListener(new MyPopupMenuListener()); } return myCbx; } | getCbx |
47,247 | void (final PopupMenuEvent e) { myCancelled = false; } | popupMenuWillBecomeVisible |
47,248 | void (final PopupMenuEvent e) { if (!myCancelled) { fireValueCommitted(true, false); } } | popupMenuWillBecomeInvisible |
47,249 | void (final PopupMenuEvent e) { myCancelled = true; } | popupMenuCanceled |
47,250 | String () { return myText; } | toString |
47,251 | JComponent (final RadComponent component, final Enum value, final InplaceContext inplaceContext) { if (value == null) { return myCbx; } final ComboBoxModel model = myCbx.getModel(); for (int i = model.getSize() - 1; i >= 0; i--) { if (model.getElementAt(i) == value) { myCbx.setSelectedIndex(i); return myCbx; } } throw ... | getComponent |
47,252 | void () { SwingUtilities.updateComponentTreeUI(myCbx); SwingUtilities.updateComponentTreeUI((JComponent)myCbx.getRenderer()); } | updateUI |
47,253 | void () { SwingUtilities.updateComponentTreeUI(myTf); } | updateUI |
47,254 | void (RadComponent component, V value) { myTf.setText(value == null ? "" : value.toString()); } | setValueFromComponent |
47,255 | JComponent (final RadComponent ignored, final V value, final InplaceContext inplaceContext) { setValueFromComponent(ignored, value); if(inplaceContext != null) { myTf.setBorder(UIUtil.getTextFieldBorder()); if (inplaceContext.isStartedByTyping()) { myTf.setText(Character.toString(inplaceContext.getStartChar())); } } el... | getComponent |
47,256 | void (final ActionEvent e) { fireValueCommitted(true, false); } | actionPerformed |
47,257 | void (final RadComponent component, final T value) { RadRootContainer root = (RadRootContainer) FormEditingUtil.getRoot(component); JLabel label = myRenderer.getComponent(root, value, false, false); myTf.setText(label.getText()); } | setValueFromComponent |
47,258 | void (ActionEvent e) { final TreeClassChooserFactory factory = TreeClassChooserFactory.getInstance(getModule().getProject()); PsiFile iconFile = null; if (myValue != null) { VirtualFile iconVFile = ResourceFileUtil.findResourceFileInScope(myValue.getIconPath(), getModule().getProject(), getModule() .getModuleWithDepend... | actionPerformed |
47,259 | Module () { return myComponent.getModule(); } | getModule |
47,260 | JComponent (RadComponent component, IconDescriptor value, InplaceContext inplaceContext) { myValue = value; myComponent = component; if (myValue != null) { myTextField.setText(myValue.getIconPath()); } else { myTextField.setText(""); } return myTextField; } | getComponent |
47,261 | void () { SwingUtilities.updateComponentTreeUI(myTextField); } | updateUI |
47,262 | JComponent (final RadComponent ignored, final BorderType value, final InplaceContext inplaceContext) { myCbx.setSelectedItem(value); return myCbx; } | getComponent |
47,263 | JComponent (RadComponent component, String value, InplaceContext inplaceContext) { RadComponent[] components = collectFilteredComponents(component); // components [0] = null (<none>) myCbx.setModel(new DefaultComboBoxModel(components)); myOldValue = value; if (value == null || myOldValue.length() == 0) { myCbx.setSelec... | getComponent |
47,264 | RadComponent[] (final RadComponent component) { final ArrayList<RadComponent> result = new ArrayList<>(); result.add(null); RadContainer container = component.getParent(); while(container.getParent() != null) { container = container.getParent(); } FormEditingUtil.iterate(container, new FormEditingUtil.ComponentVisitor(... | collectFilteredComponents |
47,265 | boolean (final IComponent component) { RadComponent radComponent = (RadComponent) component; final JComponent delegee = radComponent.getDelegee(); if (!myPropertyType.isInstance(delegee)) { return true; } if (myFilter == null || myFilter.value(radComponent)) { result.add(radComponent); } return true; } | visit |
47,266 | void (DocumentEvent e) { updateButton(); } | insertUpdate |
47,267 | void (DocumentEvent e) { updateButton(); } | removeUpdate |
47,268 | void (DocumentEvent e) { updateButton(); } | changedUpdate |
47,269 | void () { setOKActionEnabled(myKeyNameEdit.getText().length() > 0); } | updateButton |
47,270 | JComponent () { return myPanel; } | createCenterPanel |
47,271 | String () { return getClass().getName(); } | getDimensionServiceKey |
47,272 | String () { return myKeyNameEdit.getText(); } | getName |
47,273 | String () { return myKeyValueEdit.getText(); } | getValue |
47,274 | void (final ActionEvent e) { fireValueCommitted(false, false); } | actionPerformed |
47,275 | void (@NotNull final DocumentEvent e) { // Order of document listeners invocation is not defined in Swing. In practice, custom listeners like this one are invoked // before internal JTextField listeners, so at this point the internal state of JTextField can be inconsistent. // That's the reason for using 'invokeLater' ... | textChanged |
47,276 | Dimension () { return myTfWithButton.getPreferredSize(); } | getPreferredSize |
47,277 | void () { SwingUtilities.updateComponentTreeUI(myTfWithButton); } | updateUI |
47,278 | void (final StringDescriptor descriptor) { myValue = descriptor; final JTextField textField = myTfWithButton.getTextField(); if(descriptor != null){ final String value = descriptor.getValue(); if(value != null){ // plain value textField.setEditable(true); textField.setText(value); textField.selectAll(); myTextFieldModi... | setValue |
47,279 | JComponent (@NotNull final JComponent component) { return ((TextFieldWithBrowseButton)component).getTextField(); } | getPreferredFocusedComponent |
47,280 | JComponent (final RadComponent component, final StringDescriptor value, final InplaceContext inplaceContext) { myComponent = component; setValue(value); myTfWithButton.getTextField().setBorder(null); if (inplaceContext != null && inplaceContext.isStartedByTyping()) { myTfWithButton.setText(Character.toString(inplaceCon... | getComponent |
47,281 | StringDescriptor () { if(myValue == null || (myValue.getValue() != null && myTextFieldModified)) { // editor is for "trivial" StringDescriptor final String value = myTfWithButton.getText(); if (myValue == null && value.length() == 0) { return null; } else{ final StringDescriptor stringDescriptor = StringDescriptor.crea... | getValue |
47,282 | void (@NotNull final AnActionEvent e) { fireEditingCancelled(); } | actionPerformed |
47,283 | void (final ActionEvent e) { // 1. Show editor dialog final GuiEditor guiEditor = DesignerToolWindowManager.getInstance(myProject).getActiveFormEditor(); LOG.assertTrue(guiEditor != null); final StringEditorDialog dialog = new StringEditorDialog( myTfWithButton.getTextField(), getValue(), // we have pass here "live" (m... | actionPerformed |
47,284 | String () { return getClass().getName(); } | getDimensionServiceKey |
47,285 | JComponent () { if(myForm.myRbString.isSelected()){ return myForm.myTfValue; } else{ return super.getPreferredFocusedComponent(); } } | getPreferredFocusedComponent |
47,286 | PropertiesFile (final StringDescriptor descriptor) { final PropertiesReferenceManager manager = PropertiesReferenceManager.getInstance(myEditor.getProject()); return manager.findPropertiesFile(myEditor.getModule(), descriptor.getDottedBundleName(), myLocale); } | getPropertiesFile |
47,287 | String (final Module module, final StringDescriptor descriptor, final Locale locale, final String editedValue, final PsiFile formFile) { final PropertiesReferenceManager manager = PropertiesReferenceManager.getInstance(module.getProject()); final PropertiesFile propFile = manager.findPropertiesFile(module, descriptor.g... | saveModifiedPropertyValue |
47,288 | Collection<PsiReference> (final Property property, final Module module) { final Collection<PsiReference> references = Collections.synchronizedList(new ArrayList<>()); ProgressManager.getInstance().runProcessWithProgressSynchronously( (Runnable)() -> ReferencesSearch.search(property).forEach(psiReference -> { PsiMethod ... | findPropertyReferences |
47,289 | String (final Project project, final PropertiesFile propFile, final String key) { String newName; int index = 0; do { index++; newName = key + index; } while(propFile.findPropertyByKey(newName) != null); InputValidator validator = new InputValidator() { @Override public boolean checkInput(String inputString) { return i... | promptNewKeyName |
47,290 | boolean (String inputString) { return inputString.length() > 0 && propFile.findPropertyByKey(inputString) == null; } | checkInput |
47,291 | boolean (String inputString) { return checkInput(inputString); } | canClose |
47,292 | boolean (final PropertiesFile bundle, final String name, final String value, final PsiFile formFile) { final ReadonlyStatusHandler.OperationStatus operationStatus = ReadonlyStatusHandler.getInstance(bundle.getProject()).ensureFilesWritable(Collections.singletonList(bundle.getVirtualFile())); if (operationStatus.hasRead... | saveCreatedProperty |
47,293 | void (final StringDescriptor descriptor) { myValue = descriptor; final CardLayout cardLayout = (CardLayout)myForm.myCardHolder.getLayout(); if(descriptor == null || descriptor.getValue() != null){ // trivial descriptor myForm.myRbString.setSelected(true); myForm.showStringDescriptor(descriptor); cardLayout.show(myForm.... | setValue |
47,294 | JComponent () { return myForm.myPanel; } | createCenterPanel |
47,295 | void (final ActionEvent e) { CardLayout cardLayout = (CardLayout) myCardHolder.getLayout(); cardLayout.show(myCardHolder, CARD_STRING); } | actionPerformed |
47,296 | void (final ActionEvent e) { if (!myDefaultBundleInitialized) { myDefaultBundleInitialized = true; Set<String> bundleNames = FormEditingUtil.collectUsedBundleNames(myEditor.getRootContainer()); if (bundleNames.size() > 0) { myTfBundleName.setText(ArrayUtilRt.toStringArray(bundleNames)[0]); } } CardLayout cardLayout = (... | actionPerformed |
47,297 | void () { // Enable keyboard pressing myTfBundleName.registerKeyboardAction( new AbstractAction() { @Override public void actionPerformed(final ActionEvent e) { myTfBundleName.getButton().doClick(); } }, KeyStroke.getKeyStroke(myLblBundleName.getDisplayedMnemonic(), InputEvent.ALT_DOWN_MASK), JComponent.WHEN_IN_FOCUSED... | setupResourceBundleCard |
47,298 | void (final ActionEvent e) { myTfBundleName.getButton().doClick(); } | actionPerformed |
47,299 | void (final ActionEvent e) { Project project = myEditor.getProject(); final String bundleNameText = myTfBundleName.getText().replace('/', '.'); PropertiesFile file = PropertiesUtilBase.getPropertiesFile(bundleNameText, myEditor.getModule(), myLocale); PsiFile initialPropertiesFile = file == null ? null : file.getContai... | actionPerformed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.