Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Node borders
Node borders [message #163522] Fri, 30 November 2007 16:30 Go to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
I have a large gmfgen I cannot re-build from merging the graph tool ecc..
because a lot of numbers we've set gets changed randomly, but I need to
give to an element a custom border, so I can set from property sheet the
line width and get the border changed that way, programmatically.
I read some post regarding custom borders all of them telling to change
the gmfgraph file.
Since I cannot do this, what I've gotta do in the gmfgen (I can edit
gmfgen and regenerate, editparts numbering is defined in here) to have a
custom border? I cannot find any property looking similar to this.
If it's not possible doin this from model, Is it possible to do it somehow
by code?
Thanks :)

Paolo Russian
Re: Node borders [message #163687 is a reply to message #163522] Mon, 03 December 2007 13:02 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

There are two options:

1. Find editpart in question and there should be a method that creates
the figure. Add '@generated NOT' to it's javadoc and modify the code to
use custom border.

2. Create a custom figure class that uses required border and in gmfgen
model replace existing viewmap with FigureViewmap - it allows to specify
qualified figure class name.

Paolo Russian wrote:
> I have a large gmfgen I cannot re-build from merging the graph tool
> ecc.. because a lot of numbers we've set gets changed randomly, but I
> need to give to an element a custom border, so I can set from property
> sheet the line width and get the border changed that way, programmatically.
> I read some post regarding custom borders all of them telling to change
> the gmfgraph file. Since I cannot do this, what I've gotta do in the
> gmfgen (I can edit gmfgen and regenerate, editparts numbering is defined
> in here) to have a custom border? I cannot find any property looking
> similar to this.
> If it's not possible doin this from model, Is it possible to do it
> somehow by code?
> Thanks :)
>
> Paolo Russian
>
Previous Topic:Link between labels
Next Topic:GMF generated code
Goto Forum:
  


Current Time: Fri Apr 26 16:33:58 GMT 2024

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

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

Back to the top