|
|
|
|
|
|
Re: [XPAND] how to derive the interface implement in xpand [message #505478 is a reply to message #505450] |
Thu, 31 December 2009 07:04 |
|
This is a multi-part message in MIME format.
--------------070806050704030203060406
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Am 30.12.09 21:34, schrieb Wafi Dahman:
> it works but it displays the brackets [, ]
> do you know how to ignore them?
>
>
> thanx for your patience and help.
if you only want to remove the brackets, its easy using Xtend:
String withoutBrackets (String s) :
s.replaceAll("[\\[\\]]","");
but as Christian told you the correct way is using a FOREACH construct
I'm using the withoutBrackets() extension per ex. while logging the
content of a list
--
ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
--------------070806050704030203060406
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Am 30.12.09 21:34, schrieb Wafi Dahman:
<blockquote cite="mid:hhgdgj$et2$1@build.eclipse.org" type="cite">it
works but it displays the brackets [, ]
<br>
do you know how to ignore them?
<br>
<br>
<br>
thanx for your patience and help.
<br>
</blockquote>
if you only want to remove the brackets, its easy using Xtend:<br>
<br>
String withoutBrackets (String s) :<br>
s.replaceAll("[\\[\\]]","");<br>
<br>
but as Christian told you the correct way is using a FOREACH construct<br>
<br>
I'm using the withoutBrackets() extension per ex. while logging the
content of a list<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0cm;"> <font ,="" color="#808080"
face="Verdana, sans-serif"> <font size="4">ekke (ekkehard gentz)<br>
</font> <font size="3"> independent software-architect<br>
senior erp-consultant<br>
</font> <font size="2">eclipse | osgi | equinox | mdsd | oaw | emf |
uml<br>
max-josefs-platz 30, D-83022 rosenheim, germany<br>
<a class="moz-txt-link-freetext" href="mailto:ekke@ekkes-corner.org">mailto:ekke@ekkes-corner.org</a><br>
homepage (de): <a class="moz-txt-link-freetext" href="http://gentz-software.de">http://gentz-software.de</a><br>
blog (en): <a class="moz-txt-link-freetext" href="http://ekkes-corner.org">http://ekkes-corner.org</a><br>
twitter: @ekkescorner<br>
skype: ekkes-corner<br>
</font> <font size="1"> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID:
DE189929490<br>
</font> </font> </p>
</div>
</body>
</html>
--------------070806050704030203060406--
ekke
independent software architect
blog: http://ekkes-corner.org
twitter: @ekkescorner
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03980 seconds