Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Include QuickAccess text field(How to add the QuickAccess text field to your Eclipse RCP project)
Include QuickAccess text field [message #1823184] Sat, 21 March 2020 14:03
MIchael Altenhuber is currently offline MIchael AltenhuberFriend
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!
Previous Topic:Redundant Null Check and Dead Code
Next Topic:Base Javadoc accessible only through browser
Goto Forum:
  


Current Time: Thu Apr 25 09:11:07 GMT 2024

Powered by FUDForum. Page generated in 0.03003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top