Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » regarding sub menu in a pop up menu in a View
regarding sub menu in a pop up menu in a View [message #296037] Wed, 14 December 2005 03:46
Eclipse UserFriend
Hi,

I have created a view which has a Tree...Now I am creating a Menu(using
the Menu menu=new Menu(Composite parent)) and i then populate it with a
few MenuItems...Then I create another Menu called as "SubMenu" with few
more menu Items and add it to one of the menu Items in the first menu, but
it throws the following error

java.lang.IllegalArgumentException: Menu must be a drop down
at org.eclipse.swt.SWT.error(SWT.java:2926)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.SWT.error(SWT.java:2836)
at org.eclipse.swt.widgets.Widget.error(Widget.java:395)
at org.eclipse.swt.widgets.MenuItem.setMenu(MenuItem.java:724)
at
com.vijai.matrix.plugin.ui.Views.IEObjectView.createMenu(IEO bjectView.java:119)
at
com.vijai.matrix.plugin.ui.Views.IEObjectView.createPartCont rol(IEObjectView.java:93)

Is there any other better way to achieve this??

Thanks

Vijai
Previous Topic:errors when extending org.eclipse.ui.newWizards
Next Topic:Calling the compare source action
Goto Forum:
  


Current Time: Mon Jun 02 23:16:44 EDT 2025

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

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

Back to the top