Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove Compartment's top border line
Remove Compartment's top border line [message #194133] Mon, 23 June 2008 13:27 Go to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello,

The compartment which is inside a component. And compartment created using
ResizableCompartmentFigure. Now inside compartment showing its only top
border line.

How can made invisible or transparent?.

Thanks In Advance.
Nagesh
Re: Remove Compartment's top border line [message #194770 is a reply to message #194133] Fri, 27 June 2008 09:16 Go to previous messageGo to next message
Anjali is currently offline AnjaliFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,
I was getting the same problem.You can remove compartment's border line
For this u need to comment the
createcontents method of ur compartment figure and write this line
private WrapLabel fFigureContainerNameFigure = new WrapLabel("");
in ur container figure.Hope this will work.
Re: Remove Compartment's top border line [message #194897 is a reply to message #194770] Mon, 30 June 2008 06:28 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello Anjali,

Thanks for the solution. I am not able find createcontents function in my
compartment editpart. And my compartment uses ResizableCompartmentFigure.
So can you send me your compartmenteditpart code, so that i can use the
same.

Thanks In Advance.
Nagesh
Re: Remove Compartment's top border line [message #195921 is a reply to message #194897] Mon, 07 July 2008 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi!

It's a bit late to answer your question but in case someone is searching
for the same feature there is another method:

In the createFigure() method in your compartment class add:

yourResizableCompartmentFigureInstance.setBorder(null);

Regards
Re: Remove Compartment's top border line [message #195973 is a reply to message #195921] Mon, 07 July 2008 12:20 Go to previous message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Thanks Mous, it's working.........

Mous wrote:

> Hi!

> It's a bit late to answer your question but in case someone is searching
> for the same feature there is another method:

> In the createFigure() method in your compartment class add:

> yourResizableCompartmentFigureInstance.setBorder(null);

> Regards
Previous Topic:How to remove elements from non-synchronized diagrams
Next Topic:How to make figure's foreground line (boundry line) invisible?
Goto Forum:
  


Current Time: Fri Apr 26 01:09:23 GMT 2024

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

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

Back to the top