Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
47,000 | List<ComponentItem> () { return myItems; } | getValues |
47,001 | boolean (final ComponentItem value) { return true; } | isSelectable |
47,002 | Icon (final ComponentItem aValue) { return aValue.getSmallIcon(); } | getIconFor |
47,003 | String (final ComponentItem value) { if (value.isAnyComponent()) { return UIDesignerBundle.message("palette.non.palette.component"); } return value.getClassShortName(); } | getTextFor |
47,004 | ListSeparator (final ComponentItem value) { return null; } | getSeparatorAbove |
47,005 | int () { if (myInitialSelection != null) { int index = myItems.indexOf(myInitialSelection); if (index >= 0) { return index; } } return 0; } | getDefaultOptionIndex |
47,006 | String () { return myTitle; } | getTitle |
47,007 | PopupStep (final ComponentItem selectedValue, final boolean finalChoice) { myFinalRunnable = () -> myRunnable.process(selectedValue); return PopupStep.FINAL_CHOICE; } | onChosen |
47,008 | Runnable () { return myFinalRunnable; } | getFinalRunnable |
47,009 | boolean (final ComponentItem selectedValue) { return false; } | hasSubstep |
47,010 | void () { } | canceled |
47,011 | boolean () { return false; } | isMnemonicsNavigationEnabled |
47,012 | MnemonicNavigationFilter<ComponentItem> () { return null; } | getMnemonicNavigationFilter |
47,013 | boolean () { return true; } | isSpeedSearchEnabled |
47,014 | boolean () { return false; } | isAutoSelectionEnabled |
47,015 | SpeedSearchFilter<ComponentItem> () { return this; } | getSpeedSearchFilter |
47,016 | String (final ComponentItem value) { if (value.isAnyComponent()) { return ""; } return value.getClassShortName(); } | getIndexedString |
47,017 | void (final String componentClassName) { for(ComponentItem item: myItems) { if (item.getClassName().equals(componentClassName)) { myItems.remove(item); break; } } } | hideComponentClass |
47,018 | void () { for(int i=myItems.size()-1; i >= 0; i--) { ComponentItem item = myItems.get(i); if (InsertComponentProcessor.getRadComponentFactory(myProject, item.getClassName()) != null || item.getBoundForm() != null) { myItems.remove(i); } } } | hideNonAtomic |
47,019 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
47,020 | void (@NotNull final AnActionEvent e) { super.update(e); GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); e.getPresentation().setEnabled(editor != null); } | update |
47,021 | boolean (@NotNull AnActionEvent e) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); return editor != null && editor.isShowGrid(); } | isSelected |
47,022 | void (@NotNull AnActionEvent e, boolean state) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor != null) { editor.setShowGrid(state); } } | setSelected |
47,023 | JComponent () { return contentPane.getPanel(); } | createCenterPanel |
47,024 | void () { myRecentGenerateOK = contentPane.myChkGenerateOK.isSelected(); myRecentGenerateCancel = contentPane.myChkGenerateCancel.isSelected(); myRecentGenerateMain = contentPane.myChkGenerateMain.isSelected(); final String inputString = contentPane.myTfClassName.getText().trim(); if ( validator.checkInput(inputString)... | doOKAction |
47,025 | JComponent () { return contentPane.myTfClassName; } | getPreferredFocusedComponent |
47,026 | String () { return UIDesignerBundle.message("error.cannot.create.dialog"); } | getErrorTitle |
47,027 | String ( final String className, final boolean generateOK, final boolean generateCancel, final boolean generateMain ) { @NonNls final StringBuilder result = new StringBuilder(1024); result.append("public class ").append(className).append(" extends javax.swing.JDialog {\n"); result.append("private javax.swing.JPanel con... | createClassBody |
47,028 | JPanel () { return myPanel; } | getPanel |
47,029 | void (@NotNull final AnActionEvent e) { super.update(e); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (selection != null) { e.getPresentation().setEnabled(selection.getContainer() != null && selection.getContainer().getLayout() instanceof FormLayout && getCellsToGroup(selection).length > 1 && !... | update |
47,030 | boolean (final CaptionSelection selection) { FormLayout layout = (FormLayout) selection.getContainer().getLayout(); int[][] groups = selection.isRow() ? layout.getRowGroups() : layout.getColumnGroups(); final int[] indices = selection.getSelection(); for (int[] group : groups) { if (intersect(group, indices)) return tr... | isGrouped |
47,031 | boolean (final int[] group, final int[] indices) { for (int groupMember : group) { for (int index : indices) { if (groupMember == index+1) return true; } } return false; } | intersect |
47,032 | void (CaptionSelection selection) { FormLayout layout = (FormLayout) selection.getContainer().getLayout(); int[][] oldGroups = selection.isRow() ? layout.getRowGroups() : layout.getColumnGroups(); int[][] newGroups = new int[oldGroups.length + 1][]; System.arraycopy(oldGroups, 0, newGroups, 0, oldGroups.length); int[] ... | actionPerformed |
47,033 | int[] (CaptionSelection selection) { ArrayList<Integer> cells = new ArrayList<>(); int[] selectedIndices = selection.getSelection(); for(int i: selectedIndices) { if (!selection.getContainer().getGridLayoutManager().isGapCell(selection.getContainer(), selection.isRow(), i)) { cells.add(i); } } int[] result = new int[ce... | getCellsToGroup |
47,034 | void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); assert editor != null; final SelectionState selectionState = editor.getSelectionState(); selectionState.setInsideChange(true); ComponentTreeBuilder builder = DesignerToolWindowManager.getInstance(e... | actionPerformed |
47,035 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
47,036 | void (@NotNull final AnActionEvent e) { final Presentation presentation = e.getPresentation(); final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor == null) { presentation.setEnabled(false); return; } final SelectionState selectionState = editor.getSelectionState(); selectionSta... | update |
47,037 | void (@NotNull final AnActionEvent e) { super.update(e); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (selection != null) { e.getPresentation().setEnabled(selection.getContainer() != null && selection.getContainer().getLayout() instanceof FormLayout && GroupRowsColumnsAction.isGrouped(selection... | update |
47,038 | void (CaptionSelection selection) { FormLayout layout = (FormLayout) selection.getContainer().getLayout(); int[][] oldGroups = selection.isRow() ? layout.getRowGroups() : layout.getColumnGroups(); List<int[]> newGroups = new ArrayList<>(); int[] selInts = selection.getSelection(); for(int[] group: oldGroups) { if (!Gro... | actionPerformed |
47,039 | int (final Point source, final Point point) { if(source.x <= point.x){ return Integer.MAX_VALUE; } else{ final int scale = (point.y - source.y) >= 0 ? 3 : 4; return (source.x - point.x) + Math.abs(point.y - source.y) * scale; } } | calcDistance |
47,040 | int () { return -1; } | getColumnMoveDelta |
47,041 | void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { IndentProperty indentProperty = IndentProperty.getInstance(editor.getProject()); for(RadComponent c: selection) { int indent = indentProperty.getValue(c).intValue(); indentProperty.setValueEx(c, adjustIndent(indent)); }... | actionPerformed |
47,042 | void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { final boolean applicable = canAdjustIndent(selection); e.getPresentation().setVisible(applicable); final Component focusOwner = IdeFocusManager.findInstanceByComponent(editor).getFocusOwner(); e.getPresentation(... | update |
47,043 | boolean (final ArrayList<? extends RadComponent> selection) { for(RadComponent c: selection) { if (canAdjustIndent(c)) { return true; } } return false; } | canAdjustIndent |
47,044 | int (final int indent) { return indent + 1; } | adjustIndent |
47,045 | boolean (final RadComponent component) { return component.getParent().getLayout() instanceof GridLayoutManager; } | canAdjustIndent |
47,046 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
47,047 | void (@NotNull AnActionEvent e) { final Project project = e.getData(CommonDataKeys.PROJECT); assert project != null; final Editor editor = e.getData(CommonDataKeys.EDITOR); assert editor != null; final int offset = editor.getCaretModel().getOffset(); final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFi... | actionPerformed |
47,048 | void (@NotNull AnActionEvent e) { boolean enabled = isActionEnabled(e); Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(enabled); } | update |
47,049 | boolean (final AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) return false; Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor == null) return false; int offset = editor.getCaretModel().getOffset(); PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile... | isActionEnabled |
47,050 | InstrumentationClassFinder (URL @Nullable [] platformUrls, @NotNull final String classPath) { final ArrayList<URL> urls = new ArrayList<>(); for (StringTokenizer tokenizer = new StringTokenizer(classPath, File.pathSeparator); tokenizer.hasMoreTokens();) { final String s = tokenizer.nextToken(); try { urls.add(new File(... | createClassFinder |
47,051 | void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getActiveEditor(e.getDataContext()); if (editor != null) { showPreviewFrame(editor.getModule(), editor.getFile(), editor.getStringDescriptorLocale()); } } | actionPerformed |
47,052 | void (@NotNull final AnActionEvent e) { GuiEditor editor = FormEditingUtil.getActiveEditor(e.getDataContext()); if (editor == null) { e.getPresentation().setVisible(false); return; } final VirtualFile file = editor.getFile(); e.getPresentation().setVisible( FileDocumentManager.getInstance().getDocument(file) != null &&... | update |
47,053 | ActionUpdateThread () { return ActionUpdateThread.BGT ; } | getActionUpdateThread |
47,054 | void (@NotNull final Module module, @NotNull final VirtualFile formFile, @Nullable final Locale stringDescriptorLocale) { final String tempPath; try { final File tempDirectory = FileUtil.createTempDirectory("FormPreview", ""); tempPath = tempDirectory.getAbsolutePath(); CopyResourcesUtil.copyFormsRuntime(tempPath, true... | showPreviewFrame |
47,055 | boolean (final IComponent component, final StringDescriptor descriptor) { if (descriptor.getBundleName() != null) { bundleSet.add(descriptor.getDottedBundleName()); } return true; } | visit |
47,056 | void (boolean aborted, int errors, int warnings, @NotNull final CompileContext compileContext) { if (!aborted && errors == 0) { runPreviewProcess(tempPath, sources, module, formFile, stringDescriptorLocale); } } | finished |
47,057 | void (final LwRootContainer rootContainer, final String classToBindName) { // 1. Prepare form to preview. We have to change container so that it has only one binding. rootContainer.setClassToBind(classToBindName); FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<LwComponent>() { @Override pu... | setPreviewBindings |
47,058 | boolean (final LwComponent iComponent) { iComponent.setBinding(null); return true; } | visit |
47,059 | void (final String tempPath, final PathsList sources, final Module module, final VirtualFile formFile, @Nullable final Locale stringDescriptorLocale) { // 3. Now we are ready to launch Java process final JavaParameters parameters = new JavaParameters(); parameters.getClassPath().add(tempPath); parameters.getClassPath()... | runPreviewProcess |
47,060 | Icon () { return null; } | getIcon |
47,061 | JavaParameters () { return myParams; } | createJavaParameters |
47,062 | void (@NotNull ProcessEvent event) { FileUtil.asyncDelete(new File(myTempPath)); } | processTerminated |
47,063 | String () { return UIDesignerBundle.message("title.form.preview"); } | getName |
47,064 | DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext dataContext) { Presentation presentation = (Presentation)button.getClientProperty(PRESENTATION); DefaultActionGroup group = new DefaultActionGroup(); GuiEditor editor = FormEditingUtil.getActiveEditor(dataContext); if (editor != null) { Locale[] local... | createPopupActionGroup |
47,065 | void (@NotNull AnActionEvent e) { super.actionPerformed(e); presentation.setText(getTemplatePresentation().getText()); } | actionPerformed |
47,066 | void (@NotNull AnActionEvent e) { e.getPresentation().setVisible(FormEditingUtil.getActiveEditor(e.getDataContext()) != null); } | update |
47,067 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
47,068 | void (@NotNull AnActionEvent e) { myEditor.setStringDescriptorLocale(myLocale); } | actionPerformed |
47,069 | void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { if (selection.size() == 1) { final RadComponent component = selection.get(0); IButtonGroup group = FormEditingUtil.findGroupForComponent(editor.getRootContainer(), component); editor.getRootContainer().deleteGroup((RadB... | actionPerformed |
47,070 | void (@NotNull final GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { boolean visible = GroupButtonsAction.allButtons(selection); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && canUngroup(editor, selection)); } | update |
47,071 | boolean (final GuiEditor editor, final List<? extends RadComponent> selectedComponents) { if (selectedComponents.size() < 2) { return selectedComponents.size() == 1; } return isSameGroup(editor, selectedComponents); } | canUngroup |
47,072 | boolean (final GuiEditor editor, final List<? extends RadComponent> selectedComponents) { final RadRootContainer rootContainer = editor.getRootContainer(); IButtonGroup group = FormEditingUtil.findGroupForComponent(rootContainer, selectedComponents.get(0)); if (group == null) { return false; } for(int i=1; i<selectedCo... | isSameGroup |
47,073 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
47,074 | void (@NotNull final AnActionEvent e) { super.update(e); GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); e.getPresentation().setEnabled(editor != null); } | update |
47,075 | boolean (@NotNull AnActionEvent e) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); return editor != null && editor.isShowComponentTags(); } | isSelected |
47,076 | void (@NotNull AnActionEvent e, boolean state) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor != null) { editor.setShowComponentTags(state); } } | setSelected |
47,077 | void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { groupButtons(editor, selection); } | actionPerformed |
47,078 | void (final GuiEditor editor, final List<? extends RadComponent> selectedComponents) { if (!editor.ensureEditable()) return; String groupName = Messages.showInputDialog(editor.getProject(), UIDesignerBundle.message("group.buttons.name.prompt"), UIDesignerBundle.message("group.buttons.title"), Messages.getQuestionIcon()... | groupButtons |
47,079 | void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { e.getPresentation().setVisible(allButtons(selection)); e.getPresentation().setEnabled(allButtons(selection) && selection.size() >= 2 && !UngroupButtonsAction.isSameGroup(editor, selection)); } | update |
47,080 | boolean (final List<? extends RadComponent> selection) { for (RadComponent component : selection) { if (!(component.getDelegee() instanceof AbstractButton) || component.getDelegee() instanceof JButton) { return false; } } return true; } | allButtons |
47,081 | int (final Point source, final Point point) { if(source.y >= point.y){ return Integer.MAX_VALUE; } else{ final int scale = (point.x - source.x) >= 0 ? 3 : 4; return (point.y - source.y) + Math.abs(point.x - source.x) * scale; } } | calcDistance |
47,082 | int () { return 1; } | getRowMoveDelta |
47,083 | DesignerToolWindow (@NotNull GuiEditor designer) { DesignerToolWindowManager manager = getInstance(designer.getProject()); if (manager.isEditorMode()) { return (DesignerToolWindow)manager.getContent(designer); } if (manager.myToolWindowPanel == null) { manager.initToolWindow(); } return manager.myToolWindowPanel; } | getInstance |
47,084 | DesignerToolWindowManager (@NotNull Project project) { return project.getService(DesignerToolWindowManager.class); } | getInstance |
47,085 | GuiEditor () { return (GuiEditor)getActiveDesigner(); } | getActiveFormEditor |
47,086 | void () { myToolWindowPanel = new DesignerToolWindow(myProject); Disposer.register(this, () -> myToolWindowPanel.dispose()); myToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(UIDesignerBundle.message("toolwindow.ui.designer.name"), false, getAnchor(), this, true); myToolWindow.setIcon(AllIcons.... | initToolWindow |
47,087 | void (@Nullable DesignerEditorPanelFacade designer) { myToolWindowPanel.update((GuiEditor)designer); if (designer == null) { myToolWindow.setAvailable(false); } else { myToolWindow.setAvailable(true); myToolWindow.show(null); } } | updateToolWindow |
47,088 | ToolWindowAnchor () { return ToolWindowAnchor.LEFT; } | getAnchor |
47,089 | LightToolWindow (@NotNull DesignerEditorPanelFacade designer) { DesignerToolWindow toolWindowContent = new DesignerToolWindow(myProject); toolWindowContent.update((GuiEditor)designer); return createContent(designer, toolWindowContent, UIDesignerBundle.message("toolwindow.ui.designer.title"), AllIcons.Toolwindows.ToolWi... | createContent |
47,090 | String () { return "UIDesignerToolWindowManager"; } | getComponentName |
47,091 | Object (final RadComponent component) { return null; } | getValue |
47,092 | PropertyEditor () { return null; } | getEditor |
47,093 | Rectangle () { final int selectedRow = myComponent.getSelectedRow(); if(selectedRow < 0 || selectedRow >= myComponent.getRowCount()){ return null; } final Rectangle rowRect = myComponent.getCellRect(selectedRow, 0, true); final Rectangle visibleRect = myComponent.getVisibleRect(); if(visibleRect.intersects(rowRect)){ r... | getErrorBounds |
47,094 | void (final ListSelectionEvent e) { hideIntentionHint(); updateIntentionHintVisibility(); } | valueChanged |
47,095 | JComponent (@NotNull final JComponent component) { return null; } | getPreferredFocusedComponent |
47,096 | void (final PropertyEditorListener l) { myListenerList.add(PropertyEditorListener.class,l); } | addPropertyEditorListener |
47,097 | void (final PropertyEditorListener l) { myListenerList.remove(PropertyEditorListener.class,l); } | removePropertyEditorListener |
47,098 | void () { final PropertyEditorListener[] listeners=myListenerList.getListeners(PropertyEditorListener.class); for (PropertyEditorListener listener : listeners) { listener.editingCanceled(this); } } | fireEditingCancelled |
47,099 | void (final boolean continueEditing, final boolean closeEditorOnError) { final PropertyEditorListener[] listeners=myListenerList.getListeners(PropertyEditorListener.class); for (PropertyEditorListener listener : listeners) { listener.valueCommitted(this, continueEditing, closeEditorOnError); } } | fireValueCommitted |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.