Bug 184473 - 'Open Log' in Error Log view should set caret to end of file
Summary: 'Open Log' in Error Log view should set caret to end of file
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Peter Friese CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2007-04-27 12:25 EDT by Markus Keller CLA
Modified: 2007-07-30 18:20 EDT (History)
4 users (show)

See Also:
caniszczyk: review? (baumanbr)


Attachments
Patch for bug 184473 (5.72 KB, patch)
2007-07-27 15:20 EDT, Peter Friese CLA
no flags Details | Diff
mylyn/context/zip (1.22 KB, application/octet-stream)
2007-07-27 15:20 EDT, Peter Friese CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-04-27 12:25:02 EDT
I20070427-0010

The 'Open Log' action from the Error Log view should set the caret to the end of the editor. The start of the log file is arbitrary (since it is mostly a continuation...). The end is where interesting stuff happens.
Comment 1 Peter Friese CLA 2007-07-27 04:36:35 EDT
Nice idea. Bugday?
Comment 2 Wassim Melhem CLA 2007-07-27 10:03:32 EDT
sure, as long as the solution does not require adding heavyweight dependency to the org.eclipse.pde.runtime plug-in.  It must remain lightweight so that the plug-in can be dropped in an RCP app.
Comment 3 Peter Friese CLA 2007-07-27 10:15:55 EDT
I'd rather suppose it will induce a dependency to text (if it doesn't have one already, that is), since we'd have to interact with the text editor in which the log file is opened.

Please assign to me, I'll create a patch and you can see if you like it or not :-)
Comment 4 Wassim Melhem CLA 2007-07-27 10:21:21 EDT
The only dependencies the plug-in must have are core.runtime and org.eclipse.ui.  

This function of opening the file in a default editor is only available in an IDE context and hence the "optional" dependency of the IDE-specific plug-ins.
Comment 5 Peter Friese CLA 2007-07-27 15:20:29 EDT
Created attachment 74827 [details]
Patch for bug 184473

Patch makes editor jump to end of log file if log file is opened in internal text editor.
Comment 6 Peter Friese CLA 2007-07-27 15:20:32 EDT
Created attachment 74828 [details]
mylyn/context/zip
Comment 7 Peter Friese CLA 2007-07-27 15:24:11 EDT
I had to add an optional dependecy to jface.text, but I made sure we check whether this plug-in is available before enabling the action.

Hope this is ok with you...
Comment 8 Chris Aniszczyk CLA 2007-07-27 17:17:19 EDT
Brian / Wassim, do you think the added functionality is useful enough for the optional dependency weirdness?

Thanks Peter!
Comment 9 Brian Bauman CLA 2007-07-27 19:02:54 EDT
We already have optional dependency weirdness, so a little more shouldn't hurt :)
Comment 10 Wassim Melhem CLA 2007-07-27 19:04:01 EDT
weirdness is a slippery slope.
Comment 11 Wassim Melhem CLA 2007-07-30 13:42:39 EDT
The patch also seems to add a new dependency on org.eclipse.ui.editors via Import-Package.

Brian, I will let you decide if we should put it in or not.  However, my feeling is that the caret position does not warrant this big dependency production and we should close as WONTFIX.
Comment 12 Wassim Melhem CLA 2007-07-30 13:43:11 EDT
Brian, see my previous comment.
Comment 13 Brian Bauman CLA 2007-07-30 14:35:01 EDT
This bug is definitely a nice to have.  This fix requires nearly doubling the dependencies of the org.eclipse.pde.runtime plug-in along with some messy code (not due to Peter's code, just the APIs available).  For this reason, I think this one is best left as WONTFIX.

Peter, thanks for the patch.  It worked good and I would have done it extremely similar myself.
Comment 14 Peter Friese CLA 2007-07-30 18:20:43 EDT
(In reply to comment #13)
> This bug is definitely a nice to have.  This fix requires nearly doubling the
> dependencies of the org.eclipse.pde.runtime plug-in along with some messy code
> (not due to Peter's code, just the APIs available).  For this reason, I think
> this one is best left as WONTFIX.
Agree.

> Peter, thanks for the patch.  It worked good and I would have done it extremely
> similar myself.
You're welcome!