KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ui > history > MessageHistoryCategory


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ui.history;
12
13 import org.eclipse.team.core.history.IFileRevision;
14
15 public class MessageHistoryCategory extends AbstractHistoryCategory {
16     private String JavaDoc message;
17     
18     public MessageHistoryCategory(String JavaDoc message){
19         this.message = message;
20     }
21     public String JavaDoc getName() {
22         return message;
23     }
24
25     public boolean collectFileRevisions(IFileRevision[] fileRevisions, boolean shouldRemove) {
26         return false;
27     }
28
29     public IFileRevision[] getRevisions() {
30         return new IFileRevision[0];
31     }
32
33     public boolean hasRevisions() {
34         return false;
35     }
36
37 }
38
Popular Tags