Include QuickAccess text field [message #1823184] |
Sat, 21 March 2020 14:03 |
MIchael Altenhuber Messages: 1 Registered: March 2020 |
Junior Member |
|
|
Greetings,
I hope I have hit the right board.
I have an Eclipse RCP application (RCP version 4.12.0.v20190605-1801) with plug-ins. I want to use the QuickAccess bar as a search bar like in the Eclipse IDE.
(I can't post images but I guess you are familar with the QuickAccess text field in the top right corner)
I have found, that you can call org.eclipse.ui.actions.ActionFactory.SHOW_QUICK_ACCESS.create(window)
So far I have produced this:
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
// ToolBar File & Additions
IToolBarManager fileToolBar = new ToolBarManager(coolBar.getStyle());
fileToolBar.add(ActionFactory.SHOW_QUICK_ACCESS.create(window)); // window is a property of the class
}
However this only produces a QuickAccess button for me and not a QuickAccess text field, like in the IDE
If you click on it it opens the QuickAccess search. That works but I don't think users know what the button does until they click it.
I would much rather have the text field.
I only found threads which wanted to exclude it, so I guess it must be a somewhat default feature.
I scoured the API documentation for a while, but could not find anything. Do I have to code the text field myself?
If anyone's interested or if it may help, it's for the JCrypTool project.
Repository is on GitHub jcryptool/core (I am not allowed to post links)
The specific file where my toolbar is created can be found under
org.jcryptool.core/src/org/jcryptoo/core/ApplicationActionBarAdvisor.java
Thanks for your help!
|
|
|
Powered by
FUDForum. Page generated in 0.03003 seconds