Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem in Using GridLayout Patch for Figures
Problem in Using GridLayout Patch for Figures [message #103452] Tue, 13 February 2007 03:19 Go to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Friends,

I set the GridLayout (Patch) for the parent figure and GridLayoutData
for its children, but the children added is shown outside the parent,
only as a label.

I am using the GridLayout Patch, got from the following link:

https://bugs.eclipse.org/bugs/attachment.cgi?id=45524&ac tion=diff


Any idea Thanks and Regards biju
Re: Problem in Using GridLayout Patch for Figures [message #104868 is a reply to message #103452] Mon, 19 February 2007 00:52 Go to previous message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi friends,

The GridLayout? Problem is resolved:

The problem was in the layout() method of GridLayout class , where a
type casting to GridLayoutData was performed without checking the type.
Now the type casting is done only after type checking as follows:

Dimension layout(IFigure container, boolean move, int x, int y, int
width,int height, boolean flushCache) {
.................................................
IFigure child = (IFigure) children.get(i);
Object obj=getConstraint(child);
GridLayoutData data = null;
if(obj instanceof GridLayoutData){
data = (GridLayoutData) obj;
}
..................................................
}


Regards biju

biju wrote:
> Hi Friends,
>
> I set the GridLayout (Patch) for the parent figure and
> GridLayoutData for its children, but the children added is shown outside
> the parent, only as a label.
>
> I am using the GridLayout Patch, got from the following link:
>
> https://bugs.eclipse.org/bugs/attachment.cgi?id=45524&ac tion=diff
>
>
> Any idea Thanks and Regards biju
Previous Topic:Custom Anchor, Custom Layout, Custom Polygon (!) and file reopen
Next Topic:How to disable deleting/creating nodes/connections in compartment?
Goto Forum:
  


Current Time: Wed Jul 16 10:45:21 EDT 2025

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

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

Back to the top