Remove "Quick Access" entry in Eclipse Juno

EclipseEclipse Cdt

Eclipse Problem Overview


How do I remove the "Quick Access" text entry from Juno's CDT toolbar? I never use it and it consumes valuable space on my laptop screen.

Eclipse Solutions


Solution 1 - Eclipse

This bug Make "Quick access" optional and hidden by default covers it. It looks like it is not currently possible, I suggest you add your interest to the bug.

Solution 2 - Eclipse

I looked for an answer to this question because Quick Access took a full row in the toolbar. Instead of removing it (Which requires too much hacking for my taste), I just removed a few toolbar buttons that I didn't use anyway, and the Quick Access shifted up among the rest of the buttons taking only an acceptable amount of space.

There is really no need for that many buttons for any one perspective. They should fit unless your screen is tiny. Customise this in Window -> Customize Prespective...

Solution 3 - Eclipse

Here is a quick hack which doesn't require any plugin installation, instead you just need to add a few lines to your current layout's CSS file. Works perfectly for me in v4.2.2

Navigate to <ECLIPSE_HOME>/plugins/org.eclipse.platform_<VERSION>/css then open up the CSS file of whichever layout you are using, e.g. mine was e4_default.css. Now append the following snippet to the file:

#SearchField {
   visibility:hidden;
}

Now just restart Eclipse and the box is gone.

*Edit

It appears that the layout file e4_basestyle.css is used universally, regardless of your current layout. Thus you should be able to add the above snippet to that file and this fix will be persistent, even if you change layouts.

Solution 4 - Eclipse

In Luna this has been fixed.

You can just right click on Quick Access toolbar and click hide to hide it. Refer last few comments in https://bugs.eclipse.org/bugs/show_bug.cgi?id=362420

Solution 5 - Eclipse

A solution inspired from : https://bugs.eclipse.org/bugs/show_bug.cgi?id=319991

(With eclipse Juno 4.2) Just add this piece of code to your ApplicationWorkbenchWindowAdvisor class and call the method from preWindowOpen().

private void hideQuickAccess() { 
		UIJob job = new UIJob("hide quick access") {
			@Override
			public IStatus runInUIThread(IProgressMonitor monitor) {
				IWorkbenchWindow window = PlatformUI.getWorkbench()
						.getActiveWorkbenchWindow();
				if (window instanceof WorkbenchWindow) {
					MTrimBar topTrim = ((WorkbenchWindow) window).getTopTrim();
				for (MTrimElement element : topTrim.getChildren()) {
					if ("SearchField".equals(element.getElementId())) {						
						((Control) element.getWidget()).dispose();
						break;
					}
				}
			}
			return Status.OK_STATUS;
		}
	};
	job.schedule();

It might not work unless changing the accessibility rule of the org.eclipse.e4.ui.model.workbench.source_0.10.1.v20120523-1955.jar. To change this option, go to the Java build Path menu, find the jar, expand it and the option will appear.

NB: I'm not sure about the entailment of this last change, it could be 'not clean'.

Solution 6 - Eclipse

Check out this plugin: https://github.com/atlanto/eclipse-4.x-filler#hide-quick-access-plug-in

Works with Eclipse Kepler release.

> This plug-in adds a functionality to hide/show Quick Access textbox in the main toolbar. > > Window ☞ Hide Quick Access

Solution 7 - Eclipse

Solution for Version: Oxygen Release (4.7.0):

  1. Save the icons you are constantly using by dragging them off the "Toolbar" e.g. left/right/under to the Editor.
  2. Then toggle: Window > Appearance > Hide/Show Toolbar Done. :)

Solution 8 - Eclipse

Type "toggle toolbar" in the quick access window (yes, that very thing that annoys us) and it'll be gone. C.f.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkykuView Question on Stackoverflow
Solution 1 - EclipsekatsharpView Answer on Stackoverflow
Solution 2 - EclipsePerView Answer on Stackoverflow
Solution 3 - EclipsearkonView Answer on Stackoverflow
Solution 4 - EclipsesagView Answer on Stackoverflow
Solution 5 - EclipseAurelienView Answer on Stackoverflow
Solution 6 - EclipseborisdiakurView Answer on Stackoverflow
Solution 7 - Eclipsemuka90View Answer on Stackoverflow
Solution 8 - EclipseAlexView Answer on Stackoverflow