Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 203358

Summary: Problem with scrollbars in a FigureCanvas
Product: [Tools] GEF Reporter: Joseph Remes <joe.remes>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Joseph Remes CLA 2007-09-13 16:32:11 EDT
Build ID: I20070625-1500

Steps To Reproduce:
I am developing a gui painter and am having great difficulties with the scrollbars on a FigureCanvas. In particular I cannot seem to get them to appear and disappear when I think they should.

The outermost object is a org.eclipse.swt.widgets.Composite which is part of a org.eclipse.ui.part.MultiPageEditorPart
Embedded in this I have a org.eclipse.swt.widgets.Canvas which represents the surface to be painted on. It is of a fixed size in pixels set by the user in a dialog.

There will be times when the outer Composite is not large enough to show the entire Canvas. That is when I need the scroll bars.

The Canvas creates my extension of an org.eclipse.gef.ui.parts.GraphicalEditor and then calls createGraphicalViewer on it passing itself in as the argument.
My GraphicalEditor overrides createGraphicalViewer and creates a org.eclipse.gef.ui.rulers.RulerComposite (My users like the rulers) which is then passed to super.createGraphicalViewer. There follows some link up calls etc.

So it is all working fairly well /*except*/ when the user shrinks the overall size of the Eclipse window and that outermost Composite becomes smaller than the Canvas.
I have been trying for days to find the magic combination of things to do to get the scroll bars to appear, but I keep getting inconsistent results.

I have begun to think that there is a bug in this system but I am not sure. If I am missing something please tell me.



More information:
Comment 1 Alexander Nyßen CLA 2011-09-27 17:34:26 EDT
Well, this does not sound as a bug report, so I am resolving it as invalid. If you are still facing the problem, please ask in the forum, but after 4 years you probably have either solved the issue or given up long ago. Sorry for the late response however.