I'm working on an EclipsePluginProject. I don't have much(nearly nothing) experience with UIs under java. I added a View Option Menu and some actions following this post.
IMenuManager dropDownMenu = getViewSite().getActionBars().getMenuManager();
dropDownMenu.add(new Action("Action1") {
@Override
public void run() {
//do something
}});
dropDownMenu.add(new Action("Action2") {
@Override
public void run() {
//do something
}});
This works great and gives me the following menu:
-Action1
-Action2
How do i build a submenu which looks like this?
-Action > -1
-2