Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove navigation bar from compartment
Remove navigation bar from compartment [message #512106] Wed, 03 February 2010 22:49 Go to next message
Fred  is currently offline Fred Friend
Messages: 14
Registered: November 2009
Junior Member
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 13:25 Go to previous message
Fred  is currently offline Fred Friend
Messages: 14
Registered: November 2009
Junior Member
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: Tue Apr 20 08:04:47 GMT 2021

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

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

Back to the top