<?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>ercp-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/maillist.html</link>
		<description>ercp-dev</description>
		<language>en-us</language>
		<pubDate>Thu, 15 Sep 2011 20:10:04 GMT</pubDate>
		<lastBuildDate>Thu, 15 Sep 2011 20:10:04 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>ercp-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/ercp-dev/maillist.html</link>
		</image>
 

	<item>
		<title>[ercp-dev] AUTO: Eric MF Hsu is out of the office</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00192.html</link>
		<description> I am out of the office until 2011/09/19. I will be out of office from 9/15 and return in 9/19. Will reply you ASAP. Thanks Note: This is an automated response to your message &amp;quot;ercp-dev Digest, Vol 26, Issue 4&amp;quot; sent on 16/9/11 0:00:03. This is the only not...</description>
		<content:encoded><![CDATA[
<p><font size="2">I am out of the office until 2011/09/19.<br>
</font><font size="2"><br>
</font><font size="2">I will be out of office from 9/15 and return in 9/19. Will reply you ASAP. Thanks<br>
</font><font size="2"><br>
</font><font size="2"><br>
</font><font size="2" color="#808080">Note: This is an automated response to your message  </font><b><font size="2">&quot;ercp-dev Digest, Vol 26, Issue 4&quot;</font></b><font size="2" color="#808080"> sent on </font><b><font size="2">16/9/11 0:00:03</font></b><font size="2" color="#808080">. <br>
</font><font size="2" color="#808080"><br>
</font><font size="2" color="#808080">This is the only notification you will receive while this person is away.</font>]]></content:encoded>
		<pubDate>Thu, 15 Sep 2011 20:03:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00192.html</guid>
		<author>mfhsu@xxxxxxx (Eric MF Hsu)</author>
	</item>


	<item>
		<title>Re: [ercp-dev] first approach and fonts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00191.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>An update on the issue. One of the PhoneME developers was so kind to
look into the problem to check if this is a eSWT or phoneME bug
(thanks Davy Preuveneers). It looks like the issue in the eRCP tracker
is in the right place.

It turnes out that in:

stringCharData = GetStringChars(env, string);
if (ExceptionCheck(env)) return ;
stringLength = GetStringLength(env, string);
uglstring = convertToNativeString(stringCharData, stringLength,
 &amp;stringShouldFree);
error.error_code = 0;

GetStringChars is a JNI method. In that case phoneME returns a
non-null terminated pointer to a jchar array (a Unicode string). Then
convertToNativeString() transforms this jchar array into an internal
representation, but mistakenly assumes that stringCharData is
null-terminated. This method is implemented in eSWT and can be found
in:

<a  href="http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.ercp/eswt/win/org.eclipse.ercp.swt.core.win/win-native/bindings/impl/TypeConverter.c?root=RT_Project">http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.ercp/eswt/win/org.eclipse.ercp.swt.core.win/win-native/bindings/impl/TypeConverter.c?root=RT_Project</a>

J9 makes sure that all Unicode strings are null-terminated and the
eSWT code relies on it. Which is why J9 doesn't have the problem.

So to summarize it seems that eSWT wrongly assumes GetStringChars
returns null-terminated strings where it should not.
Unicode strings are not \0 terminated, whereas UTF-8 strings are (and
GetStringChars uses Unicode strings)
See sectopm 3.2.4 in:
<a  href="http://java.sun.com/docs/books/jni/html/objtypes.html">http://java.sun.com/docs/books/jni/html/objtypes.html</a>

I'm going to append this to the bug report.

Best regards,
Andrea










On Tue, Sep 6, 2011 at 2:47 PM, andrea antonello
&lt;andrea.antonello@xxxxxxxxx&gt; wrote:
&gt; Thanks Mark,
&gt;
&gt;&gt; It definitely sounds like a problem. I don't think there has been a fix put
&gt;&gt; into eRCP. If you open a defect and provide a patch we can get it into the
&gt;&gt; code base.
&gt;
&gt; I opened an issue in the tracker. Unfortunately I am not able to supply a fix.
&gt; I will try to hunt down the person that fixed it already and kindly
&gt; ask if he can provide his fix.
&gt;
&gt; best regards,
&gt; Andrea
&gt;
&gt;
&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt;&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ERCP developers list &lt;ercp-dev@xxxxxxxxxxx&gt;
&gt;&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;09/05/2011 04:41 AM
&gt;&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;Re: [ercp-dev] first approach and fonts
&gt;&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt;&gt; ________________________________
&gt;&gt;
&gt;&gt;
&gt;&gt; A small update on this (without evident solution, I am afraid).
&gt;&gt; Reading the comments on the following post:
&gt;&gt; <a  href="http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html">http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html</a>
&gt;&gt;
&gt;&gt; I saw the comment about the same problem I have:
&gt;&gt;
&gt;&gt; &quot;I was able to resolve the issue with stray characters in the widget
&gt;&gt; texts (menu, button, etc.) by fixing one method in the eSWT C code. It
&gt;&gt; seems CVM does not handle Strings the same way J9 does. J9 will
&gt;&gt; automatically terminate the string with null values when passing
&gt;&gt; to/from JNI. CVM doesn't seem to do this. The fix was pretty simple,
&gt;&gt; since the length of the string was provided already.&quot;
&gt;&gt;
&gt;&gt; Does anyone know if this was addressed in the latest available
&gt;&gt; eRCP/eSWT or if this could be the problem I am facing?
&gt;&gt;
&gt;&gt; Best regards,
&gt;&gt; Andrea
&gt;&gt;
&gt;&gt;
&gt;&gt; On Wed, Aug 24, 2011 at 6:11 PM, andrea antonello
&gt;&gt; &lt;andrea.antonello@xxxxxxxxx&gt; wrote:
&gt;&gt;&gt; Thanks for the reply Mark,
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The eWorkbench is not coded to use any device/user preferences for font
&gt;&gt;&gt;&gt; size
&gt;&gt;&gt;&gt; since there is no standard way to obtain this info. So if on your
&gt;&gt;&gt;&gt; particular
&gt;&gt;&gt;&gt; device, the fonts are too small, the easiest thing to do is recompile the
&gt;&gt;&gt;&gt; eWorkbench plugin with your own font size specified.
&gt;&gt;&gt;
&gt;&gt;&gt; Ok, so I will have to tweak it, thanks for the pointer.
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; You typically see boxes instead of characters when the device font does
&gt;&gt;&gt;&gt; not
&gt;&gt;&gt;&gt; support the character being displayed. Some device manufacturers provide
&gt;&gt;&gt;&gt; additional fonts that you can download to the device. Make the new font
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; default, and most apps should use it and display the right characters.
&gt;&gt;&gt;
&gt;&gt;&gt; That is so strange, because even the default font shows the boxes. I
&gt;&gt;&gt; also tried to set a Tahoma font, which is supposed to be present for
&gt;&gt;&gt; sure in Windows Mobile and I get the same error. Also this only
&gt;&gt;&gt; applies to spaces and striong endings (not \n, simply the end of the
&gt;&gt;&gt; string, i.e. &quot;COM4&quot; gets &quot;COM4[]&quot; with the brackets being the box). I
&gt;&gt;&gt; will &#xA0;investigate further.
&gt;&gt;&gt;
&gt;&gt;&gt; Best regards,
&gt;&gt;&gt; Andrea
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt;&gt;&gt;&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt;&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;08/24/2011 04:43 AM
&gt;&gt;&gt;&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;[ercp-dev] first approach and fonts
&gt;&gt;&gt;&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt;&gt;&gt;&gt; ________________________________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi list,
&gt;&gt;&gt;&gt; I am quite new to the eRCP project and was successful in adding
&gt;&gt;&gt;&gt; applications to the eWorkbench using the phoneme jvm.
&gt;&gt;&gt;&gt; So far I am amazed about the possibility to go mobile developing in rcp.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Due to the display size (I guess) of the device, the font is &#xA0;way to
&gt;&gt;&gt;&gt; small to be readable, which is why I supplied custom fonts to the
&gt;&gt;&gt;&gt; widgets.
&gt;&gt;&gt;&gt; I could not find a way to do this in an overall way (themes do not
&gt;&gt;&gt;&gt; seem to be supported). I have 2 main problems:
&gt;&gt;&gt;&gt; - the eWorkbench parts are still small. Do I have to modify the plugin
&gt;&gt;&gt;&gt; directly to change the UI font or is there another way?
&gt;&gt;&gt;&gt; - the texts have strange rectangles [0] instead of the spaces
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Best regards,
&gt;&gt;&gt;&gt; Andrea
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; [0] as code 141 in the table here <a  href="http://www.asciitable.it/asciiext.asp">http://www.asciitable.it/asciiext.asp</a>
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; ercp-dev mailing list
&gt;&gt;&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; ercp-dev mailing list
&gt;&gt;&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; ercp-dev mailing list
&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; ercp-dev mailing list
&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;
&gt;&gt;
&gt;

</pre>]]></content:encoded>
		<pubDate>Wed, 14 Sep 2011 19:34:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00191.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>


	<item>
		<title>[ercp-dev] SortedList font</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00190.html</link>
		<description>Hi, I am in need to change the font and background of the filter Text of the org.eclipse.ercp.swt.mobile.SortedList. The color is hardcoded and there is no way to access it. Also it is not possible to copy the class to an own package and change the content...</description>
		<content:encoded><![CDATA[<pre>Hi, I am in need to change the font and background of the filter Text
of the org.eclipse.ercp.swt.mobile.SortedList.

The color is hardcoded and there is no way to access it.

Also it is not possible to copy the class to an own package and change
the contents.

Does anyone know a way to do those changes without reimplementing it?

Thanks,
Andrea

</pre>]]></content:encoded>
		<pubDate>Tue, 13 Sep 2011 14:25:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00190.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>


	<item>
		<title>Re: [ercp-dev] first approach and fonts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00189.html</link>
		<description>Thanks Mark, I opened an issue in the tracker. Unfortunately I am not able to supply a fix. I will try to hunt down the person that fixed it already and kindly ask if he can provide his fix. best regards, Andrea </description>
		<content:encoded><![CDATA[<pre>Thanks Mark,

&gt; It definitely sounds like a problem. I don't think there has been a fix put
&gt; into eRCP. If you open a defect and provide a patch we can get it into the
&gt; code base.

I opened an issue in the tracker. Unfortunately I am not able to supply a fix.
I will try to hunt down the person that fixed it already and kindly
ask if he can provide his fix.

best regards,
Andrea



&gt;
&gt;
&gt;
&gt;
&gt;
&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ERCP developers list &lt;ercp-dev@xxxxxxxxxxx&gt;
&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;09/05/2011 04:41 AM
&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;Re: [ercp-dev] first approach and fonts
&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt; ________________________________
&gt;
&gt;
&gt; A small update on this (without evident solution, I am afraid).
&gt; Reading the comments on the following post:
&gt; <a  href="http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html">http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html</a>
&gt;
&gt; I saw the comment about the same problem I have:
&gt;
&gt; &quot;I was able to resolve the issue with stray characters in the widget
&gt; texts (menu, button, etc.) by fixing one method in the eSWT C code. It
&gt; seems CVM does not handle Strings the same way J9 does. J9 will
&gt; automatically terminate the string with null values when passing
&gt; to/from JNI. CVM doesn't seem to do this. The fix was pretty simple,
&gt; since the length of the string was provided already.&quot;
&gt;
&gt; Does anyone know if this was addressed in the latest available
&gt; eRCP/eSWT or if this could be the problem I am facing?
&gt;
&gt; Best regards,
&gt; Andrea
&gt;
&gt;
&gt; On Wed, Aug 24, 2011 at 6:11 PM, andrea antonello
&gt; &lt;andrea.antonello@xxxxxxxxx&gt; wrote:
&gt;&gt; Thanks for the reply Mark,
&gt;&gt;
&gt;&gt;&gt; The eWorkbench is not coded to use any device/user preferences for font
&gt;&gt;&gt; size
&gt;&gt;&gt; since there is no standard way to obtain this info. So if on your
&gt;&gt;&gt; particular
&gt;&gt;&gt; device, the fonts are too small, the easiest thing to do is recompile the
&gt;&gt;&gt; eWorkbench plugin with your own font size specified.
&gt;&gt;
&gt;&gt; Ok, so I will have to tweak it, thanks for the pointer.
&gt;&gt;
&gt;&gt;&gt; You typically see boxes instead of characters when the device font does
&gt;&gt;&gt; not
&gt;&gt;&gt; support the character being displayed. Some device manufacturers provide
&gt;&gt;&gt; additional fonts that you can download to the device. Make the new font
&gt;&gt;&gt; the
&gt;&gt;&gt; default, and most apps should use it and display the right characters.
&gt;&gt;
&gt;&gt; That is so strange, because even the default font shows the boxes. I
&gt;&gt; also tried to set a Tahoma font, which is supposed to be present for
&gt;&gt; sure in Windows Mobile and I get the same error. Also this only
&gt;&gt; applies to spaces and striong endings (not \n, simply the end of the
&gt;&gt; string, i.e. &quot;COM4&quot; gets &quot;COM4[]&quot; with the brackets being the box). I
&gt;&gt; will &#xA0;investigate further.
&gt;&gt;
&gt;&gt; Best regards,
&gt;&gt; Andrea
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt;&gt;&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;08/24/2011 04:43 AM
&gt;&gt;&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;[ercp-dev] first approach and fonts
&gt;&gt;&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt;&gt;&gt; ________________________________
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi list,
&gt;&gt;&gt; I am quite new to the eRCP project and was successful in adding
&gt;&gt;&gt; applications to the eWorkbench using the phoneme jvm.
&gt;&gt;&gt; So far I am amazed about the possibility to go mobile developing in rcp.
&gt;&gt;&gt;
&gt;&gt;&gt; Due to the display size (I guess) of the device, the font is &#xA0;way to
&gt;&gt;&gt; small to be readable, which is why I supplied custom fonts to the
&gt;&gt;&gt; widgets.
&gt;&gt;&gt; I could not find a way to do this in an overall way (themes do not
&gt;&gt;&gt; seem to be supported). I have 2 main problems:
&gt;&gt;&gt; - the eWorkbench parts are still small. Do I have to modify the plugin
&gt;&gt;&gt; directly to change the UI font or is there another way?
&gt;&gt;&gt; - the texts have strange rectangles [0] instead of the spaces
&gt;&gt;&gt;
&gt;&gt;&gt; Best regards,
&gt;&gt;&gt; Andrea
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; [0] as code 141 in the table here <a  href="http://www.asciitable.it/asciiext.asp">http://www.asciitable.it/asciiext.asp</a>
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; ercp-dev mailing list
&gt;&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; ercp-dev mailing list
&gt;&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt; _______________________________________________
&gt; ercp-dev mailing list
&gt; ercp-dev@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;
&gt;
&gt; _______________________________________________
&gt; ercp-dev mailing list
&gt; ercp-dev@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;
&gt;

</pre>]]></content:encoded>
		<pubDate>Tue, 06 Sep 2011 12:47:28 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00189.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>
	<item>
		<title>Re: [ercp-dev] first approach and fonts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00188.html</link>
		<description> for font size particular the font does not provide new font the I being the box). I and fonts in rcp. to the not plugin _______________________________________________ ercp-dev mailing list ercp-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/erc...</description>
		<content:encoded><![CDATA[<font size=2 face="sans-serif">It definitely sounds like a problem. I
don't think there has been a fix put into eRCP. If you open a defect and
provide a patch we can get it into the code base.</font>
<br>
<br><font size=3 face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">ERCP developers list
&lt;ercp-dev@xxxxxxxxxxx&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09/05/2011 04:41 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [ercp-dev]
first approach and fonts</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">ercp-dev-bounces@xxxxxxxxxxx</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>A small update on this (without evident solution,
I am afraid).<br>
Reading the comments on the following post:<br>
</font></tt><a href="http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html"><tt><font size=2>http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html</font></tt></a><tt><font size=2><br>
<br>
I saw the comment about the same problem I have:<br>
<br>
&quot;I was able to resolve the issue with stray characters in the widget<br>
texts (menu, button, etc.) by fixing one method in the eSWT C code. It<br>
seems CVM does not handle Strings the same way J9 does. J9 will<br>
automatically terminate the string with null values when passing<br>
to/from JNI. CVM doesn't seem to do this. The fix was pretty simple,<br>
since the length of the string was provided already.&quot;<br>
<br>
Does anyone know if this was addressed in the latest available<br>
eRCP/eSWT or if this could be the problem I am facing?<br>
<br>
Best regards,<br>
Andrea<br>
<br>
<br>
On Wed, Aug 24, 2011 at 6:11 PM, andrea antonello<br>
&lt;andrea.antonello@xxxxxxxxx&gt; wrote:<br>
&gt; Thanks for the reply Mark,<br>
&gt;<br>
&gt;&gt; The eWorkbench is not coded to use any device/user preferences
for font size<br>
&gt;&gt; since there is no standard way to obtain this info. So if on your
particular<br>
&gt;&gt; device, the fonts are too small, the easiest thing to do is recompile
the<br>
&gt;&gt; eWorkbench plugin with your own font size specified.<br>
&gt;<br>
&gt; Ok, so I will have to tweak it, thanks for the pointer.<br>
&gt;<br>
&gt;&gt; You typically see boxes instead of characters when the device
font does not<br>
&gt;&gt; support the character being displayed. Some device manufacturers
provide<br>
&gt;&gt; additional fonts that you can download to the device. Make the
new font the<br>
&gt;&gt; default, and most apps should use it and display the right characters.<br>
&gt;<br>
&gt; That is so strange, because even the default font shows the boxes.
I<br>
&gt; also tried to set a Tahoma font, which is supposed to be present for<br>
&gt; sure in Windows Mobile and I get the same error. Also this only<br>
&gt; applies to spaces and striong endings (not \n, simply the end of the<br>
&gt; string, i.e. &quot;COM4&quot; gets &quot;COM4[]&quot; with the brackets
being the box). I<br>
&gt; will &nbsp;investigate further.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Andrea<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; From: &nbsp; &nbsp; &nbsp; &nbsp;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;<br>
&gt;&gt; To: &nbsp; &nbsp; &nbsp; &nbsp;ercp-dev@xxxxxxxxxxx<br>
&gt;&gt; Date: &nbsp; &nbsp; &nbsp; &nbsp;08/24/2011 04:43 AM<br>
&gt;&gt; Subject: &nbsp; &nbsp; &nbsp; &nbsp;[ercp-dev] first approach
and fonts<br>
&gt;&gt; Sent by: &nbsp; &nbsp; &nbsp; &nbsp;ercp-dev-bounces@xxxxxxxxxxx<br>
&gt;&gt; ________________________________<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi list,<br>
&gt;&gt; I am quite new to the eRCP project and was successful in adding<br>
&gt;&gt; applications to the eWorkbench using the phoneme jvm.<br>
&gt;&gt; So far I am amazed about the possibility to go mobile developing
in rcp.<br>
&gt;&gt;<br>
&gt;&gt; Due to the display size (I guess) of the device, the font is &nbsp;way
to<br>
&gt;&gt; small to be readable, which is why I supplied custom fonts to
the<br>
&gt;&gt; widgets.<br>
&gt;&gt; I could not find a way to do this in an overall way (themes do
not<br>
&gt;&gt; seem to be supported). I have 2 main problems:<br>
&gt;&gt; - the eWorkbench parts are still small. Do I have to modify the
plugin<br>
&gt;&gt; directly to change the UI font or is there another way?<br>
&gt;&gt; - the texts have strange rectangles [0] instead of the spaces<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Andrea<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [0] as code 141 in the table here </font></tt><a href=http://www.asciitable.it/asciiext.asp><tt><font size=2>http://www.asciitable.it/asciiext.asp</font></tt></a><tt><font size=2><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ercp-dev mailing list<br>
&gt;&gt; ercp-dev@xxxxxxxxxxx<br>
&gt;&gt; </font></tt><a href="https://dev.eclipse.org/mailman/listinfo/ercp-dev"><tt><font size=2>https://dev.eclipse.org/mailman/listinfo/ercp-dev</font></tt></a><tt><font size=2><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ercp-dev mailing list<br>
&gt;&gt; ercp-dev@xxxxxxxxxxx<br>
&gt;&gt; </font></tt><a href="https://dev.eclipse.org/mailman/listinfo/ercp-dev"><tt><font size=2>https://dev.eclipse.org/mailman/listinfo/ercp-dev</font></tt></a><tt><font size=2><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
ercp-dev mailing list<br>
ercp-dev@xxxxxxxxxxx<br>
</font></tt><a href="https://dev.eclipse.org/mailman/listinfo/ercp-dev"><tt><font size=2>https://dev.eclipse.org/mailman/listinfo/ercp-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<br>]]></content:encoded>
		<pubDate>Tue, 06 Sep 2011 12:32:49 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00188.html</guid>
		<author>rogalski@xxxxxxx (Mark Rogalski)</author>
	</item>


	<item>
		<title>Re: [ercp-dev] eXML problems</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00187.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>It was in fact a mismatch problem with the internal api of the sdk.
I changed the jre to a 1.4 version and it worked smooth.

Cheers,
Andrea




On Mon, Sep 5, 2011 at 10:42 AM, andrea antonello
&lt;andrea.antonello@xxxxxxxxx&gt; wrote:
&gt; Hi, I am trying to convert a dom tree to a string representation and
&gt; am using the following code (or planned to):
&gt;
&gt; StringWriter sw = new StringWriter();
&gt; StreamResult result = new StreamResult(sw);
&gt; DOMSource source = new DOMSource(document);
&gt; trans.transform(source, result);
&gt; String xmlString = sw.toString();
&gt;
&gt; I am getting an exception:
&gt; Exception in thread &quot;main&quot; java.lang.AbstractMethodError:
&gt; org.eclipse.ercp.xml.dom.DocumentImpl.getXmlStandalone()Z
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown
&gt; Source)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
&gt; ...
&gt;
&gt; I can't figure out what might cause it. In the net the suggestion is
&gt; to check xml libs conflicts, but I should not have any other since I
&gt; am using the eRCP SDK.
&gt;
&gt; Best regards,
&gt; Andrea
&gt;

</pre>]]></content:encoded>
		<pubDate>Mon, 05 Sep 2011 09:44:04 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00187.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>
	<item>
		<title>Re: [ercp-dev] first approach and fonts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00186.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>A small update on this (without evident solution, I am afraid).
Reading the comments on the following post:
<a  href="http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html">http://jmj-eclipse.blogspot.com/2009/10/running-ercp-with-phoneme-advanced-on.html</a>

I saw the comment about the same problem I have:

&quot;I was able to resolve the issue with stray characters in the widget
texts (menu, button, etc.) by fixing one method in the eSWT C code. It
seems CVM does not handle Strings the same way J9 does. J9 will
automatically terminate the string with null values when passing
to/from JNI. CVM doesn't seem to do this. The fix was pretty simple,
since the length of the string was provided already.&quot;

Does anyone know if this was addressed in the latest available
eRCP/eSWT or if this could be the problem I am facing?

Best regards,
Andrea


On Wed, Aug 24, 2011 at 6:11 PM, andrea antonello
&lt;andrea.antonello@xxxxxxxxx&gt; wrote:
&gt; Thanks for the reply Mark,
&gt;
&gt;&gt; The eWorkbench is not coded to use any device/user preferences for font size
&gt;&gt; since there is no standard way to obtain this info. So if on your particular
&gt;&gt; device, the fonts are too small, the easiest thing to do is recompile the
&gt;&gt; eWorkbench plugin with your own font size specified.
&gt;
&gt; Ok, so I will have to tweak it, thanks for the pointer.
&gt;
&gt;&gt; You typically see boxes instead of characters when the device font does not
&gt;&gt; support the character being displayed. Some device manufacturers provide
&gt;&gt; additional fonts that you can download to the device. Make the new font the
&gt;&gt; default, and most apps should use it and display the right characters.
&gt;
&gt; That is so strange, because even the default font shows the boxes. I
&gt; also tried to set a Tahoma font, which is supposed to be present for
&gt; sure in Windows Mobile and I get the same error. Also this only
&gt; applies to spaces and striong endings (not \n, simply the end of the
&gt; string, i.e. &quot;COM4&quot; gets &quot;COM4[]&quot; with the brackets being the box). I
&gt; will &#xA0;investigate further.
&gt;
&gt; Best regards,
&gt; Andrea
&gt;
&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt;&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev@xxxxxxxxxxx
&gt;&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;08/24/2011 04:43 AM
&gt;&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;[ercp-dev] first approach and fonts
&gt;&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt;&gt; ________________________________
&gt;&gt;
&gt;&gt;
&gt;&gt; Hi list,
&gt;&gt; I am quite new to the eRCP project and was successful in adding
&gt;&gt; applications to the eWorkbench using the phoneme jvm.
&gt;&gt; So far I am amazed about the possibility to go mobile developing in rcp.
&gt;&gt;
&gt;&gt; Due to the display size (I guess) of the device, the font is &#xA0;way to
&gt;&gt; small to be readable, which is why I supplied custom fonts to the
&gt;&gt; widgets.
&gt;&gt; I could not find a way to do this in an overall way (themes do not
&gt;&gt; seem to be supported). I have 2 main problems:
&gt;&gt; - the eWorkbench parts are still small. Do I have to modify the plugin
&gt;&gt; directly to change the UI font or is there another way?
&gt;&gt; - the texts have strange rectangles [0] instead of the spaces
&gt;&gt;
&gt;&gt; Best regards,
&gt;&gt; Andrea
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; [0] as code 141 in the table here <a  href="http://www.asciitable.it/asciiext.asp">http://www.asciitable.it/asciiext.asp</a>
&gt;&gt; _______________________________________________
&gt;&gt; ercp-dev mailing list
&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; ercp-dev mailing list
&gt;&gt; ercp-dev@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;&gt;
&gt;&gt;
&gt;

</pre>]]></content:encoded>
		<pubDate>Mon, 05 Sep 2011 09:41:07 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00186.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>
	<item>
		<title>[ercp-dev] eXML problems</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00185.html</link>
		<description>Hi, I am trying to convert a dom tree to a string representation and am using the following code (or planned to): StringWriter sw = new StringWriter(); StreamResult result = new StreamResult(sw); DOMSource source = new DOMSource(document); trans.transform(...</description>
		<content:encoded><![CDATA[<pre>Hi, I am trying to convert a dom tree to a string representation and
am using the following code (or planned to):

StringWriter sw = new StringWriter();
StreamResult result = new StreamResult(sw);
DOMSource source = new DOMSource(document);
trans.transform(source, result);
String xmlString = sw.toString();

I am getting an exception:
Exception in thread &quot;main&quot; java.lang.AbstractMethodError:
org.eclipse.ercp.xml.dom.DocumentImpl.getXmlStandalone()Z
	at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown
Source)
	at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
	at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
...

I can't figure out what might cause it. In the net the suggestion is
to check xml libs conflicts, but I should not have any other since I
am using the eRCP SDK.

Best regards,
Andrea

</pre>]]></content:encoded>
		<pubDate>Mon, 05 Sep 2011 08:43:11 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00185.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>


	<item>
		<title>[ercp-dev] how to simplify eUpdate</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00184.html</link>
		<description>Hi all, I am trying to find a way to create a very simplified process of updating an application. To do so I assume to have one single update site available. The RCP book suggests a simple thing like: String usName = &amp;quot;test updatesite&amp;quot;; String usUrl = ;http...</description>
		<content:encoded><![CDATA[<pre>Hi all,
I am trying to find a way to create a very simplified process of
updating an application.
To do so I assume to have one single update site available.

The RCP book suggests a simple thing like:

        String usName = &quot;test updatesite&quot;;
        String usUrl =
&quot;<a  href="http://www.testsite.com/ercp/com.testsite.workbenchapp_updatesite/&quot">http://www.testsite.com/ercp/com.testsite.workbenchapp_updatesite/&quot</a>;;
        UpdateSearchRequest result = new
UpdateSearchRequest(UpdateSearchRequest.createDefaultSiteSearchCategory(),
                new UpdateSearchScope());
        result.addFilter(new BackLevelFilter());
        result.addFilter(new EnvironmentFilter());

        UpdateSearchScope scope = new UpdateSearchScope();
        try {
            URL url = new URL(usUrl);
            scope.addSearchSite(usName, url, null);
            result.setScope(scope);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

and on that searchresult te use of UpdateJob.

UpdateJob is not available in the eRCP, so I am right now trying to
butcher pieces from the org.eclipse.ercp.update plugin in the hope to
make it works.
Since it is getting complexer by every step I take, I wanted to ask if
there is a simpler method to do the update in eRCP.

Thanks, best regards,
Andrea

</pre>]]></content:encoded>
		<pubDate>Mon, 29 Aug 2011 13:06:31 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00184.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>


	<item>
		<title>Re: [ercp-dev] first approach and fonts</title>
		<link>http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00183.html</link>
		<description>Thanks for the reply Mark, Ok, so I will have to tweak it, thanks for the pointer. That is so strange, because even the default font shows the boxes. I also tried to set a Tahoma font, which is supposed to be present for sure in Windows Mobile and I get th...</description>
		<content:encoded><![CDATA[<pre>Thanks for the reply Mark,

&gt; The eWorkbench is not coded to use any device/user preferences for font size
&gt; since there is no standard way to obtain this info. So if on your particular
&gt; device, the fonts are too small, the easiest thing to do is recompile the
&gt; eWorkbench plugin with your own font size specified.

Ok, so I will have to tweak it, thanks for the pointer.

&gt; You typically see boxes instead of characters when the device font does not
&gt; support the character being displayed. Some device manufacturers provide
&gt; additional fonts that you can download to the device. Make the new font the
&gt; default, and most apps should use it and display the right characters.

That is so strange, because even the default font shows the boxes. I
also tried to set a Tahoma font, which is supposed to be present for
sure in Windows Mobile and I get the same error. Also this only
applies to spaces and striong endings (not \n, simply the end of the
string, i.e. &quot;COM4&quot; gets &quot;COM4[]&quot; with the brackets being the box). I
will  investigate further.

Best regards,
Andrea


&gt;
&gt;
&gt;
&gt; From: &#xA0; &#xA0; &#xA0; &#xA0;andrea antonello &lt;andrea.antonello@xxxxxxxxx&gt;
&gt; To: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev@xxxxxxxxxxx
&gt; Date: &#xA0; &#xA0; &#xA0; &#xA0;08/24/2011 04:43 AM
&gt; Subject: &#xA0; &#xA0; &#xA0; &#xA0;[ercp-dev] first approach and fonts
&gt; Sent by: &#xA0; &#xA0; &#xA0; &#xA0;ercp-dev-bounces@xxxxxxxxxxx
&gt; ________________________________
&gt;
&gt;
&gt; Hi list,
&gt; I am quite new to the eRCP project and was successful in adding
&gt; applications to the eWorkbench using the phoneme jvm.
&gt; So far I am amazed about the possibility to go mobile developing in rcp.
&gt;
&gt; Due to the display size (I guess) of the device, the font is &#xA0;way to
&gt; small to be readable, which is why I supplied custom fonts to the
&gt; widgets.
&gt; I could not find a way to do this in an overall way (themes do not
&gt; seem to be supported). I have 2 main problems:
&gt; - the eWorkbench parts are still small. Do I have to modify the plugin
&gt; directly to change the UI font or is there another way?
&gt; - the texts have strange rectangles [0] instead of the spaces
&gt;
&gt; Best regards,
&gt; Andrea
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; [0] as code 141 in the table here <a  href="http://www.asciitable.it/asciiext.asp">http://www.asciitable.it/asciiext.asp</a>
&gt; _______________________________________________
&gt; ercp-dev mailing list
&gt; ercp-dev@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;
&gt;
&gt; _______________________________________________
&gt; ercp-dev mailing list
&gt; ercp-dev@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/ercp-dev">https://dev.eclipse.org/mailman/listinfo/ercp-dev</a>
&gt;
&gt;

</pre>]]></content:encoded>
		<pubDate>Wed, 24 Aug 2011 16:11:33 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/ercp-dev/msg00183.html</guid>
		<author>andrea.antonello@xxxxxxx (andrea antonello)</author>
	</item>

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

