Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/510970/#msg_510970
Ben Wecker2010-01-29T11:19:36-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/511254/#msg_511254
> The title pretty much says it. I have a (custom subclass of)
> GraphicalEditorWithFlyoutPalette that has scroll bars, because the
> figure inside it is too large. How can I remove the scrollbars.
> Obviously the default graphical viewer for
> GraphicalEditorWithFlyoutPalette is always a ScrollingGraphicalViewer,
> overwriting this leads to exceptions.
Presumably you tried over-riding the following method in your editor?:
protected void createGraphicalViewer(Composite parent);]]>h10550712010-01-31T21:42:47-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513232/#msg_513232
The best way would be...
still if your figure is too large the result will not be viewable...]]>Vijay Raj2010-02-09T13:02:27-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513300/#msg_513300
Any idea how to remove the scroll bars, but with having the Figure (containing a large image) still been drawn?]]>Ben Wecker2010-02-09T17:02:21-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513311/#msg_513311
> In fact, I tried to override configureGraphicalViewer(). I don't quite
> get the difference between create..., initialize... and
> configureGraphicalViewer(). I added the line suggested by Philipp,
> however my figure is not shown at all any more. It is indeed big, but is
> ok, if it is shown only partially. By the way, I have a
> ScalableFreeformRootEditPart
> Any idea how to remove the scroll bars, but with having the Figure
> (containing a large image) still been drawn?
When I said to over-ride createGraphicalViewer(Composite parent) in your
editor I meant like this:
ScalableFreeformRootEditPart also has a getZoomManager method...
]]>Vijay Raj2010-02-10T04:03:48-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513504/#msg_513504
> Quote:
>> When I said to over-ride createGraphicalViewer(Composite parent) in
>> your editor I meant like this:
>>
>> protected void createGraphicalViewer(Composite parent) {
>> GraphicalViewer viewer = new GraphicalViewerImpl();
>> viewer.createControl(parent);
>> setGraphicalViewer(viewer);
>> configureGraphicalViewer();
>> hookGraphicalViewer();
>> initializeGraphicalViewer();
>> }
>>
>> When I add that to my Editor I get no scroll bars.
>
>
> Does it also enshure that the figure will be scaled down to fit the
> visible area...??
>
No. But the original poster said "...but is ok, if it is shown only
partially."]]>h10550712010-02-10T12:31:29-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513532/#msg_513532
Ben Wecker2010-02-10T14:08:31-00:00Re: GraphicalEditorWithFlyoutPalette without scroll bars
https://www.eclipse.org/forums/index.php/mv/msg/161658/513620/#msg_513620
Quote:
In fact, I tried to override configureGraphicalViewer(). I don't quite get the difference between create..., initialize... and configureGraphicalViewer(). I added the line suggested by Philipp, however my figure is not shown at all any more. It is indeed big, but is ok, if it is shown only partially. By the way, I have a ScalableFreeformRootEditPart
Any idea how to remove the scroll bars, but with having the Figure (containing a large image) still been drawn?