[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [bpel-dev] "Format" in editor
|
Hi Simon,
Actually WSDLElementImpl.forceNiceInsertBefore() takes care about indentation. I guess we can use the same technique.
Thanks,
Oleg.
-----Original Message-----
From: bpel-dev-bounces@xxxxxxxxxxx [mailto:bpel-dev-bounces@xxxxxxxxxxx] On Behalf Of Simon D Moser
Sent: Tuesday, March 25, 2008 8:32 PM
To: BPEL Designer project developer discussions.
Cc: BPEL Designer project developer discussions.; bpel-dev-bounces@xxxxxxxxxxx
Subject: Re: [bpel-dev] "Format" in editor
Go for it! Very useful idea!
In general, one thing that struck me the other day is: When I model
something graphically, and then swithc to the source tab, the XML of
whatever I inserted is just one big huge line of text. I have to manually
run format() to make this readable.
I believe that the WSDL/XSD editors source vies is a little smarter in that
area. I see two possible solutions:
a.) Every time we save, we do a "auto-format"
b.) We find a way to magically insert indentations/line feeds etc. right
when updating the DOM tree.
Opinions?
Cheers
Simon
Simon Moser, M.Eng.
Websphere Integration Mail: IBM Deutschland (Embedded
Developer Development smoser@de.i Entwicklung GmbH image
Team Lead BPEL Editor bm.com Vorsitzender des moved to
Dept. 4722, Bldg. Phone: Aufsichtsrats: Martin file:
71032-01, Room 086 +49-7031-16 Jetter pic16162.g
Websphere Solutions -4304 Geschäftsführung: if)I'm
and Services Fax: Herbert Kircher speaking
IBM Deutschland +49-7031-16 Sitz der Gesellschaft: at
Entwicklung GmbH -4890 Böblingen EclipseCon
Schönaicherstr. 220, Registergericht: 2008
D - 71032 Boeblingen Amtsgericht Stuttgart,
HRB 243294
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"Danilov, Oleg V" <oleg.v.danilov@xxxxxxxxx> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"BPEL Designer project developer discussions." <bpel-dev@xxxxxxxxxxx> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|25.03.2008 16:49 |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|[bpel-dev] "Format" in editor |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
Hi all,
When editing the bpel, a user can right click to pretty-print the bpel
source code. If the bpel source code contains a <literal> it will be
formatted as well. AFAIK it can cause problems because the spaces are
significant inside literal. We can avoid this inserting
xml:space="preserve" in ElementFactory.createLiteral(). Any objections?
Thanks,
Oleg.
--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev
--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.