Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Initialise an object inside of VE
Initialise an object inside of VE [message #88002] Thu, 21 April 2005 07:09 Go to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello,


when the application on my job will be started an object "properties" will
be created that sets some properties for the application. All the visual
components must have access to this object (e.g. the labels can have text
in different languages on it, for this reason the labels get text strings
from this object).



The important thing is that the object "properties" must be created before
the visual components are created. If I drop components from the palette I
get an exception because my object is not initialized.



I would like to initial my object inside of VE in order that all my
components have access to this object.

Thus the first and the best option would be to initial an object inside of
VE for all objects. The second one would be to initial an object for each
component (may be in edit part or somewhere else).


The thing is it is not reasonable to initial an object in the code for
each component itself. Because later when the application is started there
would be thousands of such objects.


I know it is maybe not easy to understand my intention. If not everything
is clear, please ask :-)


I would be glad to get any hint or help :-)


Thank you very-very much
Elena
Re: Initialise an object inside of VE [message #88060 is a reply to message #88002] Thu, 21 April 2005 13:56 Go to previous messageGo to next message
Eclipse UserFriend
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 #88093 is a reply to message #88060] Thu, 21 April 2005 15:18 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello




The first object that must be created is derived from the class
"java.util.Property" and at the beginning it loads properties from the
file with the method load(). One of the properties is the location of the
resources (e.g. the location of the image files) for the ResourceBundle.



The second object is for multi-language feature responsible. The visual
components call its method getString() to get a string for an appropriate
language. It is like "java.util.ResourceBundle".


Thanks
Elena
Re: Initialise an object inside of VE [message #88107 is a reply to message #88093] Thu, 21 April 2005 15:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But how do the components get access to these objects. Are they static
variables or are they passed into the components?


--
Thanks,
Rich Kulp
Re: Initialise an object inside of VE [message #88122 is a reply to message #88107] Thu, 21 April 2005 16:15 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Yes,

you are right. The variables are static and at the beginning they will be
initialized.

Thanks :-)
Elena
Re: Initialise an object inside of VE [message #88136 is a reply to message #88122] Thu, 21 April 2005 16:28 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #88276 is a reply to message #88261] Fri, 22 April 2005 15:00 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hallo Rich,



as I see if I drop a standard JLabel from the palette I get the same
exception.

Thanks
Elena
Re: Initialise an object inside of VE [message #88290 is a reply to message #88276] Fri, 22 April 2005 21:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of Java, Eclipse, GEF, EMF, and VE do you have installed?


--
Thanks,
Rich Kulp
Re: Initialise an object inside of VE [message #88389 is a reply to message #88290] Mon, 25 April 2005 06:25 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello,

I use

Eclipse 3.0.1,
EMF 2.0.1,
GEF 3.0.1,
VE 1.0.1.


Thanks
Elena
Re: Initialise an object inside of VE [message #88404 is a reply to message #88389] Mon, 25 April 2005 07:15 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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
Re: Initialise an object inside of VE [message #88495 is a reply to message #88404] Mon, 25 April 2005 14:00 Go to previous messageGo to next message
Eclipse UserFriend
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 #88554 is a reply to message #88495] Mon, 25 April 2005 14:57 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello Rich,


here it is. I always get all exceptions at one time.


Thanks
Elena


------------------------------------------------------------ -----------------

!ENTRY org.eclipse.jem.proxy 2 0 Apr 25, 2005 17:04:25.475
!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 25, 2005 17:04:25.495
!MESSAGE
+++ Warning +++: Mon Apr 25 17:04:25 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT

!ENTRY org.eclipse.ve.java.core 2 0 Apr 25, 2005 17:04:25.505
!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 25, 2005 17:04:25.575
!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 25, 2005 17:04:25.585
!MESSAGE
+++ Warning +++: Mon Apr 25 17:04:25 CEST 2005 Unable to create
enumeration value for SwingConstants.TOP

!ENTRY org.eclipse.ve.java.core 2 0 Apr 25, 2005 17:04:25.595
!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 #88583 is a reply to message #88554] Mon, 25 April 2005 15:13 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 #607209 is a reply to message #88060] Thu, 21 April 2005 15:18 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello




The first object that must be created is derived from the class
"java.util.Property" and at the beginning it loads properties from the
file with the method load(). One of the properties is the location of the
resources (e.g. the location of the image files) for the ResourceBundle.



The second object is for multi-language feature responsible. The visual
components call its method getString() to get a string for an appropriate
language. It is like "java.util.ResourceBundle".


Thanks
Elena
Re: Initialise an object inside of VE [message #607210 is a reply to message #88093] Thu, 21 April 2005 15:35 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But how do the components get access to these objects. Are they static
variables or are they passed into the components?


--
Thanks,
Rich Kulp
Re: Initialise an object inside of VE [message #607211 is a reply to message #88107] Thu, 21 April 2005 16:15 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Yes,

you are right. The variables are static and at the beginning they will be
initialized.

Thanks :-)
Elena
Re: Initialise an object inside of VE [message #607212 is a reply to message #88122] Thu, 21 April 2005 16:28 Go to previous message
Eclipse UserFriend
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 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
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 Go to previous message
Eclipse UserFriend
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 #607221 is a reply to message #88261] Fri, 22 April 2005 15:00 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hallo Rich,



as I see if I drop a standard JLabel from the palette I get the same
exception.

Thanks
Elena
Re: Initialise an object inside of VE [message #607222 is a reply to message #88276] Fri, 22 April 2005 21:14 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of Java, Eclipse, GEF, EMF, and VE do you have installed?


--
Thanks,
Rich Kulp
Re: Initialise an object inside of VE [message #607229 is a reply to message #88290] Mon, 25 April 2005 06:25 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello,

I use

Eclipse 3.0.1,
EMF 2.0.1,
GEF 3.0.1,
VE 1.0.1.


Thanks
Elena
Re: Initialise an object inside of VE [message #607230 is a reply to message #88389] Mon, 25 April 2005 07:15 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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
Re: Initialise an object inside of VE [message #607236 is a reply to message #88404] Mon, 25 April 2005 14:00 Go to previous message
Eclipse UserFriend
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 #607240 is a reply to message #88495] Mon, 25 April 2005 14:57 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello Rich,


here it is. I always get all exceptions at one time.


Thanks
Elena


------------------------------------------------------------ -----------------

!ENTRY org.eclipse.jem.proxy 2 0 Apr 25, 2005 17:04:25.475
!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 25, 2005 17:04:25.495
!MESSAGE
+++ Warning +++: Mon Apr 25 17:04:25 CEST 2005 Unable to create
enumeration value for SwingConstants.LEFT

!ENTRY org.eclipse.ve.java.core 2 0 Apr 25, 2005 17:04:25.505
!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 25, 2005 17:04:25.575
!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 25, 2005 17:04:25.585
!MESSAGE
+++ Warning +++: Mon Apr 25 17:04:25 CEST 2005 Unable to create
enumeration value for SwingConstants.TOP

!ENTRY org.eclipse.ve.java.core 2 0 Apr 25, 2005 17:04:25.595
!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 #607242 is a reply to message #88554] Mon, 25 April 2005 15:13 Go to previous message
Eclipse UserFriend
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
Previous Topic:VE Installation
Next Topic:Visual Editor 1.1M1 released
Goto Forum:
  


Current Time: Fri Dec 27 00:25:06 GMT 2024

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

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

Back to the top