将搜索栏构建到Eclipse View插件中 [英] Building a searchbar into an Eclipse View Plugin

查看:290
本文介绍了将搜索栏构建到Eclipse View插件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些关于如何在现有视图eclipse插件之上构建搜索栏的想法/资源。我想要类似于eclipse中任务列表视图的内容:

I'm looking for some ideas/resources on how to approach building a search bar on top of an existing view eclipse plugin. I want something similar to what the Task List view in eclipse has:

http://help.targetprocess.com/images/integration_api/eclipse3.png?1337868355

视图我想建立这个只是一个简单的对象列表,基本上就像Eclipse的简单视图教程PDE提供的。没什么复杂的

The view I want to build this on is just a simple list of objects, basically exactly like the simple view tutorials eclipse PDE provides. Nothing complicated.

我已经搜索过,似乎没有太多的信息。如果有人可以给我一些关于如何开始的指导,那将是巨大的。

I've searched around and there doesn't seem to be much information on this. If anyone could give me some guidance on how to start, that would be great.

感谢任何帮助!

推荐答案

SWT文本组件,样式为 SEARCH 。有一个 SWT片段显示适用的风格组合。这给你输入字段的图标和一些消息,但你仍然必须在列表上实现必要的过滤。

You want to create an SWT Text component with style SEARCH. There is an SWT snippet showing the applicable style combinations. That gives you the input field with the icon and some message, but you still have to implement the necessary filtering on the list yourself.

这篇关于将搜索栏构建到Eclipse View插件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆