本文整理汇总了Java中org.eclipse.mylyn.tasks.core.ITask.getModificationDate方法的典型用法代码示例。如果您正苦于以下问题:Java ITask.getModificationDate方法的具体用法?Java ITask.getModificationDate怎么用?Java ITask.getModificationDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.mylyn.tasks.core.ITask
的用法示例。
在下文中一共展示了ITask.getModificationDate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasTaskChanged
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public boolean hasTaskChanged(@NonNull TaskRepository taskRepository, @NonNull ITask task,
@NonNull TaskData taskData) {
Date changedAtTaskData = taskData.getAttributeMapper()
.getDateValue(taskData.getRoot().getAttribute(TaskAttribute.DATE_MODIFICATION));
Date changedAtTask = task.getModificationDate();
if (changedAtTask == null || changedAtTaskData == null)
return true;
if (!changedAtTask.equals(changedAtTaskData))
return true;
return false;
}
示例2: hasTaskChanged
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public boolean hasTaskChanged(TaskRepository taskRepository, ITask task, TaskData taskData)
{
TaskMapper mapper = new RedmineTaskMapper(taskData);
if (taskData.isPartial())
{
return mapper.hasChanges(task);
}
else
{
java.util.Date repositoryDate = mapper.getModificationDate();
java.util.Date localDate = task.getModificationDate();
if (repositoryDate != null && repositoryDate.equals(localDate))
{
return false;
}
return true;
}
}
示例3: hasTaskChanged
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public boolean hasTaskChanged(TaskRepository taskRepository, ITask task, TaskData taskData) {
Date repositoryDate = getTaskMapping(taskData).getModificationDate();
Date localDate = task.getModificationDate();
if (repositoryDate == null)
return false;
return !repositoryDate.equals(localDate);
}
示例4: hasTaskChanged
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public boolean hasTaskChanged(TaskRepository repository, ITask task, TaskData data) {
TaskMapper mapper = new GitlabTaskMapper(data);
if (data.isPartial()) {
return mapper.hasChanges(task);
} else {
Date repositoryDate = mapper.getModificationDate();
Date localDate = task.getModificationDate();
if (repositoryDate != null && repositoryDate.equals(localDate)) {
return false;
}
return true;
}
}
示例5: hasTaskChanged
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public boolean hasTaskChanged(TaskRepository taskRepository, ITask task, TaskData taskData) {
TaskMapper scheme = new TaskMapper(taskData);
Date repositoryDate = scheme.getModificationDate();
Date localeDate = task.getModificationDate();
if (localeDate != null) {
return !localeDate.equals(repositoryDate);
}
return true;
}
示例6: updateTaskFromTaskData
import org.eclipse.mylyn.tasks.core.ITask; //导入方法依赖的package包/类
@Override
public void updateTaskFromTaskData(TaskRepository repository, ITask task, TaskData taskData) {
Date oldModificationDate = task.getModificationDate();
getTaskMapping(taskData).applyTo(task);
}