@Override @Nullable public String getToolTipText(final MouseEvent e) { final TreePath path = getPathForLocation(e.getX(), e.getY()); final RadComponent component = getComponentFromPath(path); if(component != null) { final ErrorInfo errorInfo = ErrorAnalyzer.getErrorForComponent(component); if(errorInfo != null) { return errorInfo.myDescription; } } return null; }
@NotNull protected ErrorInfo[] getErrorInfos() { final ArrayList<RadComponent> list = FormEditingUtil.getSelectedComponents(getEditor()); if (list.size() != 1) { return ErrorInfo.EMPTY_ARRAY; } return ErrorAnalyzer.getAllErrorsForComponent(list.get(0)); }
@NotNull protected ErrorInfo[] getErrorInfos() { final RadComponent component = myComponent.getSelectedComponent(); if(component == null){ return ErrorInfo.EMPTY_ARRAY; } return ErrorAnalyzer.getAllErrorsForComponent(component); }
@Override @NotNull protected ErrorInfo[] getErrorInfos() { final ArrayList<RadComponent> list = FormEditingUtil.getSelectedComponents(getEditor()); if(list.size() != 1) { return ErrorInfo.EMPTY_ARRAY; } return ErrorAnalyzer.getAllErrorsForComponent(list.get(0)); }