Three way EditPart overlapping contained in a top node [message #122584] |
Mon, 30 April 2007 11:29 |
Eclipse User |
|
|
|
I have a container that must overlap... And I have read this:
"How to make DefaultSizeNodeFigure transparent if two figure overlapped"
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg05430.html
Ok... I am using GMF 2.0 M6 and I have those GUI, Controller and Methods
EditParts
clicking-trough; I have configured each EditPart with a Layer figure, as
stated in the news article
and that makes the click-trought trick.
The problem? As you can see in the provided schema the Container is the
top node...
The top node has an XYLayoutEditPolicy and I want each of the three
containers to adapt to the
top node, stick to it and dissapear completely.
I think that I can trick it a bit in the XYLayoutEditPolicy to adjust the
GUI, Controller and Methods
to the Container bounds. But I do not think about that as being the right
way to do it.
The problem with the GMF's top node is that it is a bit complex and I do
not know where or how to patch it.
A side problem is that the handles keep showing in the GUI, Controller and
Methods EditParts, even when
I override the paintFigure(), paint*() methods in the
DefaultSizeNodeFigure or the Layer Figure.
Any help will be aprecciated.
Thanks.
------------->8------------->8------------->8------------- >8------------->8-------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="MyMethod"/>
<xs:complexType name="MyButton"/>
<xs:complexType name="MyObject"/>
<xs:complexType name="Methods">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="method"
type="MyMethod"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GUI">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="button"
type="MyButton"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Controller">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="object"
type="MyObject"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Container">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="methods" type="Methods"/>
<xs:element maxOccurs="1" minOccurs="1" name="gui" type="GUI"/>
<xs:element maxOccurs="1" minOccurs="1" name="controller"
type="Controller"/>
</xs:sequence>
</xs:complexType>
<xs:element name="container" type="Container"/>
</xs:schema>
|
|
|
Powered by
FUDForum. Page generated in 0.11539 seconds