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 105095 Details for
Bug 237360
estimated time is not saved
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]
fix
clipboard.txt (text/plain), 3.08 KB, created by
Steffen Pingel
on 2008-06-16 17:59:10 EDT
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Steffen Pingel
Created:
2008-06-16 17:59:10 EDT
Size:
3.08 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java,v >retrieving revision 1.67 >diff -u -r1.67 AbstractTaskEditorPage.java >--- src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java 14 Jun 2008 09:40:19 -0000 1.67 >+++ src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java 16 Jun 2008 21:56:46 -0000 >@@ -172,6 +172,7 @@ > TasksUiPlugin.getTaskActivityManager().setScheduledFor((AbstractTask) newTask, scheduledDate); > Date dueDate = ((AbstractTask) oldTask).getDueDate(); > TasksUiPlugin.getTaskActivityManager().setDueDate(newTask, dueDate); >+ ((AbstractTask) newTask).setEstimatedTimeHours(((AbstractTask) oldTask).getEstimatedTimeHours()); > } > ContextCorePlugin.getContextStore().saveActiveContext(); > ContextCore.getContextStore().cloneContext(oldTask.getHandleIdentifier(), >Index: src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPlanningPart.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPlanningPart.java,v >retrieving revision 1.14 >diff -u -r1.14 TaskEditorPlanningPart.java >--- src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPlanningPart.java 13 Jun 2008 03:20:31 -0000 1.14 >+++ src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPlanningPart.java 16 Jun 2008 21:56:46 -0000 >@@ -30,6 +30,8 @@ > import org.eclipse.mylyn.tasks.core.TaskActivityAdapter; > import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.events.ModifyEvent; >+import org.eclipse.swt.events.ModifyListener; > import org.eclipse.swt.events.SelectionAdapter; > import org.eclipse.swt.events.SelectionEvent; > import org.eclipse.swt.events.SelectionListener; >@@ -272,8 +274,13 @@ > estimatedTime.setMaximum(100); > estimatedTime.setMinimum(0); > estimatedTime.setIncrement(1); >- estimatedTime.setSelection(DEFAULT_ESTIMATED_TIME); >+ estimatedTime.setSelection(task.getEstimatedTimeHours()); > estimatedTime.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); >+ estimatedTime.addModifyListener(new ModifyListener() { >+ public void modifyText(ModifyEvent e) { >+ markDirty(); >+ } >+ }); > > ImageHyperlink clearEstimated = toolkit.createImageHyperlink(composite, SWT.NONE); > clearEstimated.setImage(CommonImages.getImage(CommonImages.FIND_CLEAR)); >@@ -282,6 +289,7 @@ > @Override > public void linkActivated(HyperlinkEvent e) { > estimatedTime.setSelection(0); >+ markDirty(); > } > }); > toolkit.paintBordersFor(composite); >@@ -338,6 +346,10 @@ > scheduleDatePicker.setScheduledDate(null); > } > } >+ >+ if (estimatedTime != null && !estimatedTime.isDisposed()) { >+ estimatedTime.setSelection(updateTask.getEstimatedTimeHours()); >+ } > } > > }
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 237360
: 105095 |
105096