<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>ve-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/maillist.html</link>
		<description>ve-dev</description>
		<language>en-us</language>
		<pubDate>Tue, 26 Aug 2008 22:00:09 GMT</pubDate>
		<lastBuildDate>Tue, 26 Aug 2008 22:00:09 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>ve-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/maillist.html</link>
		</image>
 

	<item>
		<title>RE: [ve-dev] RE: Eclipse Visual Editor project</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01740.html</link>
		<description> Radu,   Please indicate me where are the contribution codes. I remind you, thru Eclipse development rules on IP, all contribution codes must be submitted in bugzilla. Please don&amp;#8217;t send me directly.   Best regards Yves YANG Soyatec - Eclipse OutSourcing mp...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Radu,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Please indicate me where are the
contribution codes. I remind you, thru Eclipse development rules on IP, all
contribution codes must be submitted in bugzilla. Please don&#8217;t send me
directly. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Best regards<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Yves YANG</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Soyatec - Eclipse OutSourcing &amp; XAML for java</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="http://www.soyatec.com/">http://www.soyatec.com</a></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Tel: +33 1 60 13 06 67</span></font><o:p></o:p></p>

<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2
  color=black face=Arial><span style='font-size:10.0pt;font-family:Arial'>Mobile</span></font></st1:place></st1:City><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>: +33 6 20
74 39 45</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Fax: +33 9 58 07 06 67</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> ve-dev-bounces@xxxxxxxxxxx
[mailto:ve-dev-bounces@xxxxxxxxxxx] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Mike Milinkovich<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 26, 2008
5:05 PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Tools PMC mailing list'<br>
<b><span style='font-weight:bold'>Cc:</span></b> 'Discussions people developing
code for the Visual Editor project'; 'Radu Dumitrescu'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [ve-dev] RE: Eclipse
Visual Editor project</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Tools PMC,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I was actually under
the impression that the VE project was &#8220;under repair&#8221;, and that
things were improving.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Any news on how
things are progressing? We have an active interest in participation below. Who
can help Radu get involved in the project?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'>Mike Milinkovich</span></font><font
size=2 color="#1f497d" face=Calibri><span style='font-size:11.0pt;font-family:
Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'>Office:
+1.613.224.9461 x228</span></font><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2
  color="#1f497d" face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:#1F497D'>Mobile</span></font></st1:place></st1:City><font size=2
color="#1f497d" face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:#1F497D'>: +1.613.220.3223</span></font><font size=2 color="#1f497d"
face=Calibri><span style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'><a
href="mailto:mike.milinkovich@xxxxxxxxxxx">mike.milinkovich@xxxxxxxxxxx</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Radu Dumitrescu [mailto:rdu@xxxxxx] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 26, 2008
3:41 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Mike.Milinkovich@xxxxxxxxxxx<br>
<b><span style='font-weight:bold'>Subject:</span></b> Eclipse Visual Editor
project<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Helvetica><span
style='font-size:10.0pt;font-family:Helvetica'>Hello Mike,<br>
<br>
I'm very sorry to disturb you but the lack of answers from the Visual Editor
newsgroup left me with no other choice. I am a happy user of the Eclipse IDE
and among other Eclipse projects I use Visual Editor. As you might know this
project was abandoned by the foundation about 2 years ago (you know the reasons
better than me and I'm not judging this decision). The problem is that during
those two years some developers tried to contribute patches and versions
suitable for new Eclipse releases but there is actually nobody with CVS commit
rights on the Visual Editor project willing to help in any way. As a result,
their code is available to download from sourceforge or other non Eclipse sites
...<br>
I am willing to help this project because I know how usefull is for the
development or Java GUI applications and that's why I'm searching for a
solution to keep it alive. Maybe someone from the foundation can help by
updating the CVS and the builds of this project with the contributed code, or
maybe the commit rights can be given to somebody who can work on the project.
Or maybe there is some other solution ...<br>
<br>
Again, sorry for the email but the situation is very disturbing for the users
of the Visual Editor.<br>
<br>
Thanks for a reply and keep up the good work,<br>
Radu Dumitrescu</span></font><o:p></o:p></p>

</div>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Tue, 26 Aug 2008 21:57:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01740.html</guid>
		<author>yves.yang@xxxxxxx (Yves YANG)</author>
	</item>
	<item>
		<title>RE: [ve-dev] RE: Eclipse Visual Editor project</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01739.html</link>
		<description> Hi,   I have the commit right and ported VE for Ganymede in CVS. A temporary build is also provided in newsgroup. Unfortunately, there is a problem to integrate it into Eclipse system. It seems Joe has asked someone to help us.  We really need someone kno...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have the commit right and ported VE for Ganymede
in CVS. A temporary build is also provided in newsgroup. Unfortunately, there
is a problem to integrate it into Eclipse system. It seems Joe has asked
someone to help us. &nbsp;We really need someone knows releng and Eclipse build
procedure. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Best regards<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Yves YANG</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Soyatec</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="http://www.soyatec.com/">http://www.soyatec.com</a></span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> ve-dev-bounces@xxxxxxxxxxx
[mailto:ve-dev-bounces@xxxxxxxxxxx] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Mike Milinkovich<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 26, 2008
5:05 PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Tools PMC mailing list'<br>
<b><span style='font-weight:bold'>Cc:</span></b> 'Discussions people developing
code for the Visual Editor project'; 'Radu Dumitrescu'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [ve-dev] RE: Eclipse
Visual Editor project</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Tools PMC,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I was actually under
the impression that the VE project was &#8220;under repair&#8221;, and that
things were improving.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Any news on how things
are progressing? We have an active interest in participation below. Who can
help Radu get involved in the project?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'>Mike Milinkovich</span></font><font
size=2 color="#1f497d" face=Calibri><span style='font-size:11.0pt;font-family:
Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'>Office:
+1.613.224.9461 x228</span></font><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2
  color="#1f497d" face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:#1F497D'>Mobile</span></font></st1:place></st1:City><font size=2
color="#1f497d" face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:#1F497D'>: +1.613.220.3223</span></font><font size=2 color="#1f497d"
face=Calibri><span style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#1F497D'><a
href="mailto:mike.milinkovich@xxxxxxxxxxx">mike.milinkovich@xxxxxxxxxxx</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Radu Dumitrescu [mailto:rdu@xxxxxx] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 26, 2008
3:41 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Mike.Milinkovich@xxxxxxxxxxx<br>
<b><span style='font-weight:bold'>Subject:</span></b> Eclipse Visual Editor
project<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Helvetica><span
style='font-size:10.0pt;font-family:Helvetica'>Hello Mike,<br>
<br>
I'm very sorry to disturb you but the lack of answers from the Visual Editor
newsgroup left me with no other choice. I am a happy user of the Eclipse IDE
and among other Eclipse projects I use Visual Editor. As you might know this
project was abandoned by the foundation about 2 years ago (you know the reasons
better than me and I'm not judging this decision). The problem is that during
those two years some developers tried to contribute patches and versions
suitable for new Eclipse releases but there is actually nobody with CVS commit
rights on the Visual Editor project willing to help in any way. As a result,
their code is available to download from sourceforge or other non Eclipse sites
...<br>
I am willing to help this project because I know how usefull is for the
development or Java GUI applications and that's why I'm searching for a
solution to keep it alive. Maybe someone from the foundation can help by
updating the CVS and the builds of this project with the contributed code, or
maybe the commit rights can be given to somebody who can work on the project.
Or maybe there is some other solution ...<br>
<br>
Again, sorry for the email but the situation is very disturbing for the users
of the Visual Editor.<br>
<br>
Thanks for a reply and keep up the good work,<br>
Radu Dumitrescu</span></font><o:p></o:p></p>

</div>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Tue, 26 Aug 2008 21:17:24 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01739.html</guid>
		<author>yves.yang@xxxxxxx (Yves YANG)</author>
	</item>
	<item>
		<title>[ve-dev] RE: Eclipse Visual Editor project</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01738.html</link>
		<description> Tools PMC,   I was actually under the impression that the VE project was &amp;#8220;under repair&amp;#8221;, and that things were improving.   Any news on how things are progressing? We have an active interest in participation below. Who can help Radu get involved in the pro...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Tools PMC,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I was actually under the impression that the VE project was &#8220;under
repair&#8221;, and that things were improving.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Any news on how things are progressing? We have an active
interest in participation below. Who can help Radu get involved in the project?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Mike Milinkovich</span><span style='font-size:11.0pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Office: +1.613.224.9461 x228</span><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Mobile: +1.613.220.3223</span><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><a href="mailto:mike.milinkovich@xxxxxxxxxxx"><span
style='color:blue'>mike.milinkovich@xxxxxxxxxxx</span></a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> Radu Dumitrescu [mailto:rdu@xxxxxx] <br>
<b>Sent:</b> Tuesday, August 26, 2008 3:41 AM<br>
<b>To:</b> Mike.Milinkovich@xxxxxxxxxxx<br>
<b>Subject:</b> Eclipse Visual Editor project<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'>Hello
Mike,<br>
<br>
I'm very sorry to disturb you but the lack of answers from the Visual Editor
newsgroup left me with no other choice. I am a happy user of the Eclipse IDE
and among other Eclipse projects I use Visual Editor. As you might know this
project was abandoned by the foundation about 2 years ago (you know the reasons
better than me and I'm not judging this decision). The problem is that during
those two years some developers tried to contribute patches and versions
suitable for new Eclipse releases but there is actually nobody with CVS commit
rights on the Visual Editor project willing to help in any way. As a result,
their code is available to download from sourceforge or other non Eclipse sites
...<br>
I am willing to help this project because I know how usefull is for the
development or Java GUI applications and that's why I'm searching for a
solution to keep it alive. Maybe someone from the foundation can help by
updating the CVS and the builds of this project with the contributed code, or
maybe the commit rights can be given to somebody who can work on the project.
Or maybe there is some other solution ...<br>
<br>
Again, sorry for the email but the situation is very disturbing for the users
of the Visual Editor.<br>
<br>
Thanks for a reply and keep up the good work,<br>
Radu Dumitrescu</span><o:p></o:p></p>

</div>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Tue, 26 Aug 2008 15:04:49 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01738.html</guid>
		<author>mike.milinkovich@xxxxxxx (Mike Milinkovich)</author>
	</item>


	<item>
		<title>Re: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01737.html</link>
		<description>Re-Hi My problem is almost at the same point than the other time. I don't manage to get what I want from visual editor. The best I have is the class name of the selected object. I was wondering if there is any chance that visual editor defines an extension...</description>
		<content:encoded><![CDATA[<pre>Re-Hi

My problem is almost at the same point than the other time. I don't
manage to get what I want from visual editor. The best I have is the
class name of the selected object.
I was wondering if there is any chance that visual editor defines an
extension point which permit modify the generated code. Because even
if I have an handle on the selected object (which will be already
marvellous ...), I don't know how to modifiy the right part of the
visual editor generated code ...
I tried to look at the source code because what I want to do is
exactly the same stuff that exists between the visual editor and the
property view but you guess it is not so easy to understand the
implementation (at least for me ...)

Please let me know if you have any ideas that might help me.

Many thanks,

Nicolas.

2008/8/11, Nicolas DRUT &lt;nicolas.drut@xxxxxxxxx&gt;:
&gt; Hi,
&gt;
&gt; I actually find out what was wrong, it was a mistake of my own (few days ago
&gt; I had modify a jar from VE to make some tests, I extracted it in a directory
&gt; and erase the jar file so when I added it to the plugin dependencies, it was
&gt; recognize but not really added ...)
&gt; But there is still problem(s) ... :-D
&gt;
&gt; I manage to get the type of the selected object thanks to this :
&gt;
&gt; *System.out.println(&quot;CLASS:&quot; + (( (ComponentGraphicalEditPart)
&gt; (ss.getFirstElement())).getBean().eClass().getName()));*
&gt;
&gt; But I still don't have an handle on it, i can't find what method to call, I
&gt; tried with *getEAllStructuralFeatures *and similars, I even find out how to
&gt; get all his methods ... but nothing to manipulate it ...
&gt; I remind you that I want to have an handle on the selected object in order
&gt; to interact with him. I don't sure I am pretty clear so I want to give you
&gt; an example.
&gt;
&gt; Let's take a class X with an attribut *picture *and getter and setter for
&gt; it. Now, imagine I've placed on instance of X on a JFrame, if I clicked on
&gt; it, I want my view to display a text field where I can write the path to my
&gt; picture and when I click &quot;Ok&quot;, it must generate the following code in my
&gt; JFrame : &quot;myXClass.setPicture(&quot;myPathToMyPicture&quot;)
&gt; I hope I've made myself clear ... :-(
&gt;
&gt;
&gt; 2008/8/11 Nicolas DRUT &lt;nicolas.drut@xxxxxxxxx&gt;
&gt;
&gt;&gt; Hi Yves,
&gt;&gt;
&gt;&gt; Thank for your advises, I have done something but I still have problems.
&gt;&gt; I casted my ISelection in IStructuredSelection, then I called
&gt;&gt; getFirstElement, getClass and getName as you can see above :
&gt;&gt;
&gt;&gt; *IStructuredSelection ss = (IStructuredSelection) selection;
&gt;&gt; System.out.println(&quot;classs:&quot;+ss.getFirstElement().getClass().getName());
&gt;&gt;
&gt;&gt;
&gt;&gt; *When I run my plugin (I precise that I reuse a plugin providing a view
&gt;&gt; that get the selection), if I clic on a JButton (place on a JFrame) for
&gt;&gt; example I have this printing : *
&gt;&gt; classs:org.eclipse.ve.internal.jfc.core.ComponentGraphicalEditPart
&gt;&gt;
&gt;&gt; *So I tried to look at this *ComponentGraphicalEditPart* class; I found it
&gt;&gt; and better, I see there is a *getBean* method which is public ! And in
&gt;&gt; fact this method return an IJavaInstance.
&gt;&gt; I add all needed packages and dependencies (org.eclipse.ve.jfc,
&gt;&gt; org.eclipse.ve.java.core, org.eclipse.jem for IJavaInstance) to my plugin
&gt;&gt; and I managed to write this :
&gt;&gt; *
&gt;&gt; System.out.println(&quot;CLASSS:&quot;+((ComponentGraphicalEditPart)(ss.getFirstElement().getClass())).getBean());
&gt;&gt; *But Eclipse doesn't recognize the ComponentGraphicalEditPart ...
&gt;&gt;
&gt;&gt; I think getBean is THE method I have to call but I can't, how can I do ?
&gt;&gt; Do
&gt;&gt; you have the same problem ?
&gt;&gt;
&gt;&gt;
&gt;&gt; Thank you for your help
&gt;&gt;
&gt;&gt; ps : you can fin attached the ComponentGraphicalEditPart if you want to
&gt;&gt; have a look at it
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; 2008/8/8 Yves YANG &lt;yves.yang@xxxxxxxxxxx&gt;
&gt;&gt;
&gt;&gt;   You shloud cast ISelection to IStructualSelection and call
&gt;&gt;&gt; getFirstElement(), which should be an IJavaInstance. Afterwards, you can
&gt;&gt;&gt; call getEClass().getAllStructuralFeatures().
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Yves YANG
&gt;&gt;&gt;
&gt;&gt;&gt; Soyatec - Eclipse OutSourcing &amp; XAML for java
&gt;&gt;&gt;
&gt;&gt;&gt; <a  href="http://www.soyatec.com">http://www.soyatec.com</a>
&gt;&gt;&gt;
&gt;&gt;&gt; Tel: +33 1 60 13 06 67
&gt;&gt;&gt;
&gt;&gt;&gt; Mobile: +33 6 20 74 39 45
&gt;&gt;&gt;
&gt;&gt;&gt; Fax: +33 9 58 07 06 67
&gt;&gt;&gt;   ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; *From:* ve-dev-bounces@xxxxxxxxxxx [<a  href="mailto:ve-dev-bounces@xxxxxxxxxxx">mailto:ve-dev-bounces@xxxxxxxxxxx</a>]
&gt;&gt;&gt; *On
&gt;&gt;&gt; Behalf Of *Nicolas DRUT
&gt;&gt;&gt; *Sent:* Friday, August 08, 2008 8:50 AM
&gt;&gt;&gt; *To:* Discussions people developing code for the Visual Editor project
&gt;&gt;&gt; *Subject:* Re: [ve-dev] About the workbench selection
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I tried to look at this way Yves, thank you, but I get back an
&gt;&gt;&gt; org.eclipse.jface.viewers.StructuredSelection object from the
&gt;&gt;&gt; SelectionService and not an IJavaInstance. And the StructuredSelection
&gt;&gt;&gt; class
&gt;&gt;&gt; doesn't have the getAllStructuralFeatures() method.
&gt;&gt;&gt; Are you sure of your IJavaInstance ? Is it return by the Visual Editor or
&gt;&gt;&gt; another part ?
&gt;&gt;&gt;
&gt;&gt;&gt; Many thanks.
&gt;&gt;&gt;
&gt;&gt;&gt; Nicolas.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;  2008/8/7 Yves YANG &lt;yves.yang@xxxxxxxxxxx&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; The Handle of UI element is a type of IJavaInstance: a subclass of
&gt;&gt;&gt; EObject. You can call getAllStructuralFeatures() to get all properties.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Yves YANG
&gt;&gt;&gt;
&gt;&gt;&gt; Soyatec - Eclipse OutSourcing &amp; XAML for java
&gt;&gt;&gt;
&gt;&gt;&gt; <a  href="http://www.soyatec.com">http://www.soyatec.com</a>
&gt;&gt;&gt;
&gt;&gt;&gt; Tel: +33 1 60 13 06 67
&gt;&gt;&gt;
&gt;&gt;&gt; Mobile: +33 6 20 74 39 45
&gt;&gt;&gt;
&gt;&gt;&gt; Fax: +33 9 58 07 06 67
&gt;&gt;&gt;   ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; *From:* ve-dev-bounces@xxxxxxxxxxx [<a  href="mailto:ve-dev-bounces@xxxxxxxxxxx">mailto:ve-dev-bounces@xxxxxxxxxxx</a>]
&gt;&gt;&gt; *On
&gt;&gt;&gt; Behalf Of *Nicolas DRUT
&gt;&gt;&gt; *Sent:* Thursday, August 07, 2008 3:51 PM
&gt;&gt;&gt; *To:* richkulp@xxxxxxxxxx
&gt;&gt;&gt; *Cc:* Discussions people developing code for the Visual Editor project
&gt;&gt;&gt; *Subject:* Re: [ve-dev] About the workbench selection
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; Many thanks for your answer Rich;
&gt;&gt;&gt; So apparently there isn't any method to get back an handle on my JButton
&gt;&gt;&gt; ?
&gt;&gt;&gt; But if we look at the properties view, it seems to me that it does a part
&gt;&gt;&gt; of it; because when you click on your item, it shows the properties of
&gt;&gt;&gt; the
&gt;&gt;&gt; item and it can modify the class, call his method, etc ...  Do you think
&gt;&gt;&gt; we
&gt;&gt;&gt; can find something looking at source of the Properties view ?
&gt;&gt;&gt;
&gt;&gt;&gt; Nicolas
&gt;&gt;&gt;
&gt;&gt;&gt; 2008/8/7 Rich Kulp &lt;richkulp@xxxxxxxxxx&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I don't remember the specifics, but you are not really clicking on a
&gt;&gt;&gt; JButton. The JButton instance doesn't even exist in Eclipse. In the VE
&gt;&gt;&gt; the
&gt;&gt;&gt; JButton is modeled by a BeanProxy object that models an actual JButton. I
&gt;&gt;&gt; believe what is returned from the selection event handler is actually an
&gt;&gt;&gt; IPropertySource which wrappers the JButton VE  model object.
&gt;&gt;&gt;
&gt;&gt;&gt; Rich
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;   *&quot;Nicolas DRUT&quot; &lt;nicolas.drut@xxxxxxxxx&gt;*
&gt;&gt;&gt; Sent by: ve-dev-bounces@xxxxxxxxxxx
&gt;&gt;&gt;
&gt;&gt;&gt; 08/07/2008 08:30 AM
&gt;&gt;&gt;
&gt;&gt;&gt; Please respond to
&gt;&gt;&gt; Discussions people developing code for the Visual Editor project        &lt;
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;    To
&gt;&gt;&gt;
&gt;&gt;&gt; &quot;Discussions people developing code for the Visual Editor project&quot; &lt;
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; cc
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Subject
&gt;&gt;&gt;
&gt;&gt;&gt; [ve-dev] About the workbench selection
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; This is me again with Visual Editor.
&gt;&gt;&gt; I am now trying to develop a new view to use it with VE. My view needs to
&gt;&gt;&gt; know witch item is selected on the workbench. For example, if user clic
&gt;&gt;&gt; on a
&gt;&gt;&gt; JButton called myButton, I would like to be able to get an handle on the
&gt;&gt;&gt; myButton class (in order to read his attributes for example).
&gt;&gt;&gt; I have tried to follow this tutorial :
&gt;&gt;&gt; <a  href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a>
&gt;&gt;&gt;
&gt;&gt;&gt; , I managed to get back something but it is an Object type class whereas
&gt;&gt;&gt; the item I clicked was a JButton. I tried to cast it in the JButton type
&gt;&gt;&gt; but
&gt;&gt;&gt; it failed, it seems to me that this is totally an other object ... Could
&gt;&gt;&gt; you
&gt;&gt;&gt; please help to find out how to get an handle on this JButton ?
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I don't really know if it is a VE problem but perhaps some of you have
&gt;&gt;&gt; tried to do the same someday, I hope.
&gt;&gt;&gt;
&gt;&gt;&gt; Thank you very much for your help and looking forward to hearing from
&gt;&gt;&gt; you.
&gt;&gt;&gt;
&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;
&gt;&gt;&gt; Nicolas._______________________________________________
&gt;&gt;&gt; ve-dev mailing list
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ve-dev">https://dev.eclipse.org/mailman/listinfo/ve-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; ve-dev mailing list
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ve-dev">https://dev.eclipse.org/mailman/listinfo/ve-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; ve-dev mailing list
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ve-dev">https://dev.eclipse.org/mailman/listinfo/ve-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; ve-dev mailing list
&gt;&gt;&gt; ve-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ve-dev">https://dev.eclipse.org/mailman/listinfo/ve-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;

</pre>]]></content:encoded>
		<pubDate>Thu, 21 Aug 2008 13:50:21 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01737.html</guid>
		<author>nicolas.drut@xxxxxxx (Nicolas DRUT)</author>
	</item>


	<item>
		<title>Re: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01736.html</link>
		<description>Hi,I actually find out what was wrong, it was a mistake of my own (few days ago I had modify a jar from VE to make some tests, I extracted it in a directory and erase the jar file so when I added it to the plugin dependencies, it was recognize but not real...</description>
		<content:encoded><![CDATA[<div dir="ltr">Hi,<br><br>I actually find out what was wrong, it was a mistake of my own (few days ago I had modify a jar from VE to make some tests, I extracted it in a directory and erase the jar file so when I added it to the plugin dependencies, it was recognize but not really added ...)<br>


But there is still problem(s) ... :-D<br><br>I manage to get the type of the selected object thanks to this :<br><br><i><b>System.out.println(&quot;CLASS:&quot; + (( (ComponentGraphicalEditPart) (ss.getFirstElement())).getBean().eClass().getName()));</b></i><br>
<br>But I still don&#39;t have an handle on it, i can&#39;t find what method to call, I tried with <i>getEAllStructuralFeatures </i>and similars, I even find out how to get all his methods ... but nothing to manipulate it ...<br>
I remind you that I want to have an handle on the selected object in order to interact with him. I don&#39;t sure I am pretty clear so I want to give you an example.<br><br>Let&#39;s take a class X with an attribut <i>picture </i>and getter and setter for it. Now, imagine I&#39;ve placed on instance of X on a JFrame, if I clicked on it, I want my view to display a text field where I can write the path to my picture and when I click &quot;Ok&quot;, it must generate the following code in my JFrame : &quot;myXClass.setPicture(&quot;myPathToMyPicture&quot;)<br>
I hope I&#39;ve made myself clear ... :-(<br><br><br><div class="gmail_quote">

2008/8/11 Nicolas DRUT <span dir="ltr">&lt;<a href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div dir="ltr">Hi Yves,<br><br>Thank for your advises, I have done something but I still have problems.<br>I casted my ISelection in IStructuredSelection, then I called getFirstElement, getClass and getName as you can see above :<br>



<br><i><b>IStructuredSelection ss = (IStructuredSelection) selection;<br>System.out.println(&quot;classs:&quot;+ss.getFirstElement().getClass().getName());</b><br><br><br></i>When I run my plugin (I precise that I reuse a plugin providing a view that get the selection), if I clic on a JButton (place on a JFrame) for example I have this printing : <i><b>classs:org.eclipse.ve.internal.jfc.core.ComponentGraphicalEditPart<br>



<br></b></i>So I tried to look at this <i><b>ComponentGraphicalEditPart</b></i> class; I found it and better, I see there is a <i><b>getBean</b></i> method which is public ! And in fact this method return an IJavaInstance.<br>



I add all needed packages and dependencies (org.eclipse.ve.jfc, org.eclipse.ve.java.core, org.eclipse.jem for IJavaInstance) to my plugin and I managed to write this :<br><i><b>System.out.println(&quot;CLASSS:&quot;+((ComponentGraphicalEditPart)(ss.getFirstElement().getClass())).getBean());<br>



</b></i>But Eclipse doesn&#39;t recognize the ComponentGraphicalEditPart ... <br><br>I think getBean is THE method I have to call but I can&#39;t, how can I do ? Do you have the same problem ?<br><br><br>Thank you for your help<br>



<br>ps : you can fin attached the ComponentGraphicalEditPart if you want to have a look at it<br><br><br><br><div class="gmail_quote">2008/8/8 Yves YANG <span dir="ltr">&lt;<a href="mailto:yves.yang@xxxxxxxxxxx" target="_blank">yves.yang@xxxxxxxxxxx</a>&gt;</span><div>


<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">You shloud cast </span></font>ISelection to
IStructualSelection and call getFirstElement(), which should be an IJavaInstance.
Afterwards, you can call getEClass().getAllStructuralFeatures().<font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p><div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yves YANG</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Soyatec - Eclipse OutSourcing &amp; XAML
for java</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font><font color="navy"><span style="color: navy;"></span></font></p>





<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tel: +33 1 60 13 06 67</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mobile</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">: +33 6 20 74 39 45</span></font><font color="navy"><span style="color: navy;"></span></font></p>





<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Fax: +33 9 58 07 06 67</span></font></p>

</div>

</div><div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a> [mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Nicolas DRUT<br>




<b><span style="font-weight: bold;">Sent:</span></b> Friday, August 08, 2008 8:50
AM<div><br>
<b><span style="font-weight: bold;">To:</span></b> Discussions people developing
code for the Visual Editor project<br>
</div><div><div></div><div><b><span style="font-weight: bold;">Subject:</span></b> Re: [ve-dev] About the
workbench selection</div></div></span></font></p>

</div><div><div></div><div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I tried to look at this
way Yves, thank you, but I get back an
org.eclipse.jface.viewers.StructuredSelection object from the SelectionService
and not an IJavaInstance. And the StructuredSelection class doesn&#39;t have the
getAllStructuralFeatures() method.<br>
Are you sure of your IJavaInstance ? Is it return by the Visual Editor or
another part ?<br>
<br>
Many thanks.<br>
<br>
Nicolas.<br>
<br>
<br>
</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2008/8/7 Yves YANG &lt;<a href="mailto:yves.yang@xxxxxxxxxxx" target="_blank">yves.yang@xxxxxxxxxxx</a>&gt;</span></font></p>

<div link="blue" vlink="blue">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The Handle of UI element is a type of IJavaInstance: a
subclass of EObject. You can call getAllStructuralFeatures() to get all
properties.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yves YANG</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Soyatec - Eclipse OutSourcing &amp; XAML for java</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tel: +33 1 60 13 06 67</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mobile</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">: +33 6 20 74 39 45</span></font></p>





<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Fax: +33 9 58 07 06 67</span></font></p>

</div>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>
[mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Nicolas DRUT<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 07, 2008
3:51 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a><br>
<b><span style="font-weight: bold;">Cc:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [ve-dev] About the
workbench selection</span></font></p>

</div>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
Many thanks for your answer Rich;<br>
So apparently there isn&#39;t any method to get back an handle on my JButton ?<br>
But if we look at the properties view, it seems to me that it does a part of
it; because when you click on your item, it shows the properties of the item
and it can modify the class, call his method, etc ...&nbsp; Do you think we can
find something looking at source of the Properties view ?<br>
<br>
Nicolas</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2008/8/7
Rich Kulp &lt;<a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a>&gt;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi,</span></font> <br>
<br>
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I
don&#39;t remember the specifics, but you are not really clicking on a JButton. The
JButton instance doesn&#39;t even exist in Eclipse. In the VE the JButton is
modeled by a BeanProxy object that models an actual JButton. I believe what is
returned from the selection event handler is actually an IPropertySource which
wrappers the JButton VE &nbsp;model object.</span></font> <br>
<br>
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Rich</span></font>
<br>
<br>
<br>
</p>

<table style="width: 100%;" border="0" cellpadding="0" width="100%">
 <tbody><tr>
  <td style="padding: 0.75pt; width: 40%;" valign="top" width="40%">
  <p><b><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial; font-weight: bold;">&quot;Nicolas DRUT&quot; &lt;<a href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span></font></b><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;"> </span></font><br>




  <font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Sent
  by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></span></font>
  </p>
  <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">08/07/2008
  08:30 AM</span></font> </p>
  <table border="1" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="white" valign="top">




    <p style="text-align: center;" align="center"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Please respond to<br>
    Discussions people developing code for the Visual Editor project &nbsp;
    &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0.75pt; width: 59%;" valign="top" width="59%">
  <table style="width: 100%;" border="0" cellpadding="0" width="100%">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">To</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">&quot;Discussions
    people developing code for the Visual Editor project&quot; &lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font>
    </p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">cc</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Subject</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">[ve-dev]
    About the workbench selection</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <table border="0" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
 </tr>
</tbody></table>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
<br>
Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs to know
witch item is selected on the workbench. For example, if user clic on a JButton
called myButton, I would like to be able to get an handle on the myButton class
(in order to read his attributes for example).<br>
I have tried to follow this tutorial : <a href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html" target="_blank">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a></span></font></p>





</div>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">, I
managed to get back something but it is an Object type class whereas the item I
clicked was a JButton. I tried to cast it in the JButton type but it failed, it
seems to me that this is totally an other object ... Could you please help to
find out how to get an handle on this JButton ?</span></font></p>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
I don&#39;t really know if it is a VE problem but perhaps some of you have tried to
do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,</span></font></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Nicolas.</span></font><tt><font face="Courier New" size="2"><span style="font-size: 10pt;">_______________________________________________</span></font></tt><font face="Courier New" size="2"><span style="font-size: 10pt;"><br>




<tt><font face="Courier New">ve-dev mailing list</font></tt><br>
<tt><font face="Courier New"><a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a></font></tt><br>
<tt><font face="Courier New"><a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></font></tt><br>
</span></font><br>
<br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><br>
<br></blockquote></div></div></div><br></div>
</blockquote></div><br></div>
]]></content:encoded>
		<pubDate>Mon, 11 Aug 2008 15:20:01 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01736.html</guid>
		<author>nicolas.drut@xxxxxxx (Nicolas DRUT)</author>
	</item>
	<item>
		<title>Re: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01735.html</link>
		<description>Hi Yves,Thank for your advises, I have done something but I still have problems.I casted my ISelection in IStructuredSelection, then I called getFirstElement, getClass and getName as you can see above : IStructuredSelection ss = (IStructuredSelection) sele...</description>
		<content:encoded><![CDATA[<div dir="ltr">Hi Yves,<br><br>Thank for your advises, I have done something but I still have problems.<br>I casted my ISelection in IStructuredSelection, then I called getFirstElement, getClass and getName as you can see above :<br>
<br><i><b>IStructuredSelection ss = (IStructuredSelection) selection;<br>System.out.println(&quot;classs:&quot;+ss.getFirstElement().getClass().getName());</b><br><br><br></i>When I run my plugin (I precise that I reuse a plugin providing a view that get the selection), if I clic on a JButton (place on a JFrame) for example I have this printing : <i><b>classs:org.eclipse.ve.internal.jfc.core.ComponentGraphicalEditPart<br>
<br></b></i>So I tried to look at this <i><b>ComponentGraphicalEditPart</b></i> class; I found it and better, I see there is a <i><b>getBean</b></i> method which is public ! And in fact this method return an IJavaInstance.<br>
I add all needed packages and dependencies (org.eclipse.ve.jfc, org.eclipse.ve.java.core, org.eclipse.jem for IJavaInstance) to my plugin and I managed to write this :<br><i><b>System.out.println(&quot;CLASSS:&quot;+((ComponentGraphicalEditPart)(ss.getFirstElement().getClass())).getBean());<br>
</b></i>But Eclipse doesn&#39;t recognize the ComponentGraphicalEditPart ... <br><br>I think getBean is THE method I have to call but I can&#39;t, how can I do ? Do you have the same problem ?<br><br><br>Thank you for your help<br>
<br>ps : you can fin attached the ComponentGraphicalEditPart if you want to have a look at it<br><br><br><br><div class="gmail_quote">2008/8/8 Yves YANG <span dir="ltr">&lt;<a href="mailto:yves.yang@xxxxxxxxxxx">yves.yang@xxxxxxxxxxx</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">You shloud cast </span></font>ISelection to
IStructualSelection and call getFirstElement(), which should be an IJavaInstance.
Afterwards, you can call getEClass().getAllStructuralFeatures().<font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p><div class="Ih2E3d">

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yves YANG</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Soyatec - Eclipse OutSourcing &amp; XAML
for java</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font><font color="navy"><span style="color: navy;"></span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tel: +33 1 60 13 06 67</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mobile</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">: +33 6 20 74 39 45</span></font><font color="navy"><span style="color: navy;"></span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Fax: +33 9 58 07 06 67</span></font></p>

</div>

</div><div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a> [mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Nicolas DRUT<br>

<b><span style="font-weight: bold;">Sent:</span></b> Friday, August 08, 2008 8:50
AM<div class="Ih2E3d"><br>
<b><span style="font-weight: bold;">To:</span></b> Discussions people developing
code for the Visual Editor project<br>
</div><div><div></div><div class="Wj3C7c"><b><span style="font-weight: bold;">Subject:</span></b> Re: [ve-dev] About the
workbench selection</div></div></span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I tried to look at this
way Yves, thank you, but I get back an
org.eclipse.jface.viewers.StructuredSelection object from the SelectionService
and not an IJavaInstance. And the StructuredSelection class doesn&#39;t have the
getAllStructuralFeatures() method.<br>
Are you sure of your IJavaInstance ? Is it return by the Visual Editor or
another part ?<br>
<br>
Many thanks.<br>
<br>
Nicolas.<br>
<br>
<br>
</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2008/8/7 Yves YANG &lt;<a href="mailto:yves.yang@xxxxxxxxxxx" target="_blank">yves.yang@xxxxxxxxxxx</a>&gt;</span></font></p>

<div link="blue" vlink="blue">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The Handle of UI element is a type of IJavaInstance: a
subclass of EObject. You can call getAllStructuralFeatures() to get all
properties.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yves YANG</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Soyatec - Eclipse OutSourcing &amp; XAML for java</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tel: +33 1 60 13 06 67</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mobile</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">: +33 6 20 74 39 45</span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Fax: +33 9 58 07 06 67</span></font></p>

</div>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>
[mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Nicolas DRUT<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 07, 2008
3:51 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a><br>
<b><span style="font-weight: bold;">Cc:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [ve-dev] About the
workbench selection</span></font></p>

</div>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
Many thanks for your answer Rich;<br>
So apparently there isn&#39;t any method to get back an handle on my JButton ?<br>
But if we look at the properties view, it seems to me that it does a part of
it; because when you click on your item, it shows the properties of the item
and it can modify the class, call his method, etc ...&nbsp; Do you think we can
find something looking at source of the Properties view ?<br>
<br>
Nicolas</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2008/8/7
Rich Kulp &lt;<a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a>&gt;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
</span></font><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi,</span></font> <br>
<br>
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I
don&#39;t remember the specifics, but you are not really clicking on a JButton. The
JButton instance doesn&#39;t even exist in Eclipse. In the VE the JButton is
modeled by a BeanProxy object that models an actual JButton. I believe what is
returned from the selection event handler is actually an IPropertySource which
wrappers the JButton VE &nbsp;model object.</span></font> <br>
<br>
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Rich</span></font>
<br>
<br>
<br>
</p>

<table style="width: 100%;" border="0" cellpadding="0" width="100%">
 <tbody><tr>
  <td style="padding: 0.75pt; width: 40%;" valign="top" width="40%">
  <p><b><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial; font-weight: bold;">&quot;Nicolas DRUT&quot; &lt;<a href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span></font></b><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;"> </span></font><br>

  <font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Sent
  by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></span></font>
  </p>
  <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">08/07/2008
  08:30 AM</span></font> </p>
  <table border="1" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="white" valign="top">

    <p style="text-align: center;" align="center"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Please respond to<br>
    Discussions people developing code for the Visual Editor project &nbsp;
    &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0.75pt; width: 59%;" valign="top" width="59%">
  <table style="width: 100%;" border="0" cellpadding="0" width="100%">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">To</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">&quot;Discussions
    people developing code for the Visual Editor project&quot; &lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font>
    </p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">cc</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">Subject</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial;">[ve-dev]
    About the workbench selection</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <table border="0" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
 </tr>
</tbody></table>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
<br>
Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs to know
witch item is selected on the workbench. For example, if user clic on a JButton
called myButton, I would like to be able to get an handle on the myButton class
(in order to read his attributes for example).<br>
I have tried to follow this tutorial : <a href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html" target="_blank">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a></span></font></p>


</div>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">, I
managed to get back something but it is an Object type class whereas the item I
clicked was a JButton. I tried to cast it in the JButton type but it failed, it
seems to me that this is totally an other object ... Could you please help to
find out how to get an handle on this JButton ?</span></font></p>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
I don&#39;t really know if it is a VE problem but perhaps some of you have tried to
do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,</span></font></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Nicolas.</span></font><tt><font face="Courier New" size="2"><span style="font-size: 10pt;">_______________________________________________</span></font></tt><font face="Courier New" size="2"><span style="font-size: 10pt;"><br>

<tt><font face="Courier New">ve-dev mailing list</font></tt><br>
<tt><font face="Courier New"><a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a></font></tt><br>
<tt><font face="Courier New"><a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></font></tt><br>
</span></font><br>
<br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><br>
<br></blockquote></div><br></div>
<p><strong>Attachment:
<a href="binq9njPuoBhb.bin" ><tt>ComponentGraphicalEditPart.java</tt></a></strong><br>
<em>Description:</em> Binary data</p>
]]></content:encoded>
		<pubDate>Mon, 11 Aug 2008 07:57:51 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01735.html</guid>
		<author>nicolas.drut@xxxxxxx (Nicolas DRUT)</author>
	</item>


	<item>
		<title>RE: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01734.html</link>
		<description> You shloud cast ISelection to IStructualSelection and call getFirstElement(), which should be an IJavaInstance. Afterwards, you can call getEClass().getAllStructuralFeatures().   Yves YANG Soyatec - Eclipse OutSourcing &amp;amp; XAML for java http://www.soyatec.c...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: blue } ">





<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You shloud cast </span></font>ISelection to
IStructualSelection and call getFirstElement(), which should be an IJavaInstance.
Afterwards, you can call getEClass().getAllStructuralFeatures().<font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Yves YANG</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Soyatec - Eclipse OutSourcing &amp; XAML
for java</span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a href="http://www.soyatec.com/">http://www.soyatec.com</a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tel: +33 1 60 13 06 67</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2
  color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:navy'>Mobile</span></font></st1:place></st1:City><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>: +33 6 20 74 39 45</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Fax: +33 9 58 07 06 67</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Nicolas DRUT<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, August 08, 2008 8:50
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ve-dev] About the
workbench selection</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I tried to look at this
way Yves, thank you, but I get back an
org.eclipse.jface.viewers.StructuredSelection object from the SelectionService
and not an IJavaInstance. And the StructuredSelection class doesn't have the
getAllStructuralFeatures() method.<br>
Are you sure of your IJavaInstance ? Is it return by the Visual Editor or
another part ?<br>
<br>
Many thanks.<br>
<br>
Nicolas.<br>
<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2008/8/7 Yves YANG &lt;<a href="mailto:yves.yang@xxxxxxxxxxx">yves.yang@xxxxxxxxxxx</a>&gt;<o:p></o:p></span></font></p>

<div link=blue vlink=blue>

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>The Handle of UI element is a type of IJavaInstance: a
subclass of EObject. You can call getAllStructuralFeatures() to get all
properties.</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Yves YANG</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Soyatec - Eclipse OutSourcing &amp; XAML for java</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Tel: +33 1 60 13 06 67</span></font><o:p></o:p></p>

<p><st1:City w:st="on"><st1:place w:st="on"><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>Mobile</span></font></st1:place></st1:City><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>: +33 6 20 74 39 45</span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Fax: +33 9 58 07 06 67</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>
[mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Nicolas DRUT<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 07, 2008
3:51 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <a
href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a><br>
<b><span style='font-weight:bold'>Cc:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ve-dev] About the
workbench selection</span></font><o:p></o:p></p>

</div>

<div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<div>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Hi,<br>
<br>
Many thanks for your answer Rich;<br>
So apparently there isn't any method to get back an handle on my JButton ?<br>
But if we look at the properties view, it seems to me that it does a part of
it; because when you click on your item, it shows the properties of the item
and it can modify the class, call his method, etc ...&nbsp; Do you think we can
find something looking at source of the Properties view ?<br>
<br>
Nicolas<o:p></o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>2008/8/7
Rich Kulp &lt;<a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a>&gt;<o:p></o:p></span></font></p>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Hi,</span></font> <br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
don't remember the specifics, but you are not really clicking on a JButton. The
JButton instance doesn't even exist in Eclipse. In the VE the JButton is
modeled by a BeanProxy object that models an actual JButton. I believe what is
returned from the selection event handler is actually an IPropertySource which
wrappers the JButton VE &nbsp;model object.</span></font> <br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Rich</span></font>
<br>
<br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
  <p><b><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial;
  font-weight:bold'>&quot;Nicolas DRUT&quot; &lt;<a
  href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span></font></b><font
  size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> </span></font><br>
  <font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>Sent
  by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></span></font>
  <o:p></o:p></p>
  <p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>08/07/2008
  08:30 AM</span></font> <o:p></o:p></p>
  <table class=MsoNormalTable border=1 cellpadding=0>
   <tr>
    <td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt .75pt;
    -moz-background-clip: -moz-initial;-moz-background-origin: -moz-initial;
    -moz-background-inline-policy: -moz-initial;background-attachment:scroll;
    background-position-x:0%;background-position-y:50%'>
    <p align=center style='text-align:center'><font size=1 face=Arial><span
    style='font-size:7.5pt;font-family:Arial'>Please respond to<br>
    Discussions people developing code for the Visual Editor project &nbsp;
    &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
  <td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p align=right style='text-align:right'><font size=1 face=Arial><span
    style='font-size:7.5pt;font-family:Arial'>To</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>&quot;Discussions
    people developing code for the Visual Editor project&quot; &lt;<a
    href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font>
    <o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p align=right style='text-align:right'><font size=1 face=Arial><span
    style='font-size:7.5pt;font-family:Arial'>cc</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p align=right style='text-align:right'><font size=1 face=Arial><span
    style='font-size:7.5pt;font-family:Arial'>Subject</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>[ve-dev]
    About the workbench selection</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>
  <table class=MsoNormalTable border=0 cellpadding=0>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
</table>

<div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs to know
witch item is selected on the workbench. For example, if user clic on a JButton
called myButton, I would like to be able to get an handle on the myButton class
(in order to read his attributes for example).<br>
I have tried to follow this tutorial : <a
href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html"
target="_blank">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a><o:p></o:p></span></font></p>

</div>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>, I
managed to get back something but it is an Object type class whereas the item I
clicked was a JButton. I tried to cast it in the JButton type but it failed, it
seems to me that this is totally an other object ... Could you please help to
find out how to get an handle on this JButton ?<o:p></o:p></span></font></p>

<div>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
I don't really know if it is a VE problem but perhaps some of you have tried to
do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,<o:p></o:p></span></font></p>

</div>

</div>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Nicolas.</span></font><tt><font size=2
face="Courier New"><span style='font-size:10.0pt'>_______________________________________________</span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">ve-dev mailing list</font></tt><br>
<tt><font face="Courier New"><a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a></font></tt><br>
<tt><font face="Courier New"><a
href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></font></tt><br>
</span></font><br>
<br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><o:p></o:p></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 08 Aug 2008 18:49:07 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01734.html</guid>
		<author>yves.yang@xxxxxxx (Yves YANG)</author>
	</item>
	<item>
		<title>Re: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01733.html</link>
		<description>I tried to look at this way Yves, thank you, but I get back an org.eclipse.jface.viewers.StructuredSelection object from the SelectionService and not an IJavaInstance. And the StructuredSelection class doesn&amp;#39;t have the getAllStructuralFeatures() method. Ar...</description>
		<content:encoded><![CDATA[<div dir="ltr">I tried to look at this way Yves, thank you, but I get back an org.eclipse.jface.viewers.StructuredSelection object from the SelectionService and not an IJavaInstance. And the StructuredSelection class doesn&#39;t have the getAllStructuralFeatures() method.<br>
Are you sure of your IJavaInstance ? Is it return by the Visual Editor or another part ?<br><br>Many thanks.<br><br>Nicolas.<br><br><br><br><div class="gmail_quote">2008/8/7 Yves YANG <span dir="ltr">&lt;<a href="mailto:yves.yang@xxxxxxxxxxx">yves.yang@xxxxxxxxxxx</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The Handle of UI element is a type of
IJavaInstance: a subclass of EObject. You can call getAllStructuralFeatures()
to get all properties.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Yves YANG</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Soyatec - Eclipse OutSourcing &amp; XAML
for java</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://www.soyatec.com/" target="_blank">http://www.soyatec.com</a></span></font><font color="navy"><span style="color: navy;"></span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tel: +33 1 60 13 06 67</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Mobile</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">: +33 6 20 74 39 45</span></font><font color="navy"><span style="color: navy;"></span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Fax: +33 9 58 07 06 67</span></font></p>

</div>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>
[mailto:<a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a>] <b><span style="font-weight: bold;">On Behalf
Of </span></b>Nicolas DRUT<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 07, 2008
3:51 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a><br>
<b><span style="font-weight: bold;">Cc:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [ve-dev] About the workbench
selection</span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
Many thanks for your answer Rich;<br>
So apparently there isn&#39;t any method to get back an handle on my JButton ?<br>
But if we look at the properties view, it seems to me that it does a part of
it; because when you click on your item, it shows the properties of the item
and it can modify the class, call his method, etc ...&nbsp; Do you think we can
find something looking at source of the Properties view ?<br>
<br>
Nicolas<br>
<br>
</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2008/8/7 Rich Kulp &lt;<a href="mailto:richkulp@xxxxxxxxxx" target="_blank">richkulp@xxxxxxxxxx</a>&gt;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
</span></font><font face="sans-serif" size="2"><span style="font-size: 10pt; font-family: sans-serif;">Hi,</span></font> <br>
<br>
<font face="sans-serif" size="2"><span style="font-size: 10pt; font-family: sans-serif;">I
don&#39;t remember the specifics, but you are not really clicking on a JButton. The
JButton instance doesn&#39;t even exist in Eclipse. In the VE the JButton is
modeled by a BeanProxy object that models an actual JButton. I believe what is
returned from the selection event handler is actually an IPropertySource which
wrappers the JButton VE &nbsp;model object.</span></font> <br>
<br>
<font face="sans-serif" size="2"><span style="font-size: 10pt; font-family: sans-serif;">Rich</span></font>
<br>
<br>
<br>
<br>
</p>

<table style="width: 100%;" border="0" cellpadding="0" width="100%">
 <tbody><tr>
  <td style="padding: 0.75pt; width: 40%;" valign="top" width="40%">
  <p><b><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif; font-weight: bold;">&quot;Nicolas DRUT&quot; &lt;<a href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span></font></b><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;"> </span></font><br>

  <font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">Sent
  by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></span></font>
  </p>
  <p><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">08/07/2008 08:30 AM</span></font> </p>
  <table border="1" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="white" valign="top">

    <p style="text-align: center;" align="center"><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">Please
    respond to<br>
    Discussions people developing code for the Visual Editor project &nbsp; &nbsp;
    &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0.75pt; width: 59%;" valign="top" width="59%">
  <table style="width: 100%;" border="0" cellpadding="0" width="100%">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">To</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">&quot;Discussions people developing code for
    the Visual Editor project&quot; &lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font> </p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">cc</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
   <tr>
    <td style="padding: 0.75pt;" valign="top">
    <p style="text-align: right;" align="right"><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">Subject</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="sans-serif" size="1"><span style="font-size: 7.5pt; font-family: sans-serif;">[ve-dev] About the workbench selection</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <table border="0" cellpadding="0">
   <tbody><tr>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
    <td style="padding: 0.75pt;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
 </tr>
</tbody></table>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
<br>
Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs to know
witch item is selected on the workbench. For example, if user clic on a JButton
called myButton, I would like to be able to get an handle on the myButton class
(in order to read his attributes for example).<br>
I have tried to follow this tutorial : <a href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html" target="_blank">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a></span></font></p>


</div>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">, I managed to get back something but it is an Object type class
whereas the item I clicked was a JButton. I tried to cast it in the JButton
type but it failed, it seems to me that this is totally an other object ...
Could you please help to find out how to get an handle on this JButton ?</span></font></p>

<div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
I don&#39;t really know if it is a VE problem but perhaps some of you have tried to
do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,</span></font></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Nicolas.</span></font><tt><font face="Courier New" size="2"><span style="font-size: 10pt;">_______________________________________________</span></font></tt><font face="Courier New" size="2"><span style="font-size: 10pt;"><br>

<tt><font face="Courier New">ve-dev mailing list</font></tt><br>
<tt><font face="Courier New"><a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a></font></tt><br>
<tt><font face="Courier New"><a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></font></tt><br>
</span></font><br>
<br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><br>
<br></blockquote></div><br></div>
]]></content:encoded>
		<pubDate>Fri, 08 Aug 2008 06:50:19 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01733.html</guid>
		<author>nicolas.drut@xxxxxxx (Nicolas DRUT)</author>
	</item>


	<item>
		<title>RE: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01732.html</link>
		<description> The Handle of UI element is a type of IJavaInstance: a subclass of EObject. You can call getAllStructuralFeatures() to get all properties.   Yves YANG Soyatec - Eclipse OutSourcing &amp;amp; XAML for java http://www.soyatec.com Tel: +33 1 60 13 06 67 Mobile: +33 ...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: blue } ">





<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The Handle of UI element is a type of
IJavaInstance: a subclass of EObject. You can call getAllStructuralFeatures()
to get all properties.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Yves YANG</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Soyatec - Eclipse OutSourcing &amp; XAML
for java</span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a href="http://www.soyatec.com/">http://www.soyatec.com</a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tel: +33 1 60 13 06 67</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=2
  color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:navy'>Mobile</span></font></st1:place></st1:City><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>: +33 6 20 74 39 45</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Fax: +33 9 58 07 06 67</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> ve-dev-bounces@xxxxxxxxxxx
[mailto:ve-dev-bounces@xxxxxxxxxxx] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Nicolas DRUT<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 07, 2008
3:51 PM<br>
<b><span style='font-weight:bold'>To:</span></b> richkulp@xxxxxxxxxx<br>
<b><span style='font-weight:bold'>Cc:</span></b> Discussions people developing
code for the Visual Editor project<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [ve-dev] About the workbench
selection</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
Many thanks for your answer Rich;<br>
So apparently there isn't any method to get back an handle on my JButton ?<br>
But if we look at the properties view, it seems to me that it does a part of
it; because when you click on your item, it shows the properties of the item
and it can modify the class, call his method, etc ...&nbsp; Do you think we can
find something looking at source of the Properties view ?<br>
<br>
Nicolas<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2008/8/7 Rich Kulp &lt;<a href="mailto:richkulp@xxxxxxxxxx">richkulp@xxxxxxxxxx</a>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>Hi,</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>I
don't remember the specifics, but you are not really clicking on a JButton. The
JButton instance doesn't even exist in Eclipse. In the VE the JButton is
modeled by a BeanProxy object that models an actual JButton. I believe what is
returned from the selection event handler is actually an IPropertySource which
wrappers the JButton VE &nbsp;model object.</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Rich</span></font>
<br>
<br>
<br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><font size=1 face=sans-serif><span style='font-size:
  7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Nicolas DRUT&quot; &lt;<a
  href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</span></font></b><font
  size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'> </span></font><br>
  <font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Sent
  by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></span></font>
  <o:p></o:p></p>
  <p><font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:
  sans-serif'>08/07/2008 08:30 AM</span></font> <o:p></o:p></p>
  <table class=MsoNormalTable border=1 cellpadding=0>
   <tr>
    <td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=center style='text-align:center'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Please
    respond to<br>
    Discussions people developing code for the Visual Editor project &nbsp; &nbsp;
    &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
  <td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>To</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
    7.5pt;font-family:sans-serif'>&quot;Discussions people developing code for
    the Visual Editor project&quot; &lt;<a href="mailto:ve-dev@xxxxxxxxxxx"
    target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</span></font> <o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>cc</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Subject</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
    7.5pt;font-family:sans-serif'>[ve-dev] About the workbench selection</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
  <table class=MsoNormalTable border=0 cellpadding=0>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
</table>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs to know
witch item is selected on the workbench. For example, if user clic on a JButton
called myButton, I would like to be able to get an handle on the myButton class
(in order to read his attributes for example).<br>
I have tried to follow this tutorial : <a
href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html"
target="_blank">http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</a><o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>, I managed to get back something but it is an Object type class
whereas the item I clicked was a JButton. I tried to cast it in the JButton
type but it failed, it seems to me that this is totally an other object ...
Could you please help to find out how to get an handle on this JButton ?<o:p></o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
I don't really know if it is a VE problem but perhaps some of you have tried to
do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Nicolas.</span></font><tt><font
size=2 face="Courier New"><span style='font-size:10.0pt'>_______________________________________________</span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">ve-dev mailing list</font></tt><br>
<tt><font face="Courier New"><a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a></font></tt><br>
<tt><font face="Courier New"><a
href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a></font></tt><br>
</span></font><br>
<br>
_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Thu, 07 Aug 2008 14:55:48 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01732.html</guid>
		<author>yves.yang@xxxxxxx (Yves YANG)</author>
	</item>
	<item>
		<title>Re: [ve-dev] About the workbench selection</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01731.html</link>
		<description>Hi,Many thanks for your answer Rich;So apparently there isn&amp;#39;t any method to get back an handle on my JButton ?But if we look at the properties view, it seems to me that it does a part of it; because when you click on your item, it shows the properties of t...</description>
		<content:encoded><![CDATA[<div dir="ltr">Hi,<br><br>Many thanks for your answer Rich;<br>So apparently there isn&#39;t any method to get back an handle on my JButton ?<br>But if we look at the properties view, it seems to me that it does a part of it; because when you click on your item, it shows the properties of the item and it can modify the class, call his method, etc ...&nbsp; Do you think we can find something looking at source of the Properties view ?<br>
<br>Nicolas<br><br><br><div class="gmail_quote">2008/8/7 Rich Kulp <span dir="ltr">&lt;<a href="mailto:richkulp@xxxxxxxxxx">richkulp@xxxxxxxxxx</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><font face="sans-serif" size="2">Hi,</font>
<br>
<br><font face="sans-serif" size="2">I don&#39;t remember the specifics, but
you are not really clicking on a JButton. The JButton instance doesn&#39;t
even exist in Eclipse. In the VE the JButton is modeled by a BeanProxy
object that models an actual JButton. I believe what is returned from the
selection event handler is actually an IPropertySource which wrappers the
JButton VE &nbsp;model object.</font>
<br>
<br><font face="sans-serif" size="2">Rich</font>
<br>
<br>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>&quot;Nicolas DRUT&quot;
&lt;<a href="mailto:nicolas.drut@xxxxxxxxx" target="_blank">nicolas.drut@xxxxxxxxx</a>&gt;</b> </font>
<br><font face="sans-serif" size="1">Sent by: <a href="mailto:ve-dev-bounces@xxxxxxxxxxx" target="_blank">ve-dev-bounces@xxxxxxxxxxx</a></font>
<p><font face="sans-serif" size="1">08/07/2008 08:30 AM</font>
</p><table border="1">
<tbody><tr valign="top">
<td bgcolor="white">
<div align="center"><font face="sans-serif" size="1">Please respond to<br>
Discussions people developing code for the Visual Editor project &nbsp;
&nbsp; &nbsp; &nbsp;&lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</font></div></td></tr></tbody></table>
<br>
</td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">To</font></div>
</td><td><font face="sans-serif" size="1">&quot;Discussions people developing
code for the Visual Editor project&quot; &lt;<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a>&gt;</font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Subject</font></div>
</td><td><font face="sans-serif" size="1">[ve-dev] About the workbench selection</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div><div></div><div class="Wj3C7c">
<br>
<br>
<br><font size="3">Hi,<br>
<br>
This is me again with Visual Editor.<br>
I am now trying to develop a new view to use it with VE. My view needs
to know witch item is selected on the workbench. For example, if user clic
on a JButton called myButton, I would like to be able to get an handle
on the myButton class (in order to read his attributes for example).<br>
I have tried to follow this tutorial : </font><a href="http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html" target="_blank"><font color="blue" size="3"><u>http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html</u></font></a></div>
</div><font size="3">,
I managed to get back something but it is an Object type class whereas
the item I clicked was a JButton. I tried to cast it in the JButton type
but it failed, it seems to me that this is totally an other object ...
Could you please help to find out how to get an handle on this JButton
?<div><div></div><div class="Wj3C7c"><br>
<br>
I don&#39;t really know if it is a VE problem but perhaps some of you have
tried to do the same someday, I hope.<br>
<br>
Thank you very much for your help and looking forward to hearing from you.<br>
<br>
Cheers,<br></div></div>
Nicolas.</font><tt><font size="2">_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx" target="_blank">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><br>
</font></tt>
<br><br>_______________________________________________<br>
ve-dev mailing list<br>
<a href="mailto:ve-dev@xxxxxxxxxxx">ve-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/ve-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/ve-dev</a><br>
<br></blockquote></div><br></div>
]]></content:encoded>
		<pubDate>Thu, 07 Aug 2008 13:51:19 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ve-dev/msg01731.html</guid>
		<author>nicolas.drut@xxxxxxx (Nicolas DRUT)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
