Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Eclipse RCP 应用程序中,我有一个文本文件来从用户那里获取一些值。eclipse RCP 或 java 中是否有任何方法可以在输入新值时列出旧条目 [Like content assistant]?请给我建议。
你可以用org.eclipse.jface.fieldassist.AutoCompleteField这个。对于文本字段,它可能如下所示:
org.eclipse.jface.fieldassist.AutoCompleteField
new AutoCompleteField(text, new TextContentAdapter(), new String [] {"proposal 1", ...});