class KieMultipleDocumentEditorLockSyncHelper extends HasLockSyncMenuStateHelper.BasicLockSyncMenuStateHelper {

    @Override
    public Operation enable(final Path file,
                            final boolean isLocked,
                            final boolean isLockedByCurrentUser) {
        final KieDocument activeDocument = editor.getActiveDocument();
        if (activeDocument == null || !activeDocument.getCurrentPath().equals(file)) {
            return Operation.VETO;
        }
        return super.enable(file,
                            isLocked,
                            isLockedByCurrentUser);
    }

    public  KieMultipleDocumentEditorLockSyncHelper(final KieMultipleDocumentEditor editor);

}