Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to avoid scrollbars
How to avoid scrollbars [message #229981] Wed, 13 May 2009 11:04 Go to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello again,
I need a fixed editor panel w/o possibility to scroll or resize.
In which class i have to do mofications ?

Greets
Patrick
Re: How to avoid scrollbars [message #230148 is a reply to message #229981] Wed, 13 May 2009 15:06 Go to previous message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
I found a way to remove the srollbar of the EditorPart in a refreshBounds
method of a node edit part:

Object xx = getParent();
if (xx instanceof SystemEditPart)
{
SystemEditPart pa = (SystemEditPart) xx;
EditPart ep = pa.getParent();
FigureCanvas c = (FigureCanvas) ep.getRoot().getViewer().getControl();
c.setScrollBarVisibility(org.eclipse.draw2d.FigureCanvas.NEV ER);
}

But probaly i should insert the code at a better place ;)


Patrick Schmitt wrote:

> Hello again,
> I need a fixed editor panel w/o possibility to scroll or resize.
> In which class i have to do mofications ?

> Greets
> Patrick
Previous Topic:is it possible to make label invisible?
Next Topic:Customizing diagram menus & perspectives
Goto Forum:
  


Current Time: Fri Sep 20 12:21:21 GMT 2024

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

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

Back to the top