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 117345 Details for
Bug 248057
consider removing Current subsection
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]
Patch to change the behaviour of +
patch.txt (text/plain), 3.07 KB, created by
David Shepherd
on 2008-11-07 13:08:22 EST
(
hide
)
Description:
Patch to change the behaviour of +
Filename:
MIME Type:
Creator:
David Shepherd
Created:
2008-11-07 13:08:22 EST
Size:
3.07 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java,v >retrieving revision 1.43 >diff -u -r1.43 TaskEditorCommentPart.java >--- src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java 7 Nov 2008 06:23:26 -0000 1.43 >+++ src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java 7 Nov 2008 18:07:38 -0000 >@@ -13,7 +13,9 @@ > package org.eclipse.mylyn.internal.tasks.ui.editors; > > import java.util.ArrayList; >+import java.util.HashMap; > import java.util.List; >+import java.util.Map; > > import org.eclipse.jface.action.Action; > import org.eclipse.jface.action.ToolBarManager; >@@ -73,6 +75,10 @@ > > private boolean expandAllInProgress; > >+ private final Map<Section, CommentGroup> subToCommentGroup = new HashMap<Section, CommentGroup>(); >+ >+ private FormToolkit expansionToolkit; >+ > public TaskEditorCommentPart() { > setPartName("Comments"); > } >@@ -124,6 +130,7 @@ > > @Override > public void createControl(Composite parent, final FormToolkit toolkit) { >+ expansionToolkit = toolkit; > initialize(); > > section = createSection(parent, toolkit, hasIncoming); >@@ -386,14 +393,23 @@ > EditorUtil.toggleExpandableComposite(true, section); > } > >+ //get number of sections that are expanded >+ int numberOfSectionsExpanded = getNumberOfExpandedSections(); >+ //expand that number +1, from the bottom up >+ int count = subSections.size(); > for (Section subSection : subSections) { > if (subSection.isDisposed()) { >+ count--; > continue; > } >- EditorUtil.toggleExpandableComposite(true, subSection); >+ if (count - numberOfSectionsExpanded < 1) { >+ EditorUtil.toggleExpandableComposite(true, subSection); >+ } >+ count--; > } > } > >+ //expand all of the individual comments > for (ExpandableComposite composite : commentComposites) { > if (composite.isDisposed()) { > continue; >@@ -420,6 +436,21 @@ > // } > // } > >+ private int getNumberOfExpandedSections() { >+ int count = 0; >+ for (Section subSection : subSections) { >+ if (subSection.isExpanded()) { >+ count++; >+ } >+ } >+ if (commentComposites.size() > 0) { >+ if (commentComposites.get(commentComposites.size() - 1).isExpanded()) { >+ count++; >+ } >+ } >+ return count; >+ } >+ > private TaskComment convertToTaskComment(TaskDataModel taskDataModel, TaskAttribute commentAttribute) { > TaskComment taskComment = new TaskComment(taskDataModel.getTaskRepository(), taskDataModel.getTask(), > commentAttribute); >@@ -517,6 +548,8 @@ > } > > subSections.add(groupSection); >+ //necessary for expansion >+ subToCommentGroup.put(groupSection, commentGroup); > } > > private void expandSubSection(final FormToolkit toolkit, CommentGroup commentGroup, Section subSection) {
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 248057
:
115766
|
117227
|
117228
| 117345 |
117346
|
117359
|
117360
|
117503
|
117504
|
117956
|
118208