Bug 302115 - Add ${cursor} variable to commit template variable
Summary: Add ${cursor} variable to commit template variable
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-02-08 06:12 EST by Gunnar Wagenknecht CLA
Modified: 2019-09-06 15:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2010-02-08 06:12:13 EST
It should be possible to place a "${cursor}" variable into commit templates. This would be the location where the cursor should wait for user input when the commit dialog pops up.

This functionality would be similar to the one provided in the Java editor. It should encourage users to enter a meaningful commit message. The default Mylyn template is not very useful from an SCM log point of view if multiple commits are made for the same task number and some changes are actually refactorings not really related to that task.


-- Configuration Details --
Product: Eclipse SDK 3.6.0.v201001291300 (org.eclipse.sdk.ide)
Installed Features:
 org.eclipse.mylyn_feature 3.4.0.I20100204-0200-e3x
Comment 1 Steffen Pingel CLA 2010-07-08 21:55:32 EDT
That sounds like a great idea. Unfortunately this would require support from each team provider since the commit dialog is provider specific as far as I know.

I have moved this bug to CVS. Please free to bounce back to Mylyn if there is already support for controlling the cursor position in the commit message dialog.
Comment 2 Szymon Brandys CLA 2010-07-12 06:08:16 EDT
Stefen or Gunnar, are you considering providing a patch to fix that in the CVS provider? It should not be hard. I think you should raise similar bugs for other providers like Subversive or EGit.
Comment 3 Gunnar Wagenknecht CLA 2010-07-12 06:56:15 EDT
My understanding was that the commit templates are a general feature provided by Mylyn. After all, that's the location in the preferences where I - as a user - would use that variable.

I'm not sure how Mylyn injects the message into the various commit dialogs today. But it seems that the only requirement for CVS team provider is exposing some API to control the cursor positioning within the commit dialog. 

But, I don't have the time to contribute a complete patch story here.
Comment 4 Tomasz Zarna CLA 2010-07-27 05:56:42 EDT
(In reply to comment #1)
> Please free to bounce back to Mylyn if there is
> already support for controlling the cursor position in the commit message
> dialog.

(In reply to comment #3)
> But it seems that the only requirement for CVS team provider is exposing
> some API to control the cursor positioning within the commit dialog. 


There is no such API at the moment. I guess this will have to wait for a volunteer that would provide an initial patch.
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:31:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.