properties can be set but not shown after reload Visual Editor [message #49817] |
Tue, 13 July 2004 15:57 |
Eclipse User |
|
|
|
Originally posted by: peter.villiger.gmx.ch
Hi,
there are properties they can be set and shown correctly by property editor.
But after reopen the Visual Editor the property view doesn't show the
property value.
This happens to String property set by a constant and String[] property set
by constants.
aBean.setPropertyName(CONST_A);
aBean.setPropertyNames( new String[] {CONST_A,CONST_B} );
I this a bug which should be posted?
I use Eclipse 3.0, Visual Editor I20040706
Thanks and regards
peter
log:
!ENTRY org.eclipse.ve.java.core 2 0 Jul 13, 2004 17:45:04.522
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "new String[]{CONST_A, CONST_B}"
is too complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBean
Proxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(R
EMAbstractBeanTypeProxy.java:239)
at
org.eclipse.ve.internal.java.core.BasicAllocationProcesser.i nstantiateWithSt
ring(BasicAllocationProcesser.java:210)
at
org.eclipse.ve.internal.java.core.BasicAllocationProcesser.a llocate(BasicAll
ocationProcesser.java:149)
at
org.eclipse.ve.internal.java.core.BasicAllocationProcesser.a llocate(BasicAll
ocationProcesser.java:120)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.beanProxy Allocation(BeanP
roxyAdapter.java:883)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.primInsta ntiateBeanProxy(
BeanProxyAdapter.java:832)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(Bean
ProxyAdapter.java:762)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.applied(B eanProxyAdapter.
java:257)
at
org.eclipse.ve.internal.jfc.core.ComponentProxyAdapter.appli ed(ComponentProx
yAdapter.java:166)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.appli ed(ContainerProx
yAdapter.java:57)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.applyAllS ettings(BeanProx
yAdapter.java:544)
at
org.eclipse.ve.internal.jfc.core.ComponentProxyAdapter.apply AllSettings(Comp
onentProxyAdapter.java:635)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(Bean
ProxyAdapter.java:764)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.addCo mponentWithConst
raint(ContainerProxyAdapter.java:221)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.addCo mponent(Containe
rProxyAdapter.java:189)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.appli ed(ContainerProx
yAdapter.java:55)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.appliedLi st(BeanProxyAdap
ter.java:184)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.applyAllS ettings(BeanProx
yAdapter.java:540)
at
org.eclipse.ve.internal.jfc.core.ComponentProxyAdapter.apply AllSettings(Comp
onentProxyAdapter.java:635)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(Bean
ProxyAdapter.java:764)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itSetting(Compos
itionProxyAdapter.java:143)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itBeanProxy(Comp
ositionProxyAdapter.java:115)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.r
un(JavaVisualEditorPart.java:1464)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
|
|
|
Re: properties can be set but not shown after reload Visual Editor [message #49847 is a reply to message #49817] |
Tue, 13 July 2004 17:14 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
For now please fully-qualify the constants. We don't resolve
non-qualified properties yet. We are working on that and it should work
in a later driver, hopefully soon. Also the constants must be statics.
We won't be able to see non-statics.
It is possible that it may not be able to handle even fully-qualified
constants in the array. Arrays are still being worked on at this time.
Also, if the constants are in the class being edited, they won't show on
the VE until the class has been saved and compiled. That is because we
use java reflection to find them from the .class file and until then
there is no class file.
--
Thanks, Rich Kulp
|
|
|
|
|
|
Re: properties can be set but not shown after reload Visual Editor [message #50686 is a reply to message #50551] |
Fri, 16 July 2004 14:33 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
In the property editor you will always see the "contents" of the
constants. We show you the final value. The fact that it came from
constant is not shown. In fact, at one time we did simply show the
string "CONST", and people didn't like it. They wanted to see the value.
If you change the value of a property in the property sheet it will
generate a new setting. It doesn't change the value of CONST. That would
not be a good thing to do because CONST may be used in other places.
If you want CONST to be changed, you need to go to code to do it.
--
Thanks, Rich Kulp
|
|
|
Re: properties can be set but not shown after reload Visual Editor [message #595107 is a reply to message #49817] |
Tue, 13 July 2004 17:14 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
For now please fully-qualify the constants. We don't resolve
non-qualified properties yet. We are working on that and it should work
in a later driver, hopefully soon. Also the constants must be statics.
We won't be able to see non-statics.
It is possible that it may not be able to handle even fully-qualified
constants in the array. Arrays are still being worked on at this time.
Also, if the constants are in the class being edited, they won't show on
the VE until the class has been saved and compiled. That is because we
use java reflection to find them from the .class file and until then
there is no class file.
--
Thanks, Rich Kulp
|
|
|
|
|
|
Re: properties can be set but not shown after reload Visual Editor [message #595413 is a reply to message #50551] |
Fri, 16 July 2004 14:33 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
In the property editor you will always see the "contents" of the
constants. We show you the final value. The fact that it came from
constant is not shown. In fact, at one time we did simply show the
string "CONST", and people didn't like it. They wanted to see the value.
If you change the value of a property in the property sheet it will
generate a new setting. It doesn't change the value of CONST. That would
not be a good thing to do because CONST may be used in other places.
If you want CONST to be changed, you need to go to code to do it.
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.05038 seconds