|
Re: Initialise an object inside of VE [message #88060 is a reply to message #88002] |
Thu, 21 April 2005 13:56 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
How do all of the components get access to this "properties" object. Is
it a static variable some place, is it passed in to each component?
--
Thanks,
Rich Kulp
|
|
|
|
|
|
Re: Initialise an object inside of VE [message #88136 is a reply to message #88122] |
Thu, 21 April 2005 16:28 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Then can't they be initialized automatically only once, the first time
they are accessed (through static initializers). If you only want it
default initialized when running in the ve you can do:
static {
if (java.beans.Beans.isDesignTime()) {
... initialize defaults because we are in VE ...
}
}
--
Thanks,
Rich Kulp
|
|
|
Re: Initialise an object inside of VE [message #88218 is a reply to message #88136] |
Fri, 22 April 2005 13:43 |
Elena Demeter Messages: 152 Registered: July 2009 |
Senior Member |
|
|
Hello,
thank you for suggestion. Do you mean I have to insert this code in the
code of every visual component ?
At the moment I am trying another possibility:
I have my own component "panel", in its code a method for initializing of
the "properties" object will be called. If I place other components on
this "panel" I get sometimes the giant exception below. But in whole it
works.
And if I call the method getString() I get the correct string. It is not
the best solution and it works only in part.
Do you know what I can do to not get the exception? I would be glad to get
any hint.
May be I did not understand your solution quite :-)
Thanks
Elena
------------------------------------------------------------ ---------------
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.300
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.320
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.320
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.LEFT" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$4 (PropertySheetViewer.java:1117)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.valueC hanged(PropertySheetViewer.java:309)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireValueChanged(AbstractPropertySheetEntry.java:399)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1016)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshValues(AbstractPropertySheetEntry.java:877)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:808 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.550
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.550
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.560
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.LEFT" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.createIt em(PropertySheetViewer.java:346)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateCh ildrenOf(PropertySheetViewer.java:1078)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$2 (PropertySheetViewer.java:999)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.childE ntriesChanged(PropertySheetViewer.java:298)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireChildEntriesChanged(AbstractPropertySheetEntry.java :373)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:831 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.600
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.610
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.TOP
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.610
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.TOP" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.createIt em(PropertySheetViewer.java:346)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateCh ildrenOf(PropertySheetViewer.java:1078)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$2 (PropertySheetViewer.java:999)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.childE ntriesChanged(PropertySheetViewer.java:298)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireChildEntriesChanged(AbstractPropertySheetEntry.java :373)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:831 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
|
|
|
Re: Initialise an object inside of VE [message #88261 is a reply to message #88218] |
Fri, 22 April 2005 14:11 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
No, I meant you have the properties somewhere as a static variable. I
presume you do not have it duplicated all over the place. I presume that
all of the components are referencing the same static variable. In the
class where that one instance of the static variable is defined you
would put the static initializer.
As for the evaluation error, you need to fully-qualify the initstring
portion of the BeanInfo for your enumeration. BeanInfo requires all
initialization strings to be fully-qualified. That is because it is a
simple string and will be used in various different classes, so we can't
figure out the package just from the string if the package is not included.
--
Thanks,
Rich Kulp
|
|
|
|
|
|
|
Re: Initialise an object inside of VE [message #88495 is a reply to message #88404] |
Mon, 25 April 2005 14:00 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
I'm sorry, please refresh my memory. We were discussing several problems
in this thread. What exception are you getting when you do this?
Elena wrote:
> Hello,
>
> I installed Eclipse 3.0.2 and VE 1.0.2.
>
>
> But I still get the same exception if I do the following scenario:
>
> 1-open some VE class,
> 2-drop a JPanel from the palette,
> 3-drop the JLabel from the palette on the JPanel.
>
>
>
> Thanks
> Elena
>
--
Thanks,
Rich Kulp
|
|
|
|
Re: Initialise an object inside of VE [message #88583 is a reply to message #88554] |
Mon, 25 April 2005 15:13 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Could you please append one of the simpler java classes that you are
trying to create that gets this problem? We don't see it on our end.
Maybe there is something slightly different about your class that we can
see.
--
Thanks,
Rich Kulp
|
|
|
Re: Initialise an object inside of VE [message #607207 is a reply to message #88002] |
Thu, 21 April 2005 13:56 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
How do all of the components get access to this "properties" object. Is
it a static variable some place, is it passed in to each component?
--
Thanks,
Rich Kulp
|
|
|
|
|
|
Re: Initialise an object inside of VE [message #607212 is a reply to message #88122] |
Thu, 21 April 2005 16:28 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Then can't they be initialized automatically only once, the first time
they are accessed (through static initializers). If you only want it
default initialized when running in the ve you can do:
static {
if (java.beans.Beans.isDesignTime()) {
... initialize defaults because we are in VE ...
}
}
--
Thanks,
Rich Kulp
|
|
|
Re: Initialise an object inside of VE [message #607217 is a reply to message #88136] |
Fri, 22 April 2005 13:43 |
Elena Demeter Messages: 152 Registered: July 2009 |
Senior Member |
|
|
Hello,
thank you for suggestion. Do you mean I have to insert this code in the
code of every visual component ?
At the moment I am trying another possibility:
I have my own component "panel", in its code a method for initializing of
the "properties" object will be called. If I place other components on
this "panel" I get sometimes the giant exception below. But in whole it
works.
And if I call the method getString() I get the correct string. It is not
the best solution and it works only in part.
Do you know what I can do to not get the exception? I would be glad to get
any hint.
May be I did not understand your solution quite :-)
Thanks
Elena
------------------------------------------------------------ ---------------
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.300
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.320
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.320
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.LEFT" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$4 (PropertySheetViewer.java:1117)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.valueC hanged(PropertySheetViewer.java:309)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireValueChanged(AbstractPropertySheetEntry.java:399)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1016)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshValues(AbstractPropertySheetEntry.java:877)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:808 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.550
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.550
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.560
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.LEFT" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.createIt em(PropertySheetViewer.java:346)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateCh ildrenOf(PropertySheetViewer.java:1078)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$2 (PropertySheetViewer.java:999)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.childE ntriesChanged(PropertySheetViewer.java:298)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireChildEntriesChanged(AbstractPropertySheetEntry.java :373)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:831 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!ENTRY org.eclipse.jem.proxy 2 0 Apr 22, 2005 15:38:43.600
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.610
!MESSAGE
+++ Warning +++: Fri Apr 22 15:38:43 CEST 2005 Unable to create
enumeration value for SwingConstants.TOP
!ENTRY org.eclipse.ve.java.core 2 0 Apr 22, 2005 15:38:43.610
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.TOP" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.createIt em(PropertySheetViewer.java:346)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateCh ildrenOf(PropertySheetViewer.java:1078)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$2 (PropertySheetViewer.java:999)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.childE ntriesChanged(PropertySheetViewer.java:298)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireChildEntriesChanged(AbstractPropertySheetEntry.java :373)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:831 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
|
|
|
Re: Initialise an object inside of VE [message #607220 is a reply to message #88218] |
Fri, 22 April 2005 14:11 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
No, I meant you have the properties somewhere as a static variable. I
presume you do not have it duplicated all over the place. I presume that
all of the components are referencing the same static variable. In the
class where that one instance of the static variable is defined you
would put the static initializer.
As for the evaluation error, you need to fully-qualify the initstring
portion of the BeanInfo for your enumeration. BeanInfo requires all
initialization strings to be fully-qualified. That is because it is a
simple string and will be used in various different classes, so we can't
figure out the package just from the string if the package is not included.
--
Thanks,
Rich Kulp
|
|
|
|
|
|
|
Re: Initialise an object inside of VE [message #607236 is a reply to message #88404] |
Mon, 25 April 2005 14:00 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
I'm sorry, please refresh my memory. We were discussing several problems
in this thread. What exception are you getting when you do this?
Elena wrote:
> Hello,
>
> I installed Eclipse 3.0.2 and VE 1.0.2.
>
>
> But I still get the same exception if I do the following scenario:
>
> 1-open some VE class,
> 2-drop a JPanel from the palette,
> 3-drop the JLabel from the palette on the JPanel.
>
>
>
> Thanks
> Elena
>
--
Thanks,
Rich Kulp
|
|
|
|
Re: Initialise an object inside of VE [message #607242 is a reply to message #88554] |
Mon, 25 April 2005 15:13 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Could you please append one of the simpler java classes that you are
trying to create that gets this problem? We don't see it on our end.
Maybe there is something slightly different about your class that we can
see.
--
Thanks,
Rich Kulp
|
|
|