Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ve-dev] Unable to see images on Open


Hi Janak,

I'm lost. I no longer understand what's going on.

I can't even point to where to debug.

Can you please answer one question. When you say pack(), do you mean ULCShell.pack() or do you mean JFrame.pack()?

You shouldn't have to call pack like you are doing. The managerExtension like I showed you should handle the pack and the images without anything else special.

Please implement my suggestion AND remove the other pack()'s that you are doing. They are not necessary.



"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

11/08/2005 03:28 PM

Please respond to
Discussions people developing code for the Visual Editor project

To
"Discussions people developing code for the Visual Editor project" <ve-dev@xxxxxxxxxxx>
cc
Subject
RE: [ve-dev] Unable to see images on Open





Hi Rich,
 
Appreciate your help. I will try your suggestions.
 
However, a question:
 
Case 1: When I drop a ULCButton it shows up fine.
 
Case 2: When I close the visual class and open it, the button is not visible.
 
I checked in the debugger the sequence of calls in both the cases.
 
In Case1:
 
CompositionProxyAdapter.notifyChanged calls initSetting() which creates BeanProxies.
 
After the command is executed, ModelChangeController.doModelChanges() and transactionEnded() are called.
Which in turn calls ComponentsGraphicalEditPart.queRefreshChildren() which calls SubClassCompositionComponentsGEP.refreshChildren() which leads to  addChild() which subsequently calls activate() on ULCComponentGraphicalEditPart.
 
The activate() method calls setImageNotifier on the ImageFigureController. In this method refreshImage() is called on the ProxyAdapter class which delegates to ComponentManager.
 
In Case 2:
 
JavaVisualEditorPart first builds the model and then CopositionProxyAdapter is created and subsequently its initSetting() method is called which creates BeanProxy.
 
Then JavaVisualEditorPart calls initializeViewers() wherein setRootModel is called.This calls SubClassComponentGraphicalEditPart's activate() which results in the call to ULCComponentGraphicalEditPart.activate().
 
The activate() method calls setImageNotifier on the ImageFigureController. In this method refreshImage() is called on the ProxyAdapter class which delegates to ComponentManager.
 
--------
 
As can be seen, in both the cases, refreshImage() is called. Then why does the image not show up in Case 2?
 
Thanks and regards,
 
Janak
 
PS:
To propagate the changes made to the ULC widgets to its Swing counter part in the client, I always call pack on the free form dialog after adding the widget to the free form dialog after initing the proxy. pack() is also called in applySetting() after applying the property._______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top