Eclipse中是否有用于将标签应用于文件的插件?

时间:2023-01-14 11:04:42

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 *.

我搜索过这样的插件但没找到任何插件。我需要一个工具来“标记”我的java文件。与*上的标记类似。

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.

我希望能够根据我正在处理的项目/任务对文件进行分组。 Mylyn帮助了一点,但它根据各种因素动态地改变了上下文(与任务相关的资源列表)。

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

我只想为我工作区中的所有文件建立一个基本的标记工具。

5 个解决方案

#2


0  

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

有一个名为Resource Tagger的插件可以满足您的需求。请报告您找到的工作。

#3


0  

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.

在eclipse中,您可以在标记接口(此实例中为Observer)上打开层次结构视图,并查看实现它的所有内容。

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.

在这两种情况下,您还可以编写反映代码库的代码来查找标记类。

#4


0  

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.

由于您已经在使用Mylyn,请尝试右键单击要“标记”的文件,然后选择“标记为地标”。然后,具有里程碑意义的文件将保留在您的上下文中。

#5


0  

A little bit late , but you can try to use eclipse workingset to group source files. Create as many working set as you need and add files to each of them; after that you juste have to use explorer select or deselect workingSet option to switch between group of files

有点晚了,但你可以尝试使用eclipse工作集来分组源文件。根据需要创建尽可能多的工作集,并为每个工作集添加文件;之后你必须使用explorer select或取消选择workingSet选项来切换文件组

HTH !

#1


#2


0  

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

有一个名为Resource Tagger的插件可以满足您的需求。请报告您找到的工作。

#3


0  

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.

在eclipse中,您可以在标记接口(此实例中为Observer)上打开层次结构视图,并查看实现它的所有内容。

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.

在这两种情况下,您还可以编写反映代码库的代码来查找标记类。

#4


0  

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.

由于您已经在使用Mylyn,请尝试右键单击要“标记”的文件,然后选择“标记为地标”。然后,具有里程碑意义的文件将保留在您的上下文中。

#5


0  

A little bit late , but you can try to use eclipse workingset to group source files. Create as many working set as you need and add files to each of them; after that you juste have to use explorer select or deselect workingSet option to switch between group of files

有点晚了,但你可以尝试使用eclipse工作集来分组源文件。根据需要创建尽可能多的工作集,并为每个工作集添加文件;之后你必须使用explorer select或取消选择workingSet选项来切换文件组

HTH !