Eclipse toolbar with multiple rows - eclipse

In my RCP app, I contribute several items to the main toolbar. The easy question now is: How do I make Eclipse lay them out so that they appear in a second row, just under the normal toolbar? Or can I add an additional toolbar that appears just under the main bar? Right now, they just appear somewhere between the other items contributed by other plugins. I tried a lot of stuff and searched a long time, couldn't find any answer though.

I'm afraid the main eclipse toolbar is beyond programatic control, it is entirely up to the user how he arranges the items. I've tried similar to arrange perspective buttons with no success.

Related

How to hide or dock result grid panel/toolbar in MySQL Workbench 6.3?

I am seeing the following panel in the result grid.
Based on the research I've done, for many people this panel is docked. However, in my application it's hidden then displayed upon hovering in that area. This has become very annoying because it's hard to use the scrollbar there.
I've looked all over in the preferences and toolbars but can't find a way to disable it.
Does anyone know how I can get rid of it altogether or make it static?
You probably activated the "hidden" mode. Klick on the small icon right beside the bar:

How do I expand Project Explorer to the bottom of my eclipse screen?

I recently had to delete all my projects in eclipse and re-import them, and it messed up the view organization I had (I had never realized I could save a view until now). I want to use the Team Synchronizing Perspective in Eclipse, but I want the Project Explorer section to go to the bottom of the screen.
for example, in the Java perspective,
The package explorer goes to the bottom of the screen. but on the Team Sync Perspective, that I want to stay on, I can't get the Project explorer view to go to the bottom of the screen (and I know one is the package and one is the project explorer, I tried adding package explorer to the sync perspective and it also doesn't show up how I want).
Team Sync Perspective:
Does anyone know how to do what I'm asking? I've googled plenty and can't find the answer. I'm assuming it's simple and I just can't find the steps...
See this animated gif to rearrange views in a perspective. Left click on view's title bar and drag and drop the view wherever you need it.
Refer this help guide

eclipse CDT: how to use scroll bar in mac OS

Now I use eclipse CDT but one thing really annoys me.
See this picture:
I cannot use the scroll bar. It only shows up when I move my fingers up and down on my trackpad, and disappears quickly. But scrolling up and down in this way is really inconvenient!!
Edit
Okay. I do not fully solve this problem, but now I find a way to relieve my pain. Window ->Editor ->Toggle split editor. Then, the editor panel is splitted into upper and lower parts, showing different parts of the same file. And in this case, I can drag the scroll bar up and down!

Can an eclipse view contribute to the application menu?

I'm creating a simple eclipse application which will contain only views. I've chosen to use only views so users can arrange and stack their views however they like (since editors and views cannot be stacked together). There also isn't any need for a traditional "editor" and I don't want the editor space always showing. But, enough about my decision to use only views.
I was wondering if there is a way for a view to contribute to the main menu for the application? For example, can switching views cause the main application menu to change?
You can use the org.eclipse.ui.menus extension point and set your command to only be visible when the view is active.

Horizontal scrolling with the scrollwheel in Eclipse

I've been trying to find a way to scroll the text horizontally with my scrollwheel in Eclipse, similar to the way you can do it in Textpad. In Textpad if you hold ctrl while you scroll vertically it will scroll horizontally. Does anybody know if there is a configurable setting somewhere in Eclipse that will allow this? I've looked all over the "keys" setting page without being able to find it, and Google/Stack Overflow searches haven't turned anything up for me.
Thanks.
I guess this depends more on your OS than on Eclipse. For instance on Mac OS it's Shift + Scrolling.
#Daniel Sokolowski's answer was almost working. I have been using X-Mouse Button Control for over a year now and didn't know how to get the Horizontal Scrolling to work on certain programs (like Eclipse and Chrome) until I read Sokolowski's answer which pointed me in the right direction.
For the sake of brevity, and not to duplicate what has already been written clearly by Sokolowski, follow his directions, and in addition do the following:
Add Eclipse to your Applications list in X-Mouse by clicking Add and finding javaw.exe in the "Choose Application" popup and clicking OK.
Now click on the "Eclipse" profile and choose the "Scrolling & Navigation" tab
Under the "Advanced Window Scrolling" choose Method 1(SCROLL Msg) option for Scroll Method
Click Apply
If you correctly followed Sokolowski's and my instructions together you should be able to press Shift while scrolling up or down to trigger a horizontal scroll.
On a Windows machine this worked for me:
Download X-Mouse Button Control
In the main window go to 'Layer 2' and change 'Wheel Up' and 'Wheel Down' to 'Scroll Windows Right' and 'Scroll Window Left'
Go into the 'Settings > Modifier Keys Tab' and select 'Shift' for the 'Activate Layer 2' setting.
Now in whatever active window, including Eclipse pressing shift and then scrolling up and down will scroll horizontally.
Update: I have been using this approach for a few days now and noticed that not all windows are horizontal scroll enabled, for example 'Package Explorer' is not but 'Navigator' is - this appears to be a limitation of Eclipse IDE rather than this approach. Please take a moment and upvote this Eclipse Bug #201984
You have a plugin supposed (not tested) to support horizontal scrolling.
But without plugin, SWT does not support horizontal scrolling on Windows.
Its support is planed for 3.6 though. (since 3.6M2, actually -- September 18, 2009)
New event constants have been added for horizontal mouse wheels.
See SWT.MouseHorizontalWheel and SWT.MouseVerticalWheel.
For me the best way while using eclipse or for that matter any IDE, is to have a new line char at the end of screen. I feel that to use horizontal scrolling to view data becomes bit difficult while going back and forth and I would like all code to be visible to me always. If the code you are trying to view requires you to use horizontal scroll bar then try to format it by using Ctrl+Shift+F.
The bug has been fixed in the latest update of Eclipse.
In your Eclipse menu bar, simply:
1. Click Help>Check for Updates.. (and wait for the progress bar at the bottom to finish checking)
2. Install all updates.
Once Eclipse IDE gets restarted, you are now able to scroll horizontally.
(Save yourself from having to install additional mouse softwares to create new configurations. Phew, I'm so glad I figured this one out for myself)
Cheers!