| Summary: | ProgressAnimationItem toolbar button selection opens ProgressView | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Srimathi <meetmathi> | ||||
| Component: | UI | Assignee: | Prakash Rangaraj <prakash> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Prakash Rangaraj <prakash> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | meetmathi, prakash, pwebster | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | 3.7 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 440294 | ||||||
| Attachments: |
|
||||||
|
Description
Srimathi
I propose the following change in ProgressAnimationItem.java.
void doAction() {
JobTreeElement[] jobTreeElements = FinishedJobs.getInstance()
.getKeptElements();
// search from end (youngest)
for (int i = jobTreeElements.length - 1; i >= 0; i--) {
if (jobTreeElements[i] instanceof JobInfo) {
JobInfo ji = (JobInfo) jobTreeElements[i];
Job job = ji.getJob();
if (job != null) {
...
removeTopElement(ji);
}
if(execute(ji, job)) {
//This change is to bring back the same behavior of 3.5,
//that is, not opening ProgressView when Action/Command result is shown
return;
}
}
}
}
progressRegion.processDoubleClick();
refresh();
}
/**
* @param ji
* @param job
*/
private boolean execute(JobInfo ji, Job job) {
Object prop = job.getProperty(IProgressConstants2.ACTION_PROPERTY);
if (prop instanceof IAction && ((IAction) prop).isEnabled()) {
IAction action = (IAction) prop;
action.run();
removeTopElement(ji);
return true;
}
prop = job.getProperty(IProgressConstants2.COMMAND_PROPERTY);
if (prop instanceof ParameterizedCommand) {
...
return true;
}
return false;
}
(In reply to comment #1) > I propose the following change in ProgressAnimationItem.java. Can you submit this as a patch? (In reply to comment #2) > > Can you submit this as a patch? See http://wiki.eclipse.org/Platform_UI/How_to_Contribute for steps. PW Created attachment 187828 [details]
patch contains the changes proposed in previous comment.
Patch released to HEAD Verified in I20110307-2110 |