Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » TextAlignment Actions never enabled.
TextAlignment Actions never enabled. [message #222929] Fri, 27 March 2009 09:37 Go to next message
Robert Moloney is currently offline Robert MoloneyFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

Under what conditions are the TextAlignment actions enabled?

Cheers

Rob
--
Re: TextAlignment Actions never enabled. [message #222969 is a reply to message #222929] Fri, 27 March 2009 13:35 Go to previous messageGo to next message
Thomas Beyer is currently offline Thomas BeyerFriend
Messages: 47
Registered: July 2009
Member
Hi Rob,

the textalignment will be enabled, once your node has the notational
style "TextStyle" with the EAttribute TextAlignment attached.
In your diagram file (when viewed as text), the corresponding node must
have a child something like:
<styles xmi:type="notation:TextStyle" xmi:id="_2kDyMxrREd60ItWzwNdnng"
textAlignment="Right"/>

HTH & regards
Thomas


Am 27.03.2009 10:37, schrieb Robert Moloney:
> Hi,
>
> Under what conditions are the TextAlignment actions enabled?
>
> Cheers
>
> Rob
Re: TextAlignment Actions never enabled. [message #223860 is a reply to message #222969] Wed, 01 April 2009 11:33 Go to previous message
Robert Moloney is currently offline Robert MoloneyFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Thomas,

Thanks for that. I was able to add TextStyle through the XXXViewFactory
for the Editparts. It looks like GMF Note has Text alignment enable by
default. The only problem is that you need multiple lines for Text
Alignmemt to work but I can only enter single lines in the Note edit
part. To get multiple lines you need to paste text from a text editor.

Cheers

Rob



Thomas Beyer wrote:

> Hi Rob,
>
> the textalignment will be enabled, once your node has the notational
> style "TextStyle" with the EAttribute TextAlignment attached. In
> your diagram file (when viewed as text), the corresponding node must
> have a child something like: <styles xmi:type="notation:TextStyle"
> xmi:id="_2kDyMxrREd60ItWzwNdnng" textAlignment="Right"/>
>
> HTH & regards
> Thomas
>
>
> Am 27.03.2009 10:37, schrieb Robert Moloney:
> > Hi,
> >
> > Under what conditions are the TextAlignment actions enabled?
> >
> > Cheers
> >
> > Rob



--
Previous Topic:Probleme avec OCL
Next Topic:Howto intercept deletion of figures
Goto Forum:
  


Current Time: Tue Apr 23 14:39:57 GMT 2024

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

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

Back to the top