Visual editor isn't picking up my property editors and generates UNABLE TO DETERMINE INITIALIZATION [message #612354] |
Fri, 24 March 2006 12:50 |
Eclipse User |
|
|
|
I have a number of custom Swing widgets that have bean info classes that
specify customizers and
property editors.
1) When I go to the Properties view with a widget selected, the button does
not give me one of my property editors.
2) When I press Ok on a customizer, all that gets generated for changed
properties is UNABLE TO DETERMINE INITIALIZATION STRING. It seems that my
property editors which are registered in the property descriptors of the
bean info classes (and which have the getJavaInitializationString methods)
are not being picked up.
My classpath should be OK as the bean info classes are in the same package
as the Swing components.
I am running Eclipse 3.1 and Visual Editor 1.1.0, GEF 3.1.0, EMF 2.1.0.
I have tried debugging, and what seems to happen is that in the
recordPropertyChange method of
the CustomizeJavaBeanAction class, it is determined that the cellEditor is
not a IJavaCellEditor.
What exactly is this? It certainly didn't used to be needed (I had this all
working with visual editor 1.0, and
didn't need to do any plug-in stuff)?
if (cellEditor instanceof INeedData) {
((INeedData) cellEditor).setData(fEditDomain);
// We must call doSetValue(...) with the new bean
cellEditor.setValue(newBean);
String initString = "UNABLE TO DETERMINE INITIALIZATION STRING";
if(cellEditor instanceof IJavaCellEditor){
initString = ((IJavaCellEditor)
cellEditor).getJavaInitializationString();
}
newBean.setAllocation(InstantiationFactory.eINSTANCE.createI nitStringAllocation(initString));
}
Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.04505 seconds