1 /******************************************************************************* 2 * Copyright (c) 2006 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.team.internal.ui.history; 15 16 import org.eclipse.team.core.history.IFileRevision; 17 18 public class MessageHistoryCategory extends AbstractHistoryCategory { 19 private String message; 20 MessageHistoryCategory(String message)21 public MessageHistoryCategory(String message){ 22 this.message = message; 23 } 24 @Override getName()25 public String getName() { 26 return message; 27 } 28 29 @Override collectFileRevisions(IFileRevision[] fileRevisions, boolean shouldRemove)30 public boolean collectFileRevisions(IFileRevision[] fileRevisions, boolean shouldRemove) { 31 return false; 32 } 33 34 @Override getRevisions()35 public IFileRevision[] getRevisions() { 36 return new IFileRevision[0]; 37 } 38 39 @Override hasRevisions()40 public boolean hasRevisions() { 41 return false; 42 } 43 44 } 45