void () { // TODO[vova] implement validation if (myClassRadioButton.isSelected()) { final String className = myDocument.getText().trim(); PsiClass psiClass = JavaPsiFacade.getInstance(myProject).findClass(className, GlobalSearchScope.allScope(myProject)); if (psiClass != null) { myItemToBeEdited.setClassName(getClassOrInnerName(psiClass)); } else { myItemToBeEdited.setClassName(className); } } else { if (!saveNestedForm()) return; } myItemToBeEdited.setIconPath(myTfIconPath.getText().trim()); { final GridConstraints defaultConstraints = myItemToBeEdited.getDefaultConstraints(); // Horizontal size policy defaultConstraints.setHSizePolicy( (myChkHorCanShrink.isSelected() ? GridConstraints.SIZEPOLICY_CAN_SHRINK : 0) | (myChkHorCanGrow.isSelected() ? GridConstraints.SIZEPOLICY_CAN_GROW : 0) | (myChkHorWantGrow.isSelected() ? GridConstraints.SIZEPOLICY_WANT_GROW : 0) ); // Vertical size policy defaultConstraints.setVSizePolicy( (myChkVerCanShrink.isSelected() ? GridConstraints.SIZEPOLICY_CAN_SHRINK : 0) | (myChkVerCanGrow.isSelected() ? GridConstraints.SIZEPOLICY_CAN_GROW : 0) | (myChkVerWantGrow.isSelected() ? GridConstraints.SIZEPOLICY_WANT_GROW : 0) ); defaultConstraints.setFill( (myChkHorWantGrow.isSelected() ? GridConstraints.FILL_HORIZONTAL : 0) | (myChkVerWantGrow.isSelected() ? GridConstraints.FILL_VERTICAL : 0) ); } myItemToBeEdited.setIsContainer(myIsContainerCheckBox.isSelected()); myItemToBeEdited.setAutoCreateBinding(myAutoCreateBindingCheckbox.isSelected()); myItemToBeEdited.setCanAttachLabel(myCanAttachLabelCheckbox.isSelected()); super.doOKAction(); }