protected <R, S extends Editor<R>> void createChain( Class<R> composedElementType) { @SuppressWarnings("unchecked") CompositeEditor<T, R, S> editor = (CompositeEditor<T, R, S>) getEditor(); editorChain = new Chain<R, S>(editor, composedElementType); }
@SuppressWarnings(value = {"rawtypes", "unchecked"}) public void doTraverseSyntheticCompositeEditor(EditorVisitor visitor) { Editor<?> sample = this.asCompositeEditor().createEditorForTraversal(); AbstractEditorDelegate subDelegate = delegate.createComposedDelegate(); delegate.addSubDelegate(subDelegate, path, sample); delegate.getEditorChain().traverse(visitor, subDelegate); }
protected <R, S extends Editor<R>> void createChain( Class<R> composedElementType) { @SuppressWarnings("unchecked") CompositeEditor<T, R, S> editor = (CompositeEditor<T, R, S>) getEditor(); editorChain = new Chain<R, S>(editor, composedElementType); }
@SuppressWarnings(value = {"rawtypes", "unchecked"}) public void doTraverseSyntheticCompositeEditor(EditorVisitor visitor) { Editor<?> sample = this.asCompositeEditor().createEditorForTraversal(); AbstractEditorDelegate subDelegate = delegate.createComposedDelegate(); delegate.addSubDelegate(subDelegate, path, sample); delegate.getEditorChain().traverse(visitor, subDelegate); }
protected <R, S extends Editor<R>> void createChain( Class<R> composedElementType) { @SuppressWarnings("unchecked") CompositeEditor<T, R, S> editor = (CompositeEditor<T, R, S>) getEditor(); editorChain = new Chain<R, S>(editor, composedElementType); }
@SuppressWarnings(value = {"rawtypes", "unchecked"}) public void doTraverseSyntheticCompositeEditor(EditorVisitor visitor) { Editor<?> sample = this.asCompositeEditor().createEditorForTraversal(); AbstractEditorDelegate subDelegate = delegate.createComposedDelegate(); delegate.addSubDelegate(subDelegate, path, sample); delegate.getEditorChain().traverse(visitor, subDelegate); }