regarding sub menu in a pop up menu in a View [message #296037] |
Wed, 14 December 2005 03:46 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03323 seconds