Java 类com.intellij.uiDesigner.propertyInspector.editors.string.StringEditorDialog 实例源码

项目:intellij-ce-playground    文件:FormInspectionUtil.java   
public static void updateStringPropertyValue(GuiEditor editor,
                                             RadComponent component,
                                             IntroStringProperty prop,
                                             StringDescriptor descriptor,
                                             String result) {
  if (descriptor.getBundleName() == null) {
    prop.setValueEx(component, StringDescriptor.create(result));
  }
  else {
    final String newKeyName = StringEditorDialog.saveModifiedPropertyValue(editor.getModule(), descriptor,
                                                                           editor.getStringDescriptorLocale(), result,
                                                                           editor.getPsiFile());
    if (newKeyName != null) {
      prop.setValueEx(component, new StringDescriptor(descriptor.getBundleName(), newKeyName));
    }
  }
  editor.refreshAndSave(false);
}
项目:tools-idea    文件:FormInspectionUtil.java   
public static void updateStringPropertyValue(GuiEditor editor,
                                             RadComponent component,
                                             IntroStringProperty prop,
                                             StringDescriptor descriptor,
                                             String result) {
  if (descriptor.getBundleName() == null) {
    prop.setValueEx(component, StringDescriptor.create(result));
  }
  else {
    final String newKeyName = StringEditorDialog.saveModifiedPropertyValue(editor.getModule(), descriptor,
                                                                           editor.getStringDescriptorLocale(), result,
                                                                           editor.getPsiFile());
    if (newKeyName != null) {
      prop.setValueEx(component, new StringDescriptor(descriptor.getBundleName(), newKeyName));
    }
  }
  editor.refreshAndSave(false);
}
项目:consulo-ui-designer    文件:FormInspectionUtil.java   
public static void updateStringPropertyValue(GuiEditor editor,
                                             RadComponent component,
                                             IntroStringProperty prop,
                                             StringDescriptor descriptor,
                                             String result) {
  if (descriptor.getBundleName() == null) {
    prop.setValueEx(component, StringDescriptor.create(result));
  }
  else {
    final String newKeyName = StringEditorDialog.saveModifiedPropertyValue(editor.getModule(), descriptor,
                                                                           editor.getStringDescriptorLocale(), result,
                                                                           editor.getPsiFile());
    if (newKeyName != null) {
      prop.setValueEx(component, new StringDescriptor(descriptor.getBundleName(), newKeyName));
    }
  }
  editor.refreshAndSave(false);
}