Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove navigation bar from compartment
Remove navigation bar from compartment [message #512106] Wed, 03 February 2010 17:49 Go to next message
Eclipse UserFriend
Hi,

I have compartment set as non-list style but when I add nodes to the compartment I get a navigation bar.

How can I remove the navigation bar from a compartment?

Thanks,

F
Re: Remove navigation bar from compartment [message #512235 is a reply to message #512106] Thu, 04 February 2010 08:25 Go to previous message
Eclipse UserFriend
Solution:

In ???CompartmentXXXEditPart edit:


/**
* @ NOT generated
*/
public IFigure createFigure() {
ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
.createFigure();
result.setTitleVisibility(false);

//Added to remove the scroll bars of the compartment
ScrollPane sp = result.getScrollPane();
sp.setEnabled(false);
sp.setScrollBarVisibility(ScrollPane.NEVER);

return result;
}
Previous Topic:Where can I find Ecore diagram editor example?
Next Topic:Using Different Images for Attributes in a Node
Goto Forum:
  


Current Time: Sat Jul 05 03:27:56 EDT 2025

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

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

Back to the top