delegate.recordError(error.getMessage(), null, error.getUserDataObject()); } else { delegate.recordError(error.getMessage(), null, error.getUserDataObject(), addlPath, delegate.getEditor());
/** * Records an error in any editors that match the path, returning true * if any editors matched. */ private static boolean processEditors(DelegateMap delegateMap, AbstractEditorDelegate<?, ?> baseDelegate, String absolutePath, SimpleViolation error) { List<Editor<?>> editors = delegateMap.getEditorByPath(absolutePath); if (editors == null) { return false; } // No EditorDelegate to attach it to, so record on the baseDelegate // with the appropriate editor & path. for (Editor<?> editor : editors) { baseDelegate.recordError(error.getMessage(), null, error.getUserDataObject(), error.getPath(), editor); } return true; }
delegate.recordError(error.getMessage(), null, error.getUserDataObject()); } else { delegate.recordError(error.getMessage(), null, error.getUserDataObject(), addlPath, delegate.getEditor());
delegate.recordError(error.getMessage(), null, error.getUserDataObject()); } else { delegate.recordError(error.getMessage(), null, error.getUserDataObject(), addlPath, delegate.getEditor());
/** * Records an error in any editors that match the path, returning true * if any editors matched. */ private static boolean processEditors(DelegateMap delegateMap, AbstractEditorDelegate<?, ?> baseDelegate, String absolutePath, SimpleViolation error) { List<Editor<?>> editors = delegateMap.getEditorByPath(absolutePath); if (editors == null) { return false; } // No EditorDelegate to attach it to, so record on the baseDelegate // with the appropriate editor & path. for (Editor<?> editor : editors) { baseDelegate.recordError(error.getMessage(), null, error.getUserDataObject(), error.getPath(), editor); } return true; }
/** * Records an error in any editors that match the path, returning true * if any editors matched. */ private static boolean processEditors(DelegateMap delegateMap, AbstractEditorDelegate<?, ?> baseDelegate, String absolutePath, SimpleViolation error) { List<Editor<?>> editors = delegateMap.getEditorByPath(absolutePath); if (editors == null) { return false; } // No EditorDelegate to attach it to, so record on the baseDelegate // with the appropriate editor & path. for (Editor<?> editor : editors) { baseDelegate.recordError(error.getMessage(), null, error.getUserDataObject(), error.getPath(), editor); } return true; }