VE Menus [message #107445] |
Tue, 20 September 2005 06:13  |
Eclipse User |
|
|
|
I'm trying out the new SWT menus added in the latest release, and I can
add a MenuBar to a new Shell (though it doesn't actually appear on the
shell visually, but does appear under the Shell in the Java Beans view).
When I then try and add any kind of menu item to this I am not able to put
it anywhere, ie I get the circle with a line through.
I must be doing something silly, can anyone help?
I do have the prerequisite software loaded ok, and otherwise the VE works
fine.
Dave.
|
|
|
|
|
|
|
|
|
|
Re: VE Menus [message #107690 is a reply to message #107631] |
Wed, 21 September 2005 07:45  |
Eclipse User |
|
|
|
There must be something funny going on with my workspace, even though I
reinstalled all the software, I was still using my original workspace.
I have now tried a new dir for all the software, and a completely new
workspace and it works ok.
I would really like to keep the old workspace if possible.
Any ideas?
Dave.
|
|
|
Re: VE Menus [message #610822 is a reply to message #107445] |
Tue, 20 September 2005 09:27  |
Eclipse User |
|
|
|
Dave Hewitson wrote:
> I'm trying out the new SWT menus added in the latest release, and I can
> add a MenuBar to a new Shell (though it doesn't actually appear on the
> shell visually, but does appear under the Shell in the Java Beans view).
>
> When I then try and add any kind of menu item to this I am not able to
> put it anywhere, ie I get the circle with a line through.
>
> I must be doing something silly, can anyone help?
>
> I do have the prerequisite software loaded ok, and otherwise the VE
> works fine.
>
> Dave.
>
When you drop a MenuBar it's (empty default) size is 0 - so there is "no" space to drop it on the canvas.
You have to drop the Item on the MenuBar on JavaBeans view.
|
|
|
Re: VE Menus [message #610823 is a reply to message #107495] |
Tue, 20 September 2005 09:48  |
Eclipse User |
|
|
|
Originally posted by: davidyoung_2001.yahoo.co.uk
Eclipse IDE Menu ->Project->Clean
you can then drop Menu Items on the Java Bean view
|
|
|
Re: VE Menus [message #610829 is a reply to message #107495] |
Tue, 20 September 2005 10:55  |
Eclipse User |
|
|
|
I seem to be able to drop it on either, I get the appropriate icon and it
does seem to get added ok.
It's the next step of adding the menuitems that I can't figure out,
wherever I try and put them I only see the disallowed icon.
|
|
|
Re: VE Menus [message #610831 is a reply to message #107510] |
Tue, 20 September 2005 10:58  |
Eclipse User |
|
|
|
Tried that but it doesn't fix it for me.
I'm not sure why cleaning would fix this, my problem exists even if I
create a brand new SWT shell visual class.
Should I be able to add the menubar, then just start dropping menuitems
onto the menubar.
I have tried on both work and home Eclipse installations, and I get
exactly the same problem.
Have you got this working then ?
|
|
|
Re: VE Menus [message #610832 is a reply to message #107592] |
Tue, 20 September 2005 11:07  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Are you dropping them on the menubar on the Java Beans Viewer? That is
the only place menu items can be dropped.
Are you selecting the menu items from the palette? That is the only ones
that currently can be dropped.
Dave wrote:
> I seem to be able to drop it on either, I get the appropriate icon and
> it does seem to get added ok.
>
> It's the next step of adding the menuitems that I can't figure out,
> wherever I try and put them I only see the disallowed icon.
>
--
Thanks,
Rich Kulp
|
|
|
Re: VE Menus [message #610835 is a reply to message #107631] |
Wed, 21 September 2005 02:44  |
Eclipse User |
|
|
|
Yes, I'm doing that, but I have just noticed that when I create a brand
new shell class and add a menubar, I get this error in the error log...
Failed to execute runnable (java.lang.ClassCastException:
org.eclipse.emf.ecore.impl.EClassImpl)
...and this is the trace...
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EClassImpl)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.ve.internal.java.core.NameInMemberPropertyDescri ptor.getUniqueNamesInComposition(NameInMemberPropertyDescrip tor.java:260)
at
org.eclipse.ve.internal.cde.properties.AddAnnotationsWithNam e.getAdditionalCommands(AddAnnotationsWithName.java:69)
at
org.eclipse.ve.internal.cde.commands.AddAnnotationsCommand.e xecute(AddAnnotationsCommand.java:68)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.appendAndExecute(CompoundCommand.java:414)
at
org.eclipse.ve.internal.cde.commands.CommandBuilder.internal Append(CommandBuilder.java:314)
at
org.eclipse.ve.internal.cde.commands.CommandBuilder.append(C ommandBuilder.java:98)
at
org.eclipse.ve.internal.java.vce.rules.VCEPreSetCommand.hand leAnnotation(VCEPreSetCommand.java:410)
at
org.eclipse.ve.internal.java.vce.rules.VCEPreSetCommand.hand leValue(VCEPreSetCommand.java:381)
at
org.eclipse.ve.internal.java.vce.rules.VCEPreSetCommand.exec ute(VCEPreSetCommand.java:121)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:217)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:217)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack$1.run(JavaVisualEditorCommandStack.java:52)
at
org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:166)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:4 9)
at
org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTo ol.java:388)
at
org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(Abs tractTool.java:400)
at
org.eclipse.gef.tools.CreationTool.performCreation(CreationT ool.java:253)
at
org.eclipse.gef.tools.CreationTool.handleButtonUp(CreationTo ol.java:178)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java :1053)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:259)
at
org.eclipse.gef.ui.parts.TreeViewer$EventDispatcher.mouseUp( TreeViewer.java:88)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:137)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.ClassCastException:
org.eclipse.emf.ecore.impl.EClassImpl
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.getBeanPr opertyValue(BeanProxyAdapter.java:1424)
at
org.eclipse.ve.internal.java.core.BeanPropertySourceAdapter. getPropertyValue(BeanPropertySourceAdapter.java:94)
at
org.eclipse.ve.internal.swt.WidgetPropertySourceAdapter.getP ropertyValue(WidgetPropertySourceAdapter.java:365)
at
org.eclipse.ve.internal.propertysheet.command.CommandStackPr opertySheetEntry.primGetValues(CommandStackPropertySheetEntr y.java:173)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshValues(AbstractPropertySheetEntry.java:892)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:823 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1028)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:875)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:392)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:250)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:243)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:236)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
... 46 more
...and this is the session data...
eclipse.buildId=I20050627-1435
java.version=1.5.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Framework arguments: -showlocation
Command-line arguments: -os win32 -ws win32 -arch x86 -data
C:\eclipse_ve_workspace -showlocation
This is a continuation of log file
C:\eclipse_ve_workspace\.metadata\.bak_0.log
Created Time: 2005-09-19 15:40:54.625
|
|
|
Re: VE Menus [message #610836 is a reply to message #107631] |
Wed, 21 September 2005 07:17  |
Eclipse User |
|
|
|
In fact, I get an error when I just try and create a new shell class, and
I have tried reinstalling Eclipse, and adding VE 1.1.0.1, EMF 2.1.0 and
GEF 3.1 but the problem persists. I also tried starting Eclipse with the
-clean option.
Other things in the VE have stopped working now, do I need to install
anything else ?
This is the trace...
java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSetting Delegate(EStructuralFeatureImpl.java:790)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate (BasicEObjectImpl.java:822)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicIsSet(Ba sicEObjectImpl.java:609)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:600)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:951)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2272)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:889)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2001)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1221)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2272)
at
org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:78)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:478)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:206)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:193)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:893)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:813)
at
org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1358)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$2.doRun(JavaSourceTranslator.java:923)
at
org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
|
|
|
Re: VE Menus [message #610837 is a reply to message #107631] |
Wed, 21 September 2005 07:45  |
Eclipse User |
|
|
|
There must be something funny going on with my workspace, even though I
reinstalled all the software, I was still using my original workspace.
I have now tried a new dir for all the software, and a completely new
workspace and it works ok.
I would really like to keep the old workspace if possible.
Any ideas?
Dave.
|
|
|
Powered by
FUDForum. Page generated in 0.07678 seconds