[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Unwanted Horizontal Rule Above a Compartment (Correction!)

Hi Billy,

I had the same problem and solved it this way:

Go to the createFigure Method of your CompartmentEditPart where the ruler is painted and add the following line to it:

result.setBorder(null);

This horizonztal rule is set since the M4 release in the constructor of the ResizableCompartmentFigure at the last line (113):

setBorder(new OneLineBorder());

By setting it back to null it disappears.

Hope that will help,
Christian.

webwhysguy schrieb:
Hi,

Sorry, but I was just a bit off on the description of my figure and it's compartments. The "Files" Rectangle is the "File" compartment. I've updated my description and image. Sorry for the confusion!
- Within a "Files" compartment I have a "Files" rectangle (no fill,
(no fill, line width=0).
- The files rectangle is also the "File" compartment and is
composed of a "Files" label (w/icon and fixed text of "Files")
- Within the "File" compartment is a list of "File" feature labels.


Take Care,
- Billy




"webwhysguy" <webwhysguy@xxxxxxxxx> wrote in message news:ep8of0$8ua$1@xxxxxxxxxxxxxxxxxxxx
Greetings,

I'm having trouble getting rid of an unwanted horizontal rule above a
compartment.  I've put together a graphic (see below), but here is a text
description of the layout as well:
    - Within a "Files" compartment I have a "Files" rectangle (no fill,
line width=0).
    - The files rectangle is composed of a "Files" label (w/icon and fixed
text of "Files") and a "File" compartment that
       is actually a Diagram Label.
    - Within the File compartment is a list of "File" nodes which are
feature labels.

For some reason I am getting a horizontal rule just above the first file in
the "File" compartment. The rule grows as the compartment grows. The
horizontal rule is just visual clutter for my purposes, so I want to get rid
of it. I've tried working with all of the properties I can think of for the
Rectangle and labels, but no success. Any suggestions would be greatly
appreciated.


Thanks in advance!

- Billy