|
Re: Problem in Using GridLayout Patch for Figures [message #104868 is a reply to message #103452] |
Mon, 19 February 2007 00:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.22521 seconds