Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 158369 Details for
Bug 235479
OperationCanceledException when opening task
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
work-around
clipboard.txt (text/plain), 2.22 KB, created by
Steffen Pingel
on 2010-02-05 22:55:20 EST
(
hide
)
Description:
work-around
Filename:
MIME Type:
Creator:
Steffen Pingel
Created:
2010-02-05 22:55:20 EST
Size:
2.22 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.core >Index: src/org/eclipse/mylyn/internal/tasks/core/TaskList.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java,v >retrieving revision 1.50 >diff -u -r1.50 TaskList.java >--- src/org/eclipse/mylyn/internal/tasks/core/TaskList.java 25 Sep 2009 01:21:40 -0000 1.50 >+++ src/org/eclipse/mylyn/internal/tasks/core/TaskList.java 6 Feb 2010 03:54:09 -0000 >@@ -650,9 +650,14 @@ > } > > public void run(ITaskListRunnable runnable, IProgressMonitor monitor) throws CoreException { >+ run(runnable, monitor, false); >+ } >+ >+ public void run(ITaskListRunnable runnable, IProgressMonitor monitor, boolean ignoreInterrupts) >+ throws CoreException { > monitor = Policy.monitorFor(monitor); > try { >- lock(monitor); >+ lock(monitor, ignoreInterrupts); > > runnable.execute(monitor); > >@@ -668,7 +673,7 @@ > } > } > >- private void lock(IProgressMonitor monitor) throws CoreException { >+ private void lock(IProgressMonitor monitor, boolean ignoreInterrupts) throws CoreException { > while (!monitor.isCanceled()) { > try { > if (lock.acquire(3000)) { >@@ -678,7 +683,11 @@ > return; > } > } catch (InterruptedException e) { >- throw new OperationCanceledException(); >+ if (ignoreInterrupts) { >+ Thread.currentThread().interrupt(); >+ } else { >+ throw new OperationCanceledException(); >+ } > } > } > throw new OperationCanceledException(); >Index: src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java,v >retrieving revision 1.52 >diff -u -r1.52 TaskDataManager.java >--- src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java 8 Oct 2009 01:04:12 -0000 1.52 >+++ src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java 6 Feb 2010 03:54:09 -0000 >@@ -139,7 +139,7 @@ > } > result[0] = state; > } >- }); >+ }, null, true); > if (changed[0]) { > taskList.notifyElementChanged(task); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235479
:
103661
| 158369 |
158370
|
159121