Friday, March 4, 2011

Is there a plugin in Eclipse for applying tags to files ?

I have searched for such a plugin but haven't found any. I need a facility to "tag" my java files. Similar to tagging on stackoverflow.

I want to be able to group my files based on projects/tasks I wam working on. Mylyn helps a little but it dynamically changes the context (list of resources associated with a task) based on various factors.

I just want a basic tagging facility for all the files in my workspace.

From stackoverflow
  • http://taggerplugin.sourceforge.net/

  • There is a plugin called Resource Tagger which may do what you are looking for. Report back on what you find works please.

  • I would recommend tagging them with tag interfaces -- these will persist across checkins and different workspaces.

    Something like

    public interface Observer {}  // no required methods
    

    and then when you want to tag a class as an observer, you do

    public class SomeClass implements Observer {...}
    

    In eclipse, you can then open a hierarchy view on the tag interface (Observer in this instance) and see everything that implements it.

    You could also use annotations for tagging as well.

    In both cases, you could also write code that reflects your code base to find tagged classes.

  • Since you're already using Mylyn, try right-clicking on the file you want to "tag" and select "mark as landmark". The landmarked file will then stay put in your context.

0 comments:

Post a Comment