|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2006, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 30-35
Link Here
|
| 30 |
|
30 |
|
| 31 |
private IFileRevision fileRevision; |
31 |
private IFileRevision fileRevision; |
| 32 |
private String author; |
32 |
private String author; |
|
|
33 |
private String comment; |
| 33 |
|
34 |
|
| 34 |
/** |
35 |
/** |
| 35 |
* Create a typed element that wraps the given file revision. |
36 |
* Create a typed element that wraps the given file revision. |
|
Lines 138-148
Link Here
|
| 138 |
public void setAuthor(String author) { |
139 |
public void setAuthor(String author) { |
| 139 |
this.author = author; |
140 |
this.author = author; |
| 140 |
} |
141 |
} |
|
|
142 |
|
| 143 |
public String getComment() { |
| 144 |
if (comment == null) |
| 145 |
comment = fileRevision.getComment(); |
| 146 |
return comment; |
| 147 |
} |
| 148 |
|
| 149 |
public void setComment(String comment) { |
| 150 |
this.comment= comment; |
| 151 |
} |
| 141 |
|
152 |
|
| 142 |
public void fetchAuthor(IProgressMonitor monitor) throws CoreException { |
153 |
public void fetchAuthor(IProgressMonitor monitor) throws CoreException { |
| 143 |
if (getAuthor() == null && fileRevision.isPropertyMissing()) { |
154 |
if (getAuthor() == null && fileRevision.isPropertyMissing()) { |
| 144 |
IFileRevision other = fileRevision.withAllProperties(monitor); |
155 |
IFileRevision other = fileRevision.withAllProperties(monitor); |
| 145 |
author = other.getAuthor(); |
156 |
author = other.getAuthor(); |
|
|
157 |
comment = other.getComment(); |
| 146 |
} |
158 |
} |
| 147 |
} |
159 |
} |
| 148 |
|
160 |
|