diff options
author | Jeff Johnston | 2009-03-16 21:09:11 +0000 |
---|---|---|
committer | Jeff Johnston | 2009-03-16 21:09:11 +0000 |
commit | 0ff202bf64a28cc7812bcd922753a009697ab084 (patch) | |
tree | 469edc3be401063afe44ddf70523dd2faaaefdf0 /changelog/org.eclipse.linuxtools.changelog.core/src | |
parent | 8a2aff9dcf40d467903a478e686f29eed99f307f (diff) | |
download | org.eclipse.linuxtools-0ff202bf64a28cc7812bcd922753a009697ab084.tar.gz org.eclipse.linuxtools-0ff202bf64a28cc7812bcd922753a009697ab084.tar.xz org.eclipse.linuxtools-0ff202bf64a28cc7812bcd922753a009697ab084.zip |
2009-03-16 Elliott Baron <ebaron@redhat.com>
Resolves #268224.
* src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java (prepareChangeLog):
Check that resource changed is a file before adding it to the changed list.
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core/src')
-rw-r--r-- | changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java index 886f53cfea..54c008764b 100644 --- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java +++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/actions/PrepareChangeLogAction.java @@ -303,9 +303,11 @@ public class PrepareChangeLogAction extends ChangeLogAction { p.setRemovedFile(true); removeList.add(p); } else if (kind == SyncInfo.CHANGE) { - changeList.add(p); - // Save the resource so we can later figure out which lines were changed - p.setResource(info.getLocal()); + if (info.getLocal().getType() == IResource.FILE) { + changeList.add(p); + // Save the resource so we can later figure out which lines were changed + p.setResource(info.getLocal()); + } } } } |