Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
47,100 | void () { final PropertyEditorListener[] listeners=myListenerList.getListeners(PropertyEditorListener.class); for (PropertyEditorListener listener : listeners) { listener.preferredSizeChanged(this); } } | preferredSizeChanged |
47,101 | boolean () { return myKeepInitialValue; } | isKeepInitialValue |
47,102 | boolean () { return myStartedByTyping; } | isStartedByTyping |
47,103 | char () { return myStartChar; } | getStartChar |
47,104 | boolean () { return myModalDialogDisplayed; } | isModalDialogDisplayed |
47,105 | void (boolean modalDialogDisplayed) { myModalDialogDisplayed = modalDialogDisplayed; } | setModalDialogDisplayed |
47,106 | void () { clearTreeBuilder(); myToolWindowPanel.dispose(); myComponentTree = null; myPropertyInspector = null; } | dispose |
47,107 | void () { if (myComponentTreeBuilder != null) { Disposer.dispose(myComponentTreeBuilder); myComponentTreeBuilder = null; } } | clearTreeBuilder |
47,108 | void (GuiEditor designer) { clearTreeBuilder(); myComponentTree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode())); myComponentTree.setEditor(designer); myPropertyInspector.setEditor(designer); if (designer == null) { myComponentTree.setFormEditor(null); } else { myComponentTree.setFormEditor(designer.getEdit... | update |
47,109 | JComponent () { return myToolWindowPanel; } | getToolWindowPanel |
47,110 | ComponentTree () { return myComponentTree; } | getComponentTree |
47,111 | ComponentTreeBuilder () { return myComponentTreeBuilder; } | getComponentTreeBuilder |
47,112 | void () { if (myComponentTreeBuilder != null) { myComponentTreeBuilder.invalidateAsync(); } } | updateComponentTree |
47,113 | PropertyInspector () { return myPropertyInspector; } | getPropertyInspector |
47,114 | void () { if (myComponentTree != null) { myComponentTree.refreshIntentionHint(); myComponentTree.repaint(myComponentTree.getVisibleRect()); } // PropertyInspector if (myPropertyInspector != null) { myPropertyInspector.refreshIntentionHint(); myPropertyInspector.repaint(myPropertyInspector.getVisibleRect()); } } | refreshErrors |
47,115 | Object (@NotNull @NonNls String dataId) { if (GuiEditor.DATA_KEY.is(dataId) && myComponentTree != null) { return myComponentTree.getData(dataId); } return null; } | getData |
47,116 | Object (final IComponent component) { //noinspection unchecked return getValue((T) component); } | getPropertyValue |
47,117 | void (T component, V value) { try { setValue(component, value); } catch(Exception ex) { LOG.error(ex); } } | setValueEx |
47,118 | void (final T component, final boolean modified) { Property topmostParent = this; while (topmostParent.getParent() != null) { topmostParent = topmostParent.getParent(); } if (modified) { component.markPropertyAsModified(topmostParent); } else { component.removeModifiedProperty(topmostParent); } } | markTopmostModified |
47,119 | Property () { return myParent; } | getParent |
47,120 | boolean (T component) { return true; } | appliesTo |
47,121 | boolean (final T component) { return false; } | isModified |
47,122 | boolean (List<RadComponent> selection) { return true; } | appliesToSelection |
47,123 | boolean () { return false; } | needRefreshPropertyList |
47,124 | void (final MouseEvent e) { final int row = rowAtPoint(e.getPoint()); final int column = columnAtPoint(e.getPoint()); if (row == -1 || column == -1){ return; } final Property property = myProperties.get(row); int indent = getPropertyIndentDepth(property) * getScaledPropertyIndent(); final Rectangle rect = getCellRect(r... | mousePressed |
47,125 | boolean (@NotNull MouseEvent e) { int row = rowAtPoint(e.getPoint()); int column = columnAtPoint(e.getPoint()); if (row >= 0 && column == 0) { final Property property = myProperties.get(row); if (getPropChildren(property).length == 0) { startEditing(row); return true; } } return false; } | onDoubleClick |
47,126 | void (final GuiEditor editor) { finishEditing(); myEditor = editor; if (myEditor == null) { mySelection.clear(); myProperties.clear(); myModel.fireTableDataChanged(); } } | setEditor |
47,127 | IntrospectedProperty () { Property property = getSelectedProperty(); if (!(property instanceof IntrospectedProperty)) { return null; } return (IntrospectedProperty)property; } | getSelectedIntrospectedProperty |
47,128 | void () { super.addNotify(); if (myLafManagerDisposable != null) { Disposer.dispose(myLafManagerDisposable); } myLafManagerDisposable = Disposer.newDisposable(); ApplicationManager.getApplication().getMessageBus().connect(myLafManagerDisposable).subscribe(LafManagerListener.TOPIC, myLafManagerListener); } | addNotify |
47,129 | void () { if (myLafManagerDisposable != null) { Disposer.dispose(myLafManagerDisposable); myLafManagerDisposable = null; } super.removeNotify(); } | removeNotify |
47,130 | void (final TableUI ui) { super.setUI(ui); // Customize action and input maps @NonNls final ActionMap actionMap=getActionMap(); @NonNls final InputMap focusedInputMap=getInputMap(JComponent.WHEN_FOCUSED); @NonNls final InputMap ancestorInputMap=getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); actionMap.put(T... | setUI |
47,131 | void (final Object aValue, final int row, final int column) { final Property property = myProperties.get(row); super.setValueAt(aValue, row, column); // We need to repaint whole inspector because change of one property // might causes change of another property. if (property.needRefreshPropertyList()) { synchWithTree(t... | setValueAt |
47,132 | void (final boolean forceSynch) { if (myInsideSynch) { return; } myInsideSynch = true; try { RadComponent[] newSelection = myComponentTree.getSelectedComponents(); if (!forceSynch && mySelection.size() == newSelection.length) { boolean anyChanges = false; for(RadComponent c: newSelection) { if (!mySelection.contains(c)... | synchWithTree |
47,133 | void () { myProperties.clear(); if (mySelection.size() > 0) { collectProperties(mySelection.get(0), myProperties); for(int propIndex=myProperties.size()-1; propIndex >= 0; propIndex--) { if (!myProperties.get(propIndex).appliesToSelection(mySelection)) { myProperties.remove(propIndex); } } for(int i=1; i<mySelection.si... | collectPropertiesForSelection |
47,134 | int (final ArrayList<Property> properties, final String name) { for(int i=properties.size()-1;i>=0;i--){ final Property property=properties.get(i); if(property.getName().equals(name)){ return i; } } return -1; } | findPropertyByName |
47,135 | void (final RadComponent component, final ArrayList<Property> result) { if (component instanceof RadRootContainer){ addProperty(result, myClassToBindProperty); } else { if (!(component instanceof RadVSpacer || component instanceof RadHSpacer)){ addProperty(result, myBindingProperty); addProperty(result, CustomCreatePro... | collectProperties |
47,136 | void (final Property[] containerProperties, final RadComponent component, final ArrayList<Property> result) { for(Property prop: containerProperties) { //noinspection unchecked if (prop.appliesTo(component)) { addProperty(result, prop); } } } | addApplicableProperties |
47,137 | void (final ArrayList<Property> result, final Property property) { result.add(property); if (isPropertyExpanded(property)) { for(Property child: getPropChildren(property)) { addProperty(result, child); } } } | addProperty |
47,138 | boolean (final Property property) { return myExpandedProperties.contains(getDottedName(property)); } | isPropertyExpanded |
47,139 | String (final Property property) { final Property parent = property.getParent(); if (parent != null) { return parent.getName() + "." + property.getName(); } return property.getName(); } | getDottedName |
47,140 | int (final Property property) { final Property parent = property.getParent(); if (parent != null) { return parent.getParent() != null ? 2 : 1; } return 0; } | getPropertyIndentDepth |
47,141 | int () { return JBUIScale.scale(PROPERTY_INDENT); } | getScaledPropertyIndent |
47,142 | Property[] (final Property property) { return property.getChildren(mySelection.get(0)); } | getPropChildren |
47,143 | TableCellEditor (final int row, final int column) { final PropertyEditor editor = myProperties.get(row).getEditor(); editor.removePropertyEditorListener(myPropertyEditorListener); // we do not need to add listener on every invocation editor.addPropertyEditorListener(myPropertyEditorListener); myCellEditor.setEditor(edi... | getCellEditor |
47,144 | TableCellRenderer (final int row, final int column) { return myCellRenderer; } | getCellRenderer |
47,145 | boolean (final int row, final int column, final EventObject e) { final boolean result = super.editCellAt(row, column, e); final Rectangle cellRect = getCellRect(row, column, true); repaint(cellRect); return result; } | editCellAt |
47,146 | void (final int index) { final Property property=myProperties.get(index); final PropertyEditor editor=property.getEditor(); if(editor==null){ return; } editCellAt(index,convertColumnIndexToView(1)); LOG.assertTrue(editorComp!=null); // Now we have to request focus into the editor component JComponent prefComponent = ed... | startEditing |
47,147 | void () { if(editingRow==-1){ return; } editingStopped(new ChangeEvent(cellEditor)); } | finishEditing |
47,148 | void (final ChangeEvent ignored) { LOG.assertTrue(isEditing()); LOG.assertTrue(editingRow!=-1); if (myStoppingEditing) { return; } myStoppingEditing = true; final Property property=myProperties.get(editingRow); final PropertyEditor editor=property.getEditor(); editor.removePropertyEditorListener(myPropertyEditorListene... | editingStopped |
47,149 | void (final Exception exc) { final Throwable cause = exc.getCause(); String message; if(cause != null){ message = cause.getMessage(); } else{ message = exc.getMessage(); } if (message == null || message.length() == 0) { message = UIDesignerBundle.message("error.no.message"); } Messages.showMessageDialog(UIDesignerBundl... | showInvalidInput |
47,150 | void (final int index) { final int selectedRow=getSelectedRow(); // Expand property final Property property=myProperties.get(index); final String dottedName = getDottedName(property); // it's possible that property was expanded and we switched to a component which doesn't have this property if (myExpandedProperties.con... | expandProperty |
47,151 | void (final int index) { final int selectedRow=getSelectedRow(); // Expand property final Property property=myProperties.get(index); LOG.assertTrue(isPropertyExpanded(property)); myExpandedProperties.remove(getDottedName(property)); final Property[] children=getPropChildren(property); for (int i=0; i<children.length; i... | collapseProperty |
47,152 | String (final int row) { LOG.assertTrue(row < myProperties.size()); final ErrorInfo errorInfo = getErrorInfoForRow(row); return errorInfo != null ? errorInfo.myDescription : null; } | getErrorForRow |
47,153 | String (final MouseEvent e) { final int row = rowAtPoint(e.getPoint()); if(row == -1){ return null; } return getErrorForRow(row); } | getToolTipText |
47,154 | Object (final Property property) { if (mySelection.size() == 0) { return null; } //noinspection unchecked Object result = property.getValue(mySelection.get(0)); for(int i=1; i<mySelection.size(); i++) { Object otherValue = null; if (property instanceof IntrospectedProperty) { IntrospectedProperty[] props = Palette.getI... | getSelectionValue |
47,155 | boolean (Property property, Object newValue) { if (!setPropValue(property, mySelection.get(0), newValue)) return false; for(int i=1; i<mySelection.size(); i++) { if (property instanceof IntrospectedProperty) { IntrospectedProperty[] props = Palette.getInstance(myProject).getIntrospectedProperties(mySelection.get(i)); f... | setSelectionValue |
47,156 | boolean (final Property property, final RadComponent c, final Object newValue) { try { //noinspection unchecked property.setValue(c, newValue); } catch (Throwable e) { LOG.debug(e); String message = ExceptionUtilRt.unwrapInvocationTargetException(e).getMessage(); Messages.showMessageDialog(message, UIDesignerBundle.mes... | setPropValue |
47,157 | boolean (final Property property) { for(RadComponent c: mySelection) { //noinspection unchecked if (property.isModified(c)) { return true; } } return false; } | isModifiedForSelection |
47,158 | int () { return 2; } | getColumnCount |
47,159 | String (final int column) { return myColumnNames[column]; } | getColumnName |
47,160 | int () { return myProperties.size(); } | getRowCount |
47,161 | boolean (final int row, final int column) { return column==1 && myProperties.get(row).getEditor() != null; } | isCellEditable |
47,162 | Object (final int row, final int column) { return myProperties.get(row); } | getValueAt |
47,163 | void (final Object newValue, final int row, final int column) { if (column != 1){ throw new IllegalArgumentException("wrong index: " + column); } setValueAtRow(row, newValue); } | setValueAt |
47,164 | void (@NotNull final PropertyEditor source, final boolean continueEditing, final boolean closeEditorOnError) { if(isEditing()){ final Object value; final TableCellEditor tableCellEditor = cellEditor; try { value = tableCellEditor.getCellEditorValue(); } catch (final Exception exc) { showInvalidInput(exc); return; } boo... | valueCommitted |
47,165 | void (@NotNull final PropertyEditor source) { if(isEditing()){ cellEditor.cancelCellEditing(); } } | editingCanceled |
47,166 | void ( final @NotNull JTable table, final Object value, final boolean selected, final boolean hasFocus, final int row, final int column ) { // We will append text later in the setPaintFocusBorder(false); setFocusBorderAroundIcon(true); } | customizeCellRenderer |
47,167 | void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { setPaintFocusBorder(false); } | customizeCellRenderer |
47,168 | Component ( final JTable table, @NotNull final Object value, final boolean selected, final boolean hasFocus, final int row, int column ) { myPropertyNameRenderer.getTableCellRendererComponent(table,value,selected,hasFocus,row,column); column=table.convertColumnIndexToModel(column); final Property property=(Property)val... | getTableCellRendererComponent |
47,169 | SimpleTextAttributes (final int row, final Property property) { // 1. Text ErrorInfo errInfo = getErrorInfoForRow(row); SimpleTextAttributes result; boolean modified; try { modified = isModifiedForSelection(property); } catch(Exception ex) { // ignore exceptions here - they'll be reported as red property values modifie... | getTextAttributes |
47,170 | void (@NotNull final PropertyEditor editor) { myEditor = editor; } | setEditor |
47,171 | Object () { try { return myEditor.getValue(); } catch (Exception e) { throw new RuntimeException(e); } } | getCellEditorValue |
47,172 | Component (final JTable table, @NotNull final Object value, final boolean isSelected, final int row, final int column) { final Property property=(Property)value; try { //noinspection unchecked final JComponent c = myEditor.getComponent(mySelection.get(0), getSelectionValue(property), null); if (c instanceof JComboBox) ... | getTableCellEditorComponent |
47,173 | void (final ActionEvent e) { final int rowCount=getRowCount(); LOG.assertTrue(rowCount>0); int selectedRow=getSelectedRow(); if(selectedRow!=-1){ selectedRow -= 1; } selectedRow=(selectedRow+rowCount)%rowCount; if(isEditing()){ finishEditing(); getSelectionModel().setSelectionInterval(selectedRow,selectedRow); scrollRe... | actionPerformed |
47,174 | void (final ActionEvent e) { final int rowCount=getRowCount(); LOG.assertTrue(rowCount>0); final int selectedRow=(getSelectedRow()+1)%rowCount; if(isEditing()){ finishEditing(); getSelectionModel().setSelectionInterval(selectedRow,selectedRow); scrollRectToVisible(getCellRect(selectedRow, 0, true)); startEditing(select... | actionPerformed |
47,175 | void (final ActionEvent e) { final int selectedRow=getSelectedRow(); if(selectedRow==-1 || isEditing()){ return; } startEditing(selectedRow); } | actionPerformed |
47,176 | void (final ActionEvent e) { final int selectedRow=getSelectedRow(); if(isEditing() || selectedRow==-1){ return; } final Property property=myProperties.get(selectedRow); if(getPropChildren(property).length>0){ if(isPropertyExpanded(property)){ collapseProperty(selectedRow); }else{ expandProperty(selectedRow); } }else{ ... | actionPerformed |
47,177 | void (ActionEvent e) { final int selectedRow=getSelectedRow(); if(isEditing() || selectedRow==-1){ return; } final Property property=myProperties.get(selectedRow); if(getPropChildren(property).length>0) { if (myExpand) { if (!isPropertyExpanded(property)) { expandProperty(selectedRow); } } else { if (isPropertyExpanded... | actionPerformed |
47,178 | void (final Property property) { final PropertyRenderer renderer = property.getRenderer(); renderer.updateUI(); final PropertyEditor editor = property.getEditor(); if(editor != null){ editor.updateUI(); } final Property[] children = property.getChildren(null); for (int i = children.length - 1; i >= 0; i--) { final Prop... | updateUI |
47,179 | void (@NotNull final LafManager source) { updateUI(myBorderProperty); updateUI(MarginProperty.getInstance(myProject)); updateUI(HGapProperty.getInstance(myProject)); updateUI(VGapProperty.getInstance(myProject)); updateUI(HSizePolicyProperty.getInstance(myProject)); updateUI(VSizePolicyProperty.getInstance(myProject));... | lookAndFeelChanged |
47,180 | V (final RadComponent component) { //noinspection unchecked return (V)invokeGetter(component); } | getValue |
47,181 | Object (final RadComponent component) { if (myStoreAsClient) { return component.getClientProperty(INTRO_PREFIX + getName()); } try { myReadMethod.setAccessible(true); return myReadMethod.invoke(component.getDelegee(), EMPTY_OBJECT_ARRAY); } catch (Exception e) { throw new RuntimeException(e); } } | invokeGetter |
47,182 | void (@NotNull V value, XmlWriter writer) { writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_VALUE, value.toString()); } | write |
47,183 | boolean (final RadComponent component) { @NonNls String name = getName(); if (name.equals(SwingProperties.PREFERRED_SIZE) || name.equals(SwingProperties.MINIMUM_SIZE) || name.equals(SwingProperties.MAXIMUM_SIZE)) { // our own properties must be used instead final RadContainer parent = component.getParent(); return pare... | appliesTo |
47,184 | void (final ActionEvent e) { myInspectorTable.setShowExpertProperties(chkShowExpertProperties.isSelected()); } | actionPerformed |
47,185 | void () { super.updateUI(); setBackground(myInspectorTable.getBackground()); } | updateUI |
47,186 | void (ChangeEvent e) { if (myPropertiesPanelContainer != null) { myPropertiesPanelContainer.revalidate(); } if (myEditor.ensureEditable()) { myEditor.refreshAndSave(true); } } | stateChanged |
47,187 | void (final GuiEditor editor) { if (myEditor != editor) { if (myEditor != null) { myEditor.removeComponentSelectionListener(myComponentSelectionListener); } myEditor = editor; myInspectorTable.setEditor(myEditor); myQuickFixManager.setEditor(myEditor); if (myEditor != null) { myEditor.addComponentSelectionListener(myCo... | setEditor |
47,188 | void () { myQuickFixManager.refreshIntentionHint(); } | refreshIntentionHint |
47,189 | void (final boolean forceSynch) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701")) { final CardLayout cardLayout = (CardLayout)getLayout(); if (!showSelectedColumnProperties()) { final RadComponent[] selectedComponents = myComponentTree.getSelectedComponents(); if (selectedComponents.length >= 1) { c... | synchWithTree |
47,190 | void (final RadButtonGroup group) { ButtonGroupPropertiesPanel props = new ButtonGroupPropertiesPanel(myEditor.getRootContainer(), group); myPropertiesPanelContainer = null; showCustomPropertiesPanel(props); } | showButtonGroupProperties |
47,191 | boolean () { if (myCustomPropertiesPanel != null && myPropertiesPanelContainer != null && IJSwingUtilities.hasFocus(myCustomPropertiesPanel.getComponent())) { return true; } if (myEditor == null) return false; GridCaptionPanel panel = myEditor.getFocusedCaptionPanel(); if (panel == null) return false; RadContainer cont... | showSelectedColumnProperties |
47,192 | void (final CustomPropertiesPanel propertiesPanel) { if (!Comparing.equal(propertiesPanel, myCustomPropertiesPanel)) { if (myCustomPropertiesPanel != null) { myCustomPropertiesPanel.removeChangeListener(myCustomPropertiesChangeListener); } myCustomPropertiesPanel = propertiesPanel; myCustomPropertiesPanel.addChangeList... | showCustomPropertiesPanel |
47,193 | boolean () { return myInspectorTable.isEditing(); } | isEditing |
47,194 | void () { myInspectorTable.editingStopped(null); } | stopEditing |
47,195 | void () { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myInspectorTable, true)); } | requestFocus |
47,196 | void (@NotNull final GuiEditor source) { synchWithTree(false); } | selectedComponentChanged |
47,197 | void () { SwingUtilities.updateComponentTreeUI(myCheckBox); } | updateUI |
47,198 | JComponent (final RadComponent ignored, final Boolean value, final InplaceContext inplaceContext) { myInsideChange=true; try{ myCheckBox.setBackground(UIUtil.getTableBackground()); myCheckBox.setSelected(value != null && value.booleanValue()); return myCheckBox; }finally{ myInsideChange=false; } } | getComponent |
47,199 | void (final ActionEvent e) { if(!myInsideChange){ fireValueCommitted(true, false); } } | actionPerformed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.