Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » InlineFlow.setBorder not accepting null argument
InlineFlow.setBorder not accepting null argument [message #210103] Wed, 22 February 2006 16:34 Go to next message
Eclipse UserFriend
Originally posted by: andrew_NOSPAM_.eisenberg.as

The comment for the method InlineFlow.setBorder says that passing in a null
value for the new border is valid. However the code for that method is:

public void setBorder(Border border) {
if (border instanceof FlowBorder)
super.setBorder(border);
else
throw new RuntimeException("Border must be an instance of FlowBorder");
}

This code throws an error when passed a null argument.

Is this a bug? I would really like to remove a border of a TextFlow, but I
can't do this as it currently stands.

thanks,
--a
Re: InlineFlow.setBorder not accepting null argument [message #210133 is a reply to message #210103] Wed, 22 February 2006 20:58 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Open a bugzilla. We can fix this in 3.2.

"Andrew Eisenberg" <andrew_NOSPAM_@eisenberg.as> wrote in message
news:dti3re$l04$1@utils.eclipse.org...
> The comment for the method InlineFlow.setBorder says that passing in a
> null value for the new border is valid. However the code for that method
> is:
>
> public void setBorder(Border border) {
> if (border instanceof FlowBorder)
> super.setBorder(border);
> else
> throw new RuntimeException("Border must be an instance of
> FlowBorder");
> }
>
> This code throws an error when passed a null argument.
>
> Is this a bug? I would really like to remove a border of a TextFlow, but
> I can't do this as it currently stands.
>
> thanks,
> --a
Previous Topic:Connection navigation
Next Topic:books on GEF?
Goto Forum:
  


Current Time: Tue Jan 14 16:19:26 GMT 2025

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

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

Back to the top