How can I disable the Java editor breadcrumb in Eclipse?
If you are referring to the breadcrumbs in the help file of a RCP application, there is only a manual way to do it.
Since Ganymede 3.4M5:
Michael Borgwardt mentions the toolbar icon
Slava Semushin provides a native shortcut based on Ctrl+3+bread, which points directly to the Toggle Java Editor Breadcrumb option.
Shachi reminds us below that you can right-click on any icon on the breadcrumb, and select the entry named "Hide Breadcrumb".
Original answer (manual way, through key mapping)
Find the file org.eclipse.help.webapp\advanced\breadcrumbs.css and replace its contents with.
.help_breadcrumbs {
display: none;
}
For the Java Editor breadcrumb, you need to assign a shortcut to the "Toggle Java Editor Breadcrumb" command (I have tested Alt+B, for instance)
That shortcut will make the breadcrumb bar appear/disappear at will.
With the editor window focussed, look for this icon in your toolbar:
And click on it. That's all. The icon is present by default, but can be deactivated, in which case you have to activated as in MvanGeest's answer.
Another way which works for me at Eclipse Indigo (3.7): press Ctrl+3 and type bread, after that click on item Toggle Java Editor Breadcrumb.
RightClick on any icon on breadcrumb.
There is an option named HIDE BREADCRUMB.
Click it and you are done. :D
Look for this icon in the toolbar:
This button toggles the Breadcrumb view on/off.
(I'm using Eclipse 3.7, and it's there by default)
Here it is :
In the toolbar, toggle bread crumb option.
Something like http://loadcontext.blogspot.com/2008/08/eclipse-34-breadcrumbs-hide-and-show.html?
Customize Perspective, choose the
Commands tab. In the Available command
group, choose Java Editor
Presentation. The Toolbar details
shows the button for Toggle
Breadcrumbs, which looks like a folder
with a C in a circle with a black
triangle on top of it.
Despite my absolute lack of experience with Eclipse, I suppose this setting must appear in other Presentation items too. After the button's enabled, all you have to do is click it. Or not?
Change property breadcrumb.org.eclipse.jdt.ui.JavaPerspective from true to false
in your org.eclipse.jdt.ui.prefs file.
In Juno: type 'Bread' and select 'Toggle Java Editor Breadcrumb'
It very simple just right click in your class editor then select bread crumb or directly right click in top of your class in tool bar then select hide breadcrumb then its done.
When you see the BreadCrumb toolbar, right-click on the green class icon and then from the menu options click on Hide Breadcrumb.
I am working on a tool (which is built over Eclipse). In that there is a popup menu called "Edit Properties" if a object is right clicked. I need to hide this menu command. Provided that it should not be gets hided from the standard menu, should only be hide from the popup.
How to do this? Can anyone suggest me?
I know you can add new buttons to the eclipse toolbar by writing a custom plugin but just how would i go about adding a simple "open file" button like most editors have?
I guess I can use this as a template to do what i want, but what's the commandId for the "open file dialog":
How to add undo / redo buttons to toolbar in Eclipse?
thank you!
If you want to have a toolbar button which mimics the behaviour of the menu File->Open File..., then you are searching for the command id
org.eclipse.ui.edit.text.openLocalFile
which you would want to use instead of the command ids for the undo/redo in your example.
I don't believe there is a specific commandId for open file dialog that you can use in the toolbar or menu. You would have to create a class that implements the IHandler interface and use something like the JFileChooser to handle the selection of the file.
I accidentally removed the "Create new Class" button in eclipse. How would I get it back onto the top toolbar? I've looked through all the menus and I cant find an option to do it.
Thanks
Just right-click on your perspective (top right corner default) and choose Customize.
There you can select and deselect toolbar icons.
Java Element Creation -> New Java Project/Package/Class
hf
In eclipse 4.4, choose Window->Customize perspective. First tab (Tool Bar Visibility) allows to customize toolbar buttons.
In a Eclipse RCP application, is there any way I can have text field (for search) on menu bar?
For example I have menu:
File Edit ... Search: |___text field___|
The text field is located at the right end of the menu bar.
I don't think that is easily possible. But you could use the CoolBar to create this functionality.
You can place an SWT control on the toolbar, but it doesn't work for menus. Here is the toolbar way:
Open the extensions tab in plugin.xml file
Add a menuContribution extension to org.eclipse.ui.menus and set it as a toolbar (toolbar:ID)
Add a toolbar to this menuContribution
Add a control to this toolbar
Double click and create the class which extends WorkbenchWindowControlContribution and fill the createControl(...) function using the desired SWT controls.
After setting the menuContribution as a menu, it is still possible to add a control, but unfortunately, it does not show any controls.