void (AnActionButton button) { AddClientPropertyDialog dlg = new AddClientPropertyDialog(myProject); dlg.show(); if (dlg.getExitCode() == OK_EXIT_CODE) { for (ClientPropertiesManager.ClientProperty prop : myManager.getClientProperties(mySelectedClass)) { if (prop.getName().equalsIgnoreCase(dlg.getEnteredProperty().getName())) { Messages.showErrorDialog(mySplitter, UIDesignerBundle.message("client.properties.already.defined", prop.getName()), UIDesignerBundle.message("client.properties.title")); return; } } myManager.addConfiguredProperty(mySelectedClass, dlg.getEnteredProperty()); updateSelectedProperties(); } }