Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Extending The Visual Editor:= BUG in text proerty
Extending The Visual Editor:= BUG in text proerty [message #101740] Wed, 10 August 2005 08:12 Go to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Hi, there is a bug in tutorial
"Extending The Visual Editor: Enabling support for a custom widget"
when I want to create editing behaviour of the text property there is
NullPointerException somewhere in EMF, because it doesn't find
somewhat(DELEGATE) of EMF EReference of the text property. Because of that
it will not show properties view.

HERE IS STACKTRACE OF EXCEPTION:
Thread [main] (Suspended (exception NullPointerException))
EReferenceImpl(EStructuralFeatureImpl).getSettingDelegate() line: 790
JavaObjectInstance(BasicEObjectImpl).eSettingDelegate(EStruc turalFeature)
line: 822
JavaObjectInstance(BasicEObjectImpl).eDynamicIsSet(EStructur alFeature)
line: 609
JavaObjectInstance(BasicEObjectImpl).eIsSet(EStructuralFeatu re) line: 600
CompositePropertySourceAdapter(BeanPropertySourceAdapter).ge tPropertyValue(Object)
line: 89
CompositePropertySourceAdapter(WidgetPropertySourceAdapter). getPropertyValue(Object)
line: 365
JavaCommandStackPropertySheetEntry(CommandStackPropertySheet Entry).primGetValues()
line: 173
JavaCommandStackPropertySheetEntry(AbstractPropertySheetEntr y).refreshValues()
line: 892
JavaCommandStackPropertySheetEntry(AbstractPropertySheetEntr y).refreshChildEntries()
line: 823
JavaCommandStackPropertySheetEntry(AbstractPropertySheetEntr y).setValues(Object[])
line: 1028
PropertySheetViewer.setInput(Object) line: 875
JavaVisualEditorPropertySheetPage(PropertySheetPage).selecti onChanged(IWorkbenchPart,
ISelection) line: 392
JavaVisualEditorPropertySheetPage(EToolsPropertySheetPage).s uperSelectionChanged(IWorkbenchPart,
ISelection) line: 250
EToolsPropertySheetPage.access$2(EToolsPropertySheetPage, IWorkbenchPart,
ISelection) line: 243
EToolsPropertySheetPage$1.run() line: 236
RunnableLock.run() line: 35
UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 123
Display.runAsyncMessages(boolean) line: 3057
Display.readAndDispatch() line: 2716
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 1699
Workbench.runUI() line: 1663
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 367
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 143
IDEApplication.run(Object) line: 103
PlatformActivator$1.run(Object) line: 226
EclipseStarter.run(Object) line: 376
EclipseStarter.run(String[], Runnable) line: 163
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 585
Main.invokeFramework(String[], URL[]) line: 334
Main.basicRun(String[]) line: 278
Main.run(String[]) line: 973
Main.main(String[]) line: 948
Re: Extending The Visual Editor:= BUG in text proerty [message #101880 is a reply to message #101740] Wed, 10 August 2005 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ahanys.email.cz

This bug is the same as "VE properties tab is empty".

But I have all new VE 1.1, EMF 2.1.0 GEF 3.1 and ECLIPSE 3.1, java 1.5
this bug is here STILL.

WHAT IS WRONG - can you help me?
John Cage
Thank you in advance
Re: Extending The Visual Editor:= BUG in text proerty [message #101892 is a reply to message #101880] Wed, 10 August 2005 16:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Do you have any errors in the .log file in your workspace's .metadata
directory?
- Jeff

John Cage wrote:
> This bug is the same as "VE properties tab is empty".
>
> But I have all new VE 1.1, EMF 2.1.0 GEF 3.1 and ECLIPSE 3.1, java 1.5
> this bug is here STILL.
>
> WHAT IS WRONG - can you help me?
> John Cage
> Thank you in advance
>
Re: Extending The Visual Editor:= BUG in text proerty [message #101960 is a reply to message #101892] Thu, 11 August 2005 08:25 Go to previous messageGo to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Here is my current .log file capturing that error's stacktrace.
Now I am using JAVA 1.4.2 but result (stacktrace and behaviour) is the same
like with java 1.5.0.

Scenario is that when I click on the MyCustomPrompter(from tutorial) than
an exception below is thrown and the eclipse's properties view will be
empty.


!SESSION 2005-08-11 10:19:19.229
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.sdk.ide -pdelaunch
Command-line arguments: -product org.eclipse.sdk.ide -data
C:\ecl31ve\runtime-EclipseApplication -dev
file:C:/ecl31ve/workspace/.metadata/.plugins/org.eclipse.pde .core/Eclipse
Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2005-08-11 10:20:01.754
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-08-11 10:20:01.754
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
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.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:324)
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.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.ve.internal.java.core.BeanPropertySourceAdapter. getPropertyValue(BeanPropertySourceAdapter.java:89)
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)
... 18 more
Re: Extending The Visual Editor:= BUG in text proerty [message #102010 is a reply to message #101960] Thu, 11 August 2005 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try this first:

1) Open the VE, get the error, close the VE, but leave Eclipse running
2) Do Project->Clean...->Clean ALL (all is very important).
3) Try the VE again. If you still get the error, please send us the
class in question so we can see if there is anything in there that could
cause this.

--
Thanks,
Rich Kulp
Re: Extending The Visual Editor:= BUG in text proerty [message #102018 is a reply to message #102010] Thu, 11 August 2005 14:49 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Thank you, when I cleaned up All Projects - it is now RUNNING
Thank you for your help so much, you made me very happy :)
John Cage


> Try this first:
>
> 1) Open the VE, get the error, close the VE, but leave Eclipse running
> 2) Do Project->Clean...->Clean ALL (all is very important).
> 3) Try the VE again. If you still get the error, please send us the class
> in question so we can see if there is anything in there that could cause
> this.
>
> --
> Thanks,
> Rich Kulp
Re: Extending The Visual Editor:= BUG in text proerty [message #610229 is a reply to message #101740] Wed, 10 August 2005 15:28 Go to previous message
Eclipse UserFriend
Originally posted by: ahanys.email.cz

This bug is the same as "VE properties tab is empty".

But I have all new VE 1.1, EMF 2.1.0 GEF 3.1 and ECLIPSE 3.1, java 1.5
this bug is here STILL.

WHAT IS WRONG - can you help me?
John Cage
Thank you in advance
Re: Extending The Visual Editor:= BUG in text proerty [message #610231 is a reply to message #101880] Wed, 10 August 2005 16:55 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Do you have any errors in the .log file in your workspace's .metadata
directory?
- Jeff

John Cage wrote:
> This bug is the same as "VE properties tab is empty".
>
> But I have all new VE 1.1, EMF 2.1.0 GEF 3.1 and ECLIPSE 3.1, java 1.5
> this bug is here STILL.
>
> WHAT IS WRONG - can you help me?
> John Cage
> Thank you in advance
>
Re: Extending The Visual Editor:= BUG in text proerty [message #610241 is a reply to message #101892] Thu, 11 August 2005 08:25 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Here is my current .log file capturing that error's stacktrace.
Now I am using JAVA 1.4.2 but result (stacktrace and behaviour) is the same
like with java 1.5.0.

Scenario is that when I click on the MyCustomPrompter(from tutorial) than
an exception below is thrown and the eclipse's properties view will be
empty.


!SESSION 2005-08-11 10:19:19.229
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.sdk.ide -pdelaunch
Command-line arguments: -product org.eclipse.sdk.ide -data
C:\ecl31ve\runtime-EclipseApplication -dev
file:C:/ecl31ve/workspace/.metadata/.plugins/org.eclipse.pde .core/Eclipse
Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2005-08-11 10:20:01.754
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-08-11 10:20:01.754
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
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.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:324)
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.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.ve.internal.java.core.BeanPropertySourceAdapter. getPropertyValue(BeanPropertySourceAdapter.java:89)
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)
... 18 more
Re: Extending The Visual Editor:= BUG in text proerty [message #610248 is a reply to message #101960] Thu, 11 August 2005 14:35 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try this first:

1) Open the VE, get the error, close the VE, but leave Eclipse running
2) Do Project->Clean...->Clean ALL (all is very important).
3) Try the VE again. If you still get the error, please send us the
class in question so we can see if there is anything in there that could
cause this.

--
Thanks,
Rich Kulp
Re: Extending The Visual Editor:= BUG in text proerty [message #610250 is a reply to message #102010] Thu, 11 August 2005 14:49 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Thank you, when I cleaned up All Projects - it is now RUNNING
Thank you for your help so much, you made me very happy :)
John Cage


> Try this first:
>
> 1) Open the VE, get the error, close the VE, but leave Eclipse running
> 2) Do Project->Clean...->Clean ALL (all is very important).
> 3) Try the VE again. If you still get the error, please send us the class
> in question so we can see if there is anything in there that could cause
> this.
>
> --
> Thanks,
> Rich Kulp
Previous Topic:Table
Next Topic:VE for C#
Goto Forum:
  


Current Time: Thu Apr 18 22:39:25 GMT 2024

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

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

Back to the top