Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hide Scrollbar from the compartment
Hide Scrollbar from the compartment [message #193618] Thu, 19 June 2008 10:41 Go to next message
Eclipse UserFriend
Originally posted by:

Hi all,
I am using eclipse 3.3 and i am working on gmf.
In MindMap Example , when I drag the thread in compartment then
vertical and horizontal scrollbar is appearing in threadcompartment
figure.I want to remove this scrollbar from the compartment. please
suggest me How do I achieve this?

Thanks in advance

Gaurav Dubey
Re: Hide Scrollbar from the compartment [message #195748 is a reply to message #193618] Fri, 04 July 2008 06:24 Go to previous message
Anjali is currently offline AnjaliFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Gaurav,
You can hide the vertical and Horizontal scrrollbar. For this what
u have to do , in org.eclipse.gmf.runtime.diagram.ui.figures packege there
is Shapecompartmentfigure and ResizableCompartmentfigure class.
In Shapecompartmentfigure's configurefigure() method there is line
remove this line and add

And in ResizableCompartmentfigure's AnimatableScrollPane() method there
is line

scrollPane.setVerticalScrollBarVisibility(ScrollPane.AUTOMAT IC);
scrollPane.setHorizontalScrollBarVisibility(ScrollPane.NEVER );

Remove this line and add

I used the same and able to Hide scrollbar

Previous Topic:Initializing nodes on a diagram
Next Topic:Cannot delete connection when specified field in the property is filled in with content
Goto Forum:

Current Time: Sat Jun 06 11:18:53 GMT 2020

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

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

Back to the top