@Nullable public static Editor wrap(@Nullable Editor editor) { if (editor != null && !(editor instanceof VisibleEditor)) { return new VisibleEditor(editor); } return editor; }
@CheckForNull public static Editor wrap(@CheckForNull Editor editor) { if (editor != null && !(editor instanceof VisibleEditor)) { return new VisibleEditor(editor); } return editor; }
@Override public void run() { EditorDiff.process( new VisibleEditor(TraversingEditor.INSTANCE), before, state); } });
@Override public void run() { EditorDiff.process( new VisibleEditor(TraversingEditor.INSTANCE), before, state); } });
Editor editor = new VisibleEditor(new TypeEditor( callback, modifiedTypes, afterTypes, primary, mixins, builder)); return new VisibleEditor(new TypeEditor( callback, null, afterTypes, primary, mixins, builder));
Editor editor = new VisibleEditor(new TypeEditor( callback, modifiedTypes, afterTypes, primary, mixins, builder)); return new VisibleEditor(new TypeEditor( callback, null, afterTypes, primary, mixins, builder));
Editor editor = new VisibleEditor(new TypeEditor( callback, modifiedTypes, afterTypes, primary, mixins, builder)); return new VisibleEditor(new TypeEditor( callback, null, afterTypes, primary, mixins, builder));
Editor editor = new VisibleEditor(TypeEditor.create( callback, checkNodeTypeNames, context.nodeTypes, primary, mixins, rootBuilder));
@Override public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { if (!builder.hasChildNode(JCR_SYSTEM)) { return null; } NodeBuilder system = builder.child(JCR_SYSTEM); if (!system.hasChildNode(JCR_VERSIONSTORAGE)) { return null; } NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE); return new VisibleEditor(new CompositeEditor( new VersionEditor(versionStorage, builder, info), new SubtreeEditor( new VersionStorageEditor(versionStorage, builder), JCR_SYSTEM, JCR_VERSIONSTORAGE))); }
@Override public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { if (!builder.hasChildNode(JCR_SYSTEM)) { return null; } NodeBuilder system = builder.child(JCR_SYSTEM); if (!system.hasChildNode(JCR_VERSIONSTORAGE)) { return null; } NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE); return new VisibleEditor(new CompositeEditor( new VersionEditor(versionStorage, builder, info), new SubtreeEditor( new VersionStorageEditor(versionStorage, builder), JCR_SYSTEM, JCR_VERSIONSTORAGE))); }
@Override public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { if (!builder.hasChildNode(JCR_SYSTEM)) { return null; } NodeBuilder system = builder.child(JCR_SYSTEM); if (!system.hasChildNode(JCR_VERSIONSTORAGE)) { return null; } NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE); return new VisibleEditor(new CompositeEditor( new VersionEditor(versionStorage, builder, info), new SubtreeEditor( new VersionStorageEditor(versionStorage, builder), JCR_SYSTEM, JCR_VERSIONSTORAGE))); }