Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » SWTGraphics & Rigth To Left applications
SWTGraphics & Rigth To Left applications [message #142585] Tue, 13 July 2004 16:00 Go to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Hi,

By default, the GC is drawing all controls in LTR mode. I would like to
change that in LogicEditor exampleto display text in RTL (Rigth To Left)
inside the figures.
I have found it could be done by using SWTGraphics(GC gc) with a GC with
the rigth style (SWT.RIGTH_TO_LEFT).

I don't known where I am supposed to modify the code to do that.

Does anyone have an idea ?

Stephane.
Re: SWTGraphics & Rigth To Left applications [message #142605 is a reply to message #142585] Tue, 13 July 2004 18:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I suppose the desired way to do this would be to set the Canvas in RTOL
mode, and have the graphics simply pickup this orientation. Can this be
done on a Canvas? Open a feature request in bugzilla.

"Stephane" <stephane.fournier@netcourrier.com> wrote in message
news:cd10um$4gv$1@eclipse.org...
> Hi,
>
> By default, the GC is drawing all controls in LTR mode. I would like to
> change that in LogicEditor exampleto display text in RTL (Rigth To Left)
> inside the figures.
> I have found it could be done by using SWTGraphics(GC gc) with a GC with
> the rigth style (SWT.RIGTH_TO_LEFT).
>
> I don't known where I am supposed to modify the code to do that.
>
> Does anyone have an idea ?
>
> Stephane.
>
Re: SWTGraphics & Rigth To Left applications [message #142953 is a reply to message #142605] Fri, 16 July 2004 06:56 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Yes, you are rigth but how can I configure the Canvas from Gef or Draw2D
API ?
I'd appreciate if you could give me an example based on the LogicalExample.

Stephane.


Randy Hudson wrote:

> I suppose the desired way to do this would be to set the Canvas in RTOL
> mode, and have the graphics simply pickup this orientation. Can this be
> done on a Canvas? Open a feature request in bugzilla.

> "Stephane" <stephane.fournier@netcourrier.com> wrote in message
> news:cd10um$4gv$1@eclipse.org...
> > Hi,
> >
> > By default, the GC is drawing all controls in LTR mode. I would like to
> > change that in LogicEditor exampleto display text in RTL (Rigth To Left)
> > inside the figures.
> > I have found it could be done by using SWTGraphics(GC gc) with a GC with
> > the rigth style (SWT.RIGTH_TO_LEFT).
> >
> > I don't known where I am supposed to modify the code to do that.
> >
> > Does anyone have an idea ?
> >
> > Stephane.
> >
Re: SWTGraphics & Rigth To Left applications [message #142963 is a reply to message #142953] Fri, 16 July 2004 08:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Stephane wrote:
> Yes, you are rigth but how can I configure the Canvas from Gef or
> Draw2D API ?

I suggest looking at IWorkbenchPart#createPartControl in you editor class.
Then you'll see that you have to extend your EditPartViewer
(EditPartViewer#createControl).

Cu, Gunnar
Re: SWTGraphics & Rigth To Left applications [message #143030 is a reply to message #142953] Fri, 16 July 2004 16:44 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

RTOL is new in SWT 3.0 and we didn't have time to investigate what we would
need to do to expose it in GEF.
You'll have to open a feature request.

"Stephane" <stephane.fournier@netcourrier.com> wrote in message
news:cd7u65$4jf$1@eclipse.org...
> Yes, you are rigth but how can I configure the Canvas from Gef or Draw2D
> API ?
> I'd appreciate if you could give me an example based on the
LogicalExample.
>
> Stephane.
>
>
> Randy Hudson wrote:
>
> > I suppose the desired way to do this would be to set the Canvas in RTOL
> > mode, and have the graphics simply pickup this orientation. Can this be
> > done on a Canvas? Open a feature request in bugzilla.
>
> > "Stephane" <stephane.fournier@netcourrier.com> wrote in message
> > news:cd10um$4gv$1@eclipse.org...
> > > Hi,
> > >
> > > By default, the GC is drawing all controls in LTR mode. I would like
to
> > > change that in LogicEditor exampleto display text in RTL (Rigth To
Left)
> > > inside the figures.
> > > I have found it could be done by using SWTGraphics(GC gc) with a GC
with
> > > the rigth style (SWT.RIGTH_TO_LEFT).
> > >
> > > I don't known where I am supposed to modify the code to do that.
> > >
> > > Does anyone have an idea ?
> > >
> > > Stephane.
> > >
>
>
Previous Topic:Text wrap
Next Topic:Arcs between connections
Goto Forum:
  


Current Time: Thu Apr 18 09:54:07 GMT 2024

Powered by FUDForum. Page generated in 0.02183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top