Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2009-12-14 14:20:21 -0500
committersminto2009-12-14 14:20:21 -0500
commitba0b04dea8e585502e089bf6041ad49778b65d0f (patch)
tree01d97d58015ada910354fb01b2d25a521318b679
parenta07120922685ce630566b2598a699eea4f8da4d4 (diff)
downloadorg.eclipse.mylyn.tasks-ba0b04dea8e585502e089bf6041ad49778b65d0f.tar.gz
org.eclipse.mylyn.tasks-ba0b04dea8e585502e089bf6041ad49778b65d0f.tar.xz
org.eclipse.mylyn.tasks-ba0b04dea8e585502e089bf6041ad49778b65d0f.zip
NEW - bug 297622: AFE opening attachment in default editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297622
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentEditorInput.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentEditorInput.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentEditorInput.java
index 006b85ea9..4df938f00 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentEditorInput.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentEditorInput.java
@@ -50,7 +50,11 @@ public class TaskAttachmentEditorInput extends PlatformObject implements IStorag
}
public String getToolTipText() {
- return attachment.getUrl();
+ if (attachment.getUrl() != null) {
+ return attachment.getUrl();
+ } else {
+ return getName();
+ }
}
public IStorage getStorage() throws CoreException {

Back to the top