/******************************************************************************* * Copyright (c) 2010, 2011 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Obeo - initial API and implementation *******************************************************************************/ package org.eclipse.mylyn.docs.intent.client.linkresolver.repository; import org.eclipse.core.runtime.jobs.Job; import org.eclipse.mylyn.docs.intent.collab.handlers.impl.AbstractRepositoryClient; import org.eclipse.mylyn.docs.intent.collab.handlers.notification.RepositoryChangeNotification; import org.eclipse.mylyn.docs.intent.collab.repository.Repository; /** * Link resolver client. Launch a resolve operation each time a modification on links is detected. * * @author <a href="mailto:alex.lagarde@obeo.fr">Alex Lagarde</a> * @author <a href="mailto:william.piers@obeo.fr">William Piers</a> */ public class LinkResolverClient extends AbstractRepositoryClient { /** * Constructor. * * @param repository * the repository */ public LinkResolverClient(Repository repository) { super(repository); } /** * {@inheritDoc} * * @see org.eclipse.mylyn.docs.intent.collab.handlers.impl.AbstractRepositoryClient#createNotificationJob(org.eclipse.mylyn.docs.intent.collab.handlers.notification.RepositoryChangeNotification) */ @Override protected Job createNotificationJob(RepositoryChangeNotification notification) { return new LinkResolverJob(repositoryObjectHandler.getRepositoryAdapter()); } }