Java 类com.intellij.uiDesigner.make.PsiNestedFormLoader 实例源码

项目:consulo-ui-designer    文件:InsertComponentProcessor.java   
private boolean validateNestedFormInsert(final ComponentItem item)
{
    PsiFile boundForm = item.getBoundForm();
    if(boundForm != null)
    {
        try
        {
            final String formName = FormEditingUtil.buildResourceName(boundForm);
            final String targetForm = FormEditingUtil.buildResourceName(myEditor.getPsiFile());
            Utils.validateNestedFormLoop(formName, new PsiNestedFormLoader(myEditor.getModule()), targetForm);
        }
        catch(Exception ex)
        {
            Messages.showErrorDialog(myEditor, ex.getMessage(), CommonBundle.getErrorTitle());
            return false;
        }
    }
    return true;
}
项目:intellij-ce-playground    文件:InsertComponentProcessor.java   
private boolean validateNestedFormInsert(final ComponentItem item) {
  PsiFile boundForm = item.getBoundForm();
  if (boundForm != null) {
    try {
      final String formName = FormEditingUtil.buildResourceName(boundForm);
      final String targetForm = FormEditingUtil.buildResourceName(myEditor.getPsiFile());
      Utils.validateNestedFormLoop(formName, new PsiNestedFormLoader(myEditor.getModule()), targetForm);
    }
    catch (Exception ex) {
      Messages.showErrorDialog(myEditor, ex.getMessage(), CommonBundle.getErrorTitle());
      return false;
    }
  }
  return true;
}
项目:tools-idea    文件:InsertComponentProcessor.java   
private boolean validateNestedFormInsert(final ComponentItem item) {
  PsiFile boundForm = item.getBoundForm();
  if (boundForm != null) {
    try {
      final String formName = FormEditingUtil.buildResourceName(boundForm);
      final String targetForm = FormEditingUtil.buildResourceName(myEditor.getPsiFile());
      Utils.validateNestedFormLoop(formName, new PsiNestedFormLoader(myEditor.getModule()), targetForm);
    }
    catch (Exception ex) {
      Messages.showErrorDialog(myEditor, ex.getMessage(), CommonBundle.getErrorTitle());
      return false;
    }
  }
  return true;
}