blob: 008c2ad9c56e94069c1715dd7658dfda3b71d91a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 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
*******************************************************************************/
package org.eclipse.mylyn.internal.team.ui;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.team.ui.AbstractTaskReference;
import org.eclipse.team.internal.core.subscribers.ChangeSet;
/**
* Default implementation of {@link AbstractTaskReference}
*
* @author Eugene Kuleshov
* @author Mik Kersten
*/
public class LinkedTaskInfo extends AbstractTaskReference {
private ITask task;
private String repositoryUrl;
private String taskId;
private String taskFullUrl;
private String comment;
private ChangeSet changeSet = null;
public LinkedTaskInfo(ITask task, ChangeSet changeSet) {
this.task = task;
this.changeSet = changeSet;
}
public LinkedTaskInfo(String taskFullUrl) {
this.taskFullUrl = taskFullUrl;
}
public LinkedTaskInfo(String repositoryUrl, String taskId, String taskFullUrl, String comment) {
this.repositoryUrl = repositoryUrl;
this.taskId = taskId;
this.taskFullUrl = taskFullUrl;
this.comment = comment;
}
@Override
public String getRepositoryUrl() {
return repositoryUrl;
}
public ITask getTask() {
return task;
}
@Override
public String getTaskUrl() {
return taskFullUrl;
}
@Override
public String getTaskId() {
return taskId;
}
@Override
public String getText() {
return comment;
}
public ChangeSet getChangeSet() {
return changeSet;
}
}