Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-05-26 21:26:57 -0400
committerspingel2010-05-26 21:26:57 -0400
commit87d6a69d7ae6bae860f3433805444ed4a6f034a0 (patch)
treef741e7986208459c398913c3f33aa88910988878 /org.eclipse.mylyn.tasks.ui
parent7becd842b28eb96bc7f0bcaed6a5c94b4084e8b5 (diff)
downloadorg.eclipse.mylyn.tasks-87d6a69d7ae6bae860f3433805444ed4a6f034a0.tar.gz
org.eclipse.mylyn.tasks-87d6a69d7ae6bae860f3433805444ed4a6f034a0.tar.xz
org.eclipse.mylyn.tasks-87d6a69d7ae6bae860f3433805444ed4a6f034a0.zip
RESOLVED - bug 220314: double click on repository attachment does not respect default workbench editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220314
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DownloadAndOpenTaskAttachmentJob.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskAttachmentEditorViewer.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DownloadAndOpenTaskAttachmentJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DownloadAndOpenTaskAttachmentJob.java
index 96dc681c9..7d38b8179 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DownloadAndOpenTaskAttachmentJob.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DownloadAndOpenTaskAttachmentJob.java
@@ -38,6 +38,7 @@ import org.eclipse.ui.PartInitException;
* @author Peter Stibrany
*/
class DownloadAndOpenTaskAttachmentJob implements ICoreRunnable {
+
private final ITaskAttachment attachment;
private final IWorkbenchPage page;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskAttachmentEditorViewer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskAttachmentEditorViewer.java
index 09fcefef4..12b506d60 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskAttachmentEditorViewer.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskAttachmentEditorViewer.java
@@ -40,10 +40,10 @@ public class TaskAttachmentEditorViewer implements ITaskAttachmentViewer {
}
public void openAttachment(final IWorkbenchPage page, final ITaskAttachment attachment) throws CoreException {
-
DownloadAndOpenTaskAttachmentJob job = new DownloadAndOpenTaskAttachmentJob(
MessageFormat.format(Messages.TaskAttachmentEditorViewer_openingAttachment,
AttachmentUtil.getAttachmentFilename(attachment)), attachment, page, descriptor.getId());
- CommonUiUtil.runInUi(job, null);
+ CommonUiUtil.busyCursorWhile(job);
}
+
}

Back to the top