[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ve-dev] Getting Live objects from IJavaInstance/ComponentEditPart
|
Hi Joe,
Thanks
for the information and the help, i will take a look at the tutorial you pointed
out.
Regards,
Rashmi
H.Ramachandra
Hi Rashmi, You can't actually get a handle to the live JavaBean
inside your Eclipse plugin, because it's not held in the same JVM. The VE
starts a separate JVM for the editor that holds the JavaBeans, however you can
get a handle to a proxy object through which you can talk to the live object and
do things like call messages and such. The way to get the proxy object
is BeanProxyUtilities.getBeanProxy(IJavaInstance); If you look at the VE tutorial
http://www.eclipse.org/articles/Article-VE-Custom-Widget/customwidget.html and
the section "Target VM and its APIs" you will see some more details on the
target VM and how to access objects on it. Best regards, Joe
Winchester
Please respond to Discussions
people developing code for the Visual Editor project <ve-dev@xxxxxxxxxxx>
Sent by:
ve-dev-bounces@xxxxxxxxxxx
To:
<ve-dev@xxxxxxxxxxx>
cc:
Subject:
[ve-dev] Getting Live objects
from IJavaInstance/ ComponentEditPart
Hi All,
Is it possible to get the live component from the IJavaInstance. I have
the list of IJavaInstance from the VisualEditor 's Selection listener. Now
I want to get the Live Objects/ instances of the objects selected. i.e .,If I
have selected a Panel , I need to the Panel object programatically. I have
browsed through IJavaInstance and it's corresponding ComponentEditPart objects.
But am unable to get any lead into the results I require. Any help in this
regard is greatly appreciated.
Thank You and Regards
Rashmi H.Ramachandra
_______________________________________________
ve-dev mailing
list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev