blob: aaaf5f65bde792c631dbc0d5fa3b16edf620f745 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2009 Tasktop Technologies and others.
* 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:
* Tasktop Technologies - initial API and implementation
* David Green - fix for bug 263418
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.mylyn.internal.tasks.ui.editors.RepositoryCompletionProcessor;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.ITasksUiFactory;
/**
* @author Steffen Pingel
* @author David Green
*/
public class TasksUiFactory implements ITasksUiFactory {
public IContentProposalProvider createPersonContentProposalProvider(TaskRepository repository) {
return new PersonProposalProvider(repository.getRepositoryUrl(), repository.getConnectorKind());
}
public ILabelProvider createPersonContentProposalLabelProvider(TaskRepository repository) {
return new PersonProposalLabelProvider();
}
public IContentAssistProcessor createTaskContentAssistProcessor(TaskRepository repository) {
return new RepositoryCompletionProcessor(repository);
}
}