Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
46,900
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { final ComponentTreeBuilder builder = DesignerToolWindowManager.getInstance(editor).getComponentTreeBuilder(); builder.beginUpdateSelection(); try { FormEditingUtil.iterate(editor.getRootContainer(), new FormEditingUtil....
actionPerformed
46,901
boolean (final IComponent component) { ((RadComponent) component).setSelected(true); return true; }
visit
46,902
void (@NotNull final AnActionEvent e) { PropertyInspectorTable inspector = e.getData(PropertyInspectorTable.DATA_KEY); GuiEditor guiEditor = e.getData(GuiEditor.DATA_KEY); if (inspector == null || guiEditor == null) return; IntrospectedProperty<?> introspectedProperty = inspector.getSelectedIntrospectedProperty(); Stri...
actionPerformed
46,903
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,904
void (@NotNull final AnActionEvent e) { PropertyInspectorTable inspector = e.getData(PropertyInspectorTable.DATA_KEY); e.getPresentation().setEnabled(inspector != null && inspector.getSelectedIntrospectedProperty() != null && inspector.getSelectedRadComponentClassName() != null); }
update
46,905
void (@NotNull final AnActionEvent e) { super.update(e); final Project project = e.getData(CommonDataKeys.PROJECT); final Presentation presentation = e.getPresentation(); if (presentation.isEnabled()) { final IdeView view = e.getData(LangDataKeys.IDE_VIEW); if (view != null) { final ProjectFileIndex projectFileIndex = ...
update
46,906
String (final @NotNull PsiDirectory directory, final @NotNull String newName) { return UIDesignerBundle.message("progress.creating.class", JavaDirectoryService.getInstance().getPackage(directory).getQualifiedName(), newName); }
getActionName
46,907
boolean (String inputString) { return inputString.length() > 0 && PsiNameHelper.getInstance(myProject).isQualifiedName(inputString); }
checkInput
46,908
void (@NotNull final AnActionEvent e) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (editor == null || selection == null || !editor.ensureEditable()) { return; } actionPerformed(selection); selection.getContainer().re...
actionPerformed
46,909
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,910
void (@NotNull final AnActionEvent e) { final Presentation presentation = e.getPresentation(); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (selection == null) { presentation.setEnabled(false); } else { presentation.setEnabled(selection.getContainer() != null && selection.getFocusedIndex() >= 0...
update
46,911
void (CaptionSelection selection) { RadContainer container = selection.getContainer(); container.getGridLayoutManager().insertGridCells(container, selection.getFocusedIndex(), selection.isRow(), true, false); }
actionPerformed
46,912
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 (point.x - source.x) + Math.abs(point.y - source.y) * scale; } }
calcDistance
46,913
int () { return 1; }
getColumnMoveDelta
46,914
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { RadContainer container = getContainerToPack(selection); if (container != null) { container.getDelegee().setSize(container.getMinimumSize()); container.getDelegee().revalidate(); } }
actionPerformed
46,915
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { e.getPresentation().setEnabled(getContainerToPack(selection) != null); }
update
46,916
RadContainer (final List<? extends RadComponent> selection) { if (selection.size() != 1 || !(selection.get(0) instanceof RadContainer container)) { return null; } if (!container.getParent().isXY()) { return null; } return container; }
getContainerToPack
46,917
void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) return; LoaderFactory.getInstance(project).clearClassLoaderCache(); final FileEditor[] fileEditors = FileEditorManager.getInstance(project).getAllEditors(); for(FileEditor editor: fileEditors) { if (editor instan...
actionPerformed
46,918
void (@NotNull AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getActiveEditor(e.getDataContext()); e.getPresentation().setVisible(editor != null && haveCustomComponents(editor)); }
update
46,919
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,920
boolean (final GuiEditor editor) { // quick & dirty check if (editor.isFormInvalid()) { return true; } final Ref<Boolean> result = new Ref<>(); FormEditingUtil.iterate(editor.getRootContainer(), new FormEditingUtil.ComponentVisitor() { @Override public boolean visit(final IComponent component) { if (component instanceo...
haveCustomComponents
46,921
boolean (final IComponent component) { if (component instanceof RadErrorComponent || !component.getComponentClassName().startsWith("javax.swing")) { result.set(Boolean.TRUE); return false; } return true; }
visit
46,922
void (final GuiEditor editor, final List<? extends RadComponent> input, final AnActionEvent e) { List<RadComponent> selection = FormEditingUtil.remapToActionTargets(input); RadContainer parent = FormEditingUtil.getSelectionParent(selection); assert parent != null; List<RadComponent> duplicates = new ArrayList<>(); Map<...
actionPerformed
46,923
void (Map<RadComponent, RadComponent> duplicates, final RadComponent c, final RadComponent copy) { duplicates.put(c, copy); if (c instanceof RadContainer container) { LOG.assertTrue(copy instanceof RadContainer); final RadContainer containerCopy = (RadContainer)copy; for(int i=0; i<container.getComponentCount(); i++) {...
fillDuplicateMap
46,924
void (final Map<RadComponent, RadComponent> duplicates) { for(RadComponent c: duplicates.keySet()) { RadComponent copy = duplicates.get(c); if (c.getBinding() != null) { String binding = BindingProperty.getDefaultBinding(copy); new BindingProperty(c.getProject()).setValueEx(copy, binding); copy.setDefaultBinding(true);...
adjustDuplicates
46,925
boolean (final RadComponent component, boolean incrementRow) { final GridConstraints constraints = component.getConstraints(); int startRow = constraints.getCell(incrementRow) + constraints.getSpan(incrementRow); int endRow = constraints.getCell(incrementRow) + constraints.getSpan(incrementRow)*2 + component.getParent(...
isSpaceBelowEmpty
46,926
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> input, final AnActionEvent e) { List<RadComponent> selection = FormEditingUtil.remapToActionTargets(input); final RadContainer parent = FormEditingUtil.getSelectionParent(selection); e.getPresentation().setEnabled(parent != null && (parent.getLayo...
update
46,927
boolean (final List<RadComponent> selection, final boolean incrementRow) { int aRow = selection.get(0).getConstraints().getCell(incrementRow); int aRowSpan = selection.get(0).getConstraints().getSpan(incrementRow); for(int i=1; i<selection.size(); i++) { final RadComponent c = selection.get(i); if (c.getConstraints().g...
canDuplicate
46,928
String () { return UIDesignerBundle.message("command.duplicate"); }
getCommandName
46,929
void (CaptionSelection selection) { GridChangeUtil.splitCell(selection.getContainer(), selection.getFocusedIndex(), selection.isRow()); }
actionPerformed
46,930
void (GuiEditor editor, List<? extends RadComponent> selection, AnActionEvent e) { editor.showFormSource(); }
actionPerformed
46,931
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 (source.y - point.y) + Math.abs(point.x - source.x) * scale; } }
calcDistance
46,932
int () { return -1; }
getRowMoveDelta
46,933
void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor != null) { final ArrayList<RadComponent> selection = FormEditingUtil.getSelectedComponents(editor); if (myModifying) { if (!editor.ensureEditable()) return; } InplaceEditingLayer editing...
actionPerformed
46,934
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,935
void (@NotNull AnActionEvent e) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor == null) { e.getPresentation().setEnabledAndVisible(false); } else { e.getPresentation().setEnabledAndVisible(true); final ArrayList<RadComponent> selection = FormEditingUtil.getSelectedComponents(e...
update
46,936
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { }
update
46,937
void (final GuiEditor editor, final List<? extends RadComponent> input, final AnActionEvent e) { // the action is also reused as quickfix for NoScrollPaneInspection, so this code should be kept here List<RadComponent> selection = FormEditingUtil.remapToActionTargets(input); if (!editor.ensureEditable()) { return; } fin...
actionPerformed
46,938
void (@NotNull final GuiEditor editor, final ArrayList<? extends RadComponent> input, final AnActionEvent e) { List<RadComponent> selection = FormEditingUtil.remapToActionTargets(input); RadContainer selectionParent = FormEditingUtil.getSelectionParent(selection); Palette palette = Palette.getInstance(editor.getProject...
update
46,939
boolean (final List<? extends RadComponent> selection) { if (myComponentClass.equals(JScrollPane.class.getName())) { if (selection.size() > 1) return false; JComponent liveComponent = selection.get(0).getDelegee(); return liveComponent instanceof Scrollable || liveComponent instanceof JPanel; } return true; }
canWrapSelection
46,940
boolean (RadContainer selectionParent, List<? extends RadComponent> selection) { if (!selectionParent.getLayoutManager().isGrid()) { return false; } Rectangle rc = FormEditingUtil.getSelectionBounds(selection); for(RadComponent c: selectionParent.getComponents()) { if (!selection.contains(c) && constraintsIntersect(tru...
isSelectionContiguous
46,941
boolean (boolean horizontal, GridConstraints constraints, Rectangle rc) { int start = constraints.getCell(!horizontal); int end = start + constraints.getSpan(!horizontal) - 1; int otherStart = horizontal ? rc.x : rc.y; int otherEnd = otherStart + (horizontal ? rc.width : rc.height) - 1; return start <= otherEnd && othe...
constraintsIntersect
46,942
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { RadTabbedPane tabbedPane = (RadTabbedPane) selection.get(0); Palette palette = Palette.getInstance(editor.getProject()); final RadComponent radComponent = InsertComponentProcessor.createPanelComponent(editor); final Com...
actionPerformed
46,943
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { final PropertyInspectorTable inspector = e.getData(PropertyInspectorTable.DATA_KEY); assert inspector != null; final Property property = inspector.getSelectedProperty(); assert property != null; doResetValue(selection, ...
actionPerformed
46,944
void (final List<? extends RadComponent> selection, final Property property, final GuiEditor editor) { try { if (!editor.ensureEditable()) return; final PropertyInspector propertyInspector = DesignerToolWindowManager.getInstance(editor).getPropertyInspector(); if (propertyInspector.isEditing()) { propertyInspector.stop...
doResetValue
46,945
void (final GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { PropertyInspectorTable inspector = e.getData(PropertyInspectorTable.DATA_KEY); if (inspector != null) { final Property selectedProperty = inspector.getSelectedProperty(); e.getPresentation().setEnabled(selectedProp...
update
46,946
void (final GuiEditor editor) { myEditor = editor; }
setEditor
46,947
void (@NotNull final AnActionEvent e) { final ArrayList<RadComponent> selection = FormEditingUtil.getAllSelectedComponents(myEditor); final RadComponent component = selection.get(0); final Property defaultInplaceProperty = component.getDefaultInplaceProperty(); myEditor.getInplaceEditingLayer().startInplaceEditing(comp...
actionPerformed
46,948
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,949
void (@NotNull final AnActionEvent e) { final Presentation presentation = e.getPresentation(); final ArrayList<RadComponent> selection = FormEditingUtil.getAllSelectedComponents(myEditor); // Inplace editing can be started only if single component is selected if(selection.size() != 1){ presentation.setEnabled(false); r...
update
46,950
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { ListenerNavigateButton.showNavigatePopup(selection.get(0), true); }
actionPerformed
46,951
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { final DefaultActionGroup actionGroup = prepareActionGroup(selection); final JComponent selectedComponent = selection.get(0).getDelegee(); final DataContext context = DataManager.getInstance().getDataContext(selectedComp...
actionPerformed
46,952
DefaultActionGroup (final List<? extends RadComponent> selection) { final DefaultActionGroup actionGroup = new DefaultActionGroup(); final EventSetDescriptor[] eventSetDescriptors; try { BeanInfo beanInfo = Introspector.getBeanInfo(selection.get(0).getComponentClass()); eventSetDescriptors = beanInfo.getEventSetDescrip...
prepareActionGroup
46,953
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { e.getPresentation().setEnabled(canCreateListener(selection)); }
update
46,954
boolean (final ArrayList<? extends RadComponent> selection) { if (selection.size() == 0) return false; final RadRootContainer root = (RadRootContainer)FormEditingUtil.getRoot(selection.get(0)); if (root.getClassToBind() == null) return false; String componentClass = selection.get(0).getComponentClassName(); for(RadComp...
canCreateListener
46,955
void (@NotNull AnActionEvent e) { CommandProcessor.getInstance().executeCommand(e.getProject(), () -> createListener(), UIDesignerBundle.message("create.listener.command"), null); }
actionPerformed
46,956
void () { RadRootContainer root = (RadRootContainer)FormEditingUtil.getRoot(mySelection.get(0)); final PsiField[] boundFields = new PsiField[mySelection.size()]; for (int i = 0; i < mySelection.size(); i++) { boundFields[i] = BindingProperty.findBoundField(root, mySelection.get(i).getBinding()); } final PsiClass myClas...
createListener
46,957
void () { final PsiElement anonymousClassStatement = ptr.getElement(); if (anonymousClassStatement == null) { return; } final Ref<PsiClass> newClassRef = new Ref<>(); anonymousClassStatement.accept(new JavaRecursiveElementWalkingVisitor() { @Override public void visitClass(@NotNull PsiClass aClass) { newClassRef.set(aC...
run
46,958
void (@NotNull PsiClass aClass) { newClassRef.set(aClass); }
visitClass
46,959
Editor () { if (fileEditors != null) { for (FileEditor fileEditor : fileEditors) { if (fileEditor instanceof TextEditor) { return ((TextEditor)fileEditor).getEditor(); } } } return null; }
getEditor
46,960
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
46,961
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,962
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 Stack<ComponentPtr[]> history = editor.getSelectionState().getSelectionH...
update
46,963
void (@NotNull final AnActionEvent e) { final ArrayList<RadComponent> selectedComponents = FormEditingUtil.getSelectedComponents(myEditor); final JComponent rootContainerDelegee = myEditor.getRootContainer().getDelegee(); if(selectedComponents.size() == 0){ moveToFirstComponent(rootContainerDelegee); return; } RadCompo...
actionPerformed
46,964
boolean (final RadComponent component) { if (component instanceof RadAtomicComponent) { if(selectedComponent1.equals(component)){ return true; } if (!FormEditingUtil.isComponentSwitchedInView(component)) { return true; } components.add(component); final JComponent _delegee = component.getDelegee(); final Point p = Swin...
visit
46,965
void (final RadComponent component) { if (myExtend) { FormEditingUtil.selectComponent(myEditor, component); } else { FormEditingUtil.selectSingleComponent(myEditor, component); } }
selectOrExtend
46,966
void (final JComponent rootContainerDelegee) { final int[] minX = new int[]{Integer.MAX_VALUE}; final int[] minY = new int[]{Integer.MAX_VALUE}; final Ref<RadComponent> componentToBeSelected = new Ref<>(); FormEditingUtil.iterate( myEditor.getRootContainer(), new FormEditingUtil.ComponentVisitor<RadComponent>() { @Over...
moveToFirstComponent
46,967
boolean (final RadComponent component) { if (component instanceof RadAtomicComponent) { final JComponent _delegee = component.getDelegee(); final Point p = SwingUtilities.convertPoint( _delegee, new Point(0, 0), rootContainerDelegee ); if(minX[0] > p.x || minY[0] > p.y){ minX[0] = p.x; minY[0] = p.y; componentToBeSelec...
visit
46,968
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,969
void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(!myEditor.getMainProcessor().isProcessorActive()); }
update
46,970
boolean (final RadComponent selectedComponent) { final RadContainer parent = selectedComponent.getParent(); if (parent == null || !parent.getLayoutManager().isGrid()) { return false; } int row = selectedComponent.getConstraints().getRow(); int column = selectedComponent.getConstraints().getColumn(); RadComponent lastCo...
moveSelectionByGrid
46,971
int () { return 0; }
getColumnMoveDelta
46,972
int () { return 0; }
getRowMoveDelta
46,973
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { final ListPopup groupPopup = JBPopupFactory.getInstance() .createActionGroupPopup(UIDesignerBundle.message("surround.with.popup.title"), myActionGroup, e.getDataContext(), JBPopupFactory.ActionSelectionAid.ALPHA_NUMBERI...
actionPerformed
46,974
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { e.getPresentation().setEnabled(selection.size() > 0); }
update
46,975
void (final CaptionSelection selection) { final RadContainer container = selection.getContainer(); container.getGridLayoutManager().insertGridCells(container, selection.getFocusedIndex(), selection.isRow(), false, false); }
actionPerformed
46,976
void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (editor == null || selection == null || selection.getFocusedIndex() < 0) return; FormEditingUtil.deleteRowOrColumn(editor, sele...
actionPerformed
46,977
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
46,978
void (@NotNull final AnActionEvent e) { final Presentation presentation = e.getPresentation(); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if(selection == null || selection.getContainer() == null){ presentation.setVisible(false); return; } presentation.setVisible(true); if (selection.getSelection...
update
46,979
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { for(RadComponent c: selection) { RadContainer container = (RadContainer) c; final RadContainer parent = container.getParent(); if (container.getLayoutManager().isGrid()) { flattenGrid(container); } else { flattenSimple(...
actionPerformed
46,980
void (final RadContainer container) { RadContainer parent = container.getParent(); GridConstraints containerConstraints = (GridConstraints) container.getConstraints().clone(); // ensure there will be enough rows and columns to fit the container contents for(int i=containerConstraints.getRowSpan(); i<container.getGridRo...
flattenGrid
46,981
void (final RadContainer container) { RadContainer parent = container.getParent(); RadComponent child = null; Object childLayoutConstraints = null; if (container.getComponentCount() == 1) { child = container.getComponent(0); childLayoutConstraints = container.getCustomLayoutConstraints(); child.getConstraints().restore...
flattenSimple
46,982
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { for(RadComponent c: selection) { if (!canFlatten(c)) { e.getPresentation().setVisible(false); return; } } }
update
46,983
boolean (final RadComponent c) { if (!(c instanceof RadContainer container)) { return false; } if (c.getParent() instanceof RadRootContainer) { return false; } if (container.getLayoutManager().isGrid() && container.getParent().getLayoutManager().isGrid()) { return true; } if (container.getComponentCount() <= 1) { retur...
canFlatten
46,984
String () { return UIDesignerBundle.message("command.flatten"); }
getCommandName
46,985
String () { return UIDesignerBundle.message("error.cannot.create.form"); }
getErrorTitle
46,986
void (ChangeEvent e) { myClassNameTextField.setEnabled(myCreateBoundClassCheckbox.isSelected()); }
stateChanged
46,987
void (@NotNull DocumentEvent e) { setOKActionEnabled(myFormNameTextField.getText().length() > 0); if (myNeedAdjust) { myAdjusting = true; myClassNameTextField.setText(myFormNameTextField.getText()); myAdjusting = false; } }
textChanged
46,988
void (@NotNull DocumentEvent e) { if (!myAdjusting) { myNeedAdjust = false; } }
textChanged
46,989
JComponent () { return myTopPanel; }
createCenterPanel
46,990
void () { if (myCreateBoundClassCheckbox.isSelected()) { myLastClassName = myClassNameTextField.getText(); } else { myLastClassName = null; } myLastLayoutManager = myBaseLayoutManagerCombo.getSelectedName(); GuiDesignerConfiguration.getInstance(myProject).DEFAULT_LAYOUT_MANAGER = myLastLayoutManager; final String input...
doOKAction
46,991
JComponent () { return myFormNameTextField; }
getPreferredFocusedComponent
46,992
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { Processor<ComponentItem> processor = selectedValue -> { Runnable runnable = () -> { for(RadComponent c: selection) { if (!morphComponent(editor, c, selectedValue)) break; } editor.refreshAndSave(true); }; CommandProcess...
actionPerformed
46,993
boolean (final GuiEditor editor, final RadComponent oldComponent, ComponentItem targetItem) { targetItem = InsertComponentProcessor.replaceAnyComponentItem(editor, targetItem, UIDesignerBundle.message("morph.non.palette.component")); if (targetItem == null) { return false; } final RadComponent newComponent = InsertComp...
morphComponent
46,994
void (final GuiEditor editor, final RadComponent oldComponent, final ComponentItem targetItem) { PsiField oldBoundField = BindingProperty.findBoundField(editor.getRootContainer(), oldComponent.getBinding()); if (oldBoundField != null) { final PsiElementFactory factory = JavaPsiFacade.getInstance(editor.getProject()).ge...
updateBoundFieldType
46,995
void (final GuiEditor editor, final RadComponent c, final RadComponent newComponent) { FormEditingUtil.iterate(editor.getRootContainer(), new FormEditingUtil.ComponentVisitor() { @Override public boolean visit(final IComponent component) { RadComponent rc = (RadComponent) component; for(IProperty p: component.getModifi...
retargetComponentProperties
46,996
boolean (final IComponent component) { RadComponent rc = (RadComponent) component; for(IProperty p: component.getModifiedProperties()) { if (p instanceof IntroComponentProperty icp) { final String value = icp.getValue(rc); if (value.equals(c.getId())) { try { icp.setValue((RadComponent)component, newComponent.getId());...
visit
46,997
void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { if (selection.size() == 0) { e.getPresentation().setEnabled(false); return; } for(RadComponent c: selection) { if (!(c instanceof RadAtomicComponent)) { e.getPresentation().setEnabled(false); return; } } }
update
46,998
void (final GuiEditor editor, final List<? extends RadComponent> selection, final AnActionEvent e) { Processor<ComponentItem> processor = selectedValue -> { if (selectedValue != null) { myLastCreatedComponent = selectedValue; editor.getMainProcessor().startInsertProcessor(selectedValue, getCreateLocation(editor, select...
actionPerformed
46,999
ComponentDropLocation (final GuiEditor editor, final List<? extends RadComponent> selection) { ComponentDropLocation dropLocation = null; if (selection.size() > 0) { RadComponent component = selection.get(0); final RadContainer container = component.getParent(); if (container.getLayoutManager().isGrid()) { GridConstrai...
getCreateLocation