[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How change node figure and diagram figure ???

Hi Marco,

ok I think I understand your problem now. You need to have compartments that contain other figures, right? And your problem now is, that the element in the other element is overlappting your parent element.

However, I don't know how to change the behavoiur of that in the already generated code. Did you do that tutorial for this?


http://wiki.eclipse.org/GMF_Tutorial_Part_2#Validation

This tutorial shows how to create Compartments that contain other elements from scratch. Basically it sounds to me, that your compartment is not working properly. That may be caused by a wrong layout on your parent? For example: My compartments weren't working when I didn't use a Flow Layout on the parent element that supported the compartment.

Also: If you want to have the compartment act like a normal canvas you have to disable the list option in the xxx.gmfgen file.

Well. This is how I created my compartments at least. If you use the list layout option, then you will at least not get the problem of overlapping components, because they will be arrange automatically in a list style by gmf. However, even without the list, you should not have the problem. I was able to just perform a arrange all on my compartment to arrange my components properly within it and everything is visible.

To achieve that I pretty much followed the mindmap tutorial I linked in above.

I hope that will help you. This is pretty much the most I know about compartments and the most I can diagnose from here.

when created properly you should have at least a XXX[Compartmentname]EditPart and a XXXEditPart. The compartment is a child of the actual element.

Best regards,
Artur

marco wrote:

hello artur

my problem is this.
I managed to use my figures to draw the diagram.
hours but when I have a class that contains other, when I create the figure A and inside the fibura B, B can not see because it is covered by A.
I think the solution is to create the transparent figure but do not know how.
Is there any other solutions that you know tell me.
hello mark