Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 108611 - [Tags] Provide for viewing last 20 tags when tagging
Summary: [Tags] Provide for viewing last 20 tags when tagging
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.5 M1   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 14:02 EDT by Don Leckie CLA
Modified: 2009-06-02 06:48 EDT (History)
1 user (show)

See Also:


Attachments
Patch (6.14 KB, patch)
2008-07-22 09:38 EDT, Pawel Pogorzelski CLA
no flags Details | Diff
Patch (5.80 KB, patch)
2008-07-28 04:31 EDT, Pawel Pogorzelski CLA
pawel.pogorzelski1: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Leckie CLA 2005-09-01 14:02:29 EDT
When creating a cvs tag, it would be very helpful if the Tag had a drop down 
list that shows the last 20 tags used.  There are many times when I want to 
apply the same tag to several folders.  Today I have to retype the tag each 
time and hope that I spell it correctly each time.
Comment 1 Michael Valenta CLA 2005-09-06 15:35:54 EDT
I agree. We use content assist in the branch dialog and there is no reason 
this would work for tagging as well.
Comment 2 Pawel Pogorzelski CLA 2008-07-22 09:38:19 EDT
Created attachment 108060 [details]
Patch

I fixed the problem but I'm not sure if it's a proper solution. The tag name is added to the history when the user hits OK button, not when corresponding action is performed.

It would be nice if somebody can comment on the fix. Tomasz, what do you think?
Comment 3 Tomasz Zarna CLA 2008-07-23 09:19:41 EDT
I think you are going in the right direction but I have a few comments:
* imo we can get away with saving the tag after clicking OK (ignoring whether the operation succeed or not)
* If I understood the code correctly DEFAULT_TAG is the last tag used. Isn't it the same tag as TAG_HISTORY[0]?
* I don't think we should suggest any tag by default, they should be available in the drop down though
* A better name for the argument passed to "rememberTagName" would be "tagName"
* The same thing with "filenames" used in the "rememberTagName" method, I would change it to "tagNames"
* Would "Vector tagNames = new Vector(Arrays.asList(tagNameHistory));" work for initializing the vector?
* Another naming I would change: "_section" to "settingsSection"
* "rememberTagName" method doesn't have to be public nor static, does it?
* I remember you also mentioned something about adding content assist (ctrl+clicking). Are you going to provide a patch for it as well? One thing we should be aware of here, is that mixing tags from history with other tags for a selected resource might be confusing.
Comment 4 Pawel Pogorzelski CLA 2008-07-28 04:31:19 EDT
Created attachment 108522 [details]
Patch

Tomasz, I agree with all your suggestions and I've changed the patch according to them. 

Regarding the last point I think we can leave the dialog without implementing the content assist. What do you think about it?
Comment 5 Tomasz Zarna CLA 2008-07-28 07:32:30 EDT
(In reply to comment #4)
> Regarding the last point I think we can leave the dialog without implementing
> the content assist. What do you think about it?

I'm fine with it. The drop down list you made should be enough... at least for now.

btw, I can see you reduced the history size from 20 to 10 items. I thought about the same thing, you're reading my mind :) This would be my last comment. I did some minor, cosmetic changes but other than that it looks good. Releasing...
Comment 6 Tomasz Zarna CLA 2008-07-28 07:39:31 EDT
Second patch applied to HEAD.