@Override public <Q> boolean visit(EditorContext<Q> ctx) { // Create a new "domain" for each error-aware editor HasEditorErrors<Q> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) { /* * Aliased editors (like ValueBoxEditorDecorator) will see the errors for * an editor at the same path that it occupies. If the editor that we're * currently looking at has the same path as the last thing we just saw, * recycle the previous errors. */ if (ctx.getAbsolutePath().equals(lastAddedPath)) { errorStack.peek().removeAll(lastAdded); errorStack.push(lastAdded); } else { errorStack.push(new ArrayList<EditorError>()); } } return true; } }
HasEditorErrors<T> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) {
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }
@Override public <Q> boolean visit(EditorContext<Q> ctx) { // Create a new "domain" for each error-aware editor HasEditorErrors<Q> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) { /* * Aliased editors (like ValueBoxEditorDecorator) will see the errors for * an editor at the same path that it occupies. If the editor that we're * currently looking at has the same path as the last thing we just saw, * recycle the previous errors. */ if (ctx.getAbsolutePath().equals(lastAddedPath)) { errorStack.peek().removeAll(lastAdded); errorStack.push(lastAdded); } else { errorStack.push(new ArrayList<EditorError>()); } } return true; } }
@Override public <Q> boolean visit(EditorContext<Q> ctx) { // Create a new "domain" for each error-aware editor HasEditorErrors<Q> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) { /* * Aliased editors (like ValueBoxEditorDecorator) will see the errors for * an editor at the same path that it occupies. If the editor that we're * currently looking at has the same path as the last thing we just saw, * recycle the previous errors. */ if (ctx.getAbsolutePath().equals(lastAddedPath)) { errorStack.peek().removeAll(lastAdded); errorStack.push(lastAdded); } else { errorStack.push(new ArrayList<EditorError>()); } } return true; } }
HasEditorErrors<T> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) {
HasEditorErrors<T> asErrors = ctx.asHasEditorErrors(); if (asErrors != null) {
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }