Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Cannot show context button when pictogram element on the right edge of diagram editor.
Cannot show context button when pictogram element on the right edge of diagram editor. [message #1740875] Fri, 19 August 2016 09:22 Go to next message
Zhenchao Bing is currently offline Zhenchao BingFriend
Messages: 3
Registered: August 2016
Junior Member
Hi there,

I cannot choose context button when pictogram element on the right edge of diagram editor.

Please check result at the attachment.

Regards,
Zhenchao
  • Attachment: Picture1.png
    (Size: 47.06KB, Downloaded 207 times)

[Updated on: Mon, 22 August 2016 04:47]

Report message to a moderator

Re: Cannot show context button when pictogram element on the right edge of diagram editor. [message #1741114 is a reply to message #1740875] Tue, 23 August 2016 07:55 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1933
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Zhenchao,

this is a really annoying issue we were not able to get rid off. The reason of this is deeper inside the GEF and Draw2D coding and even in layers underneath. It was not possible to overcome this with official APIs thus fixing was not possible.

What we have introduced is a deprecated method in the tool behavior provider (getDiagramScrollingBehavior) that would allow to switch to a mode that will always show scrollbars, which is of couse only a workaround. Unfortunately it relies on rewriting internal functionality from the frameworks Graphiti uses. Therefore we cannot guarantee that this will continue to work in the futire as well and therefor we deprecated this functionality.

Other options to overcome this are as well not really nice, an idea would be to define some invisible shapes on the diagram and place them as far outside in the diagram so that they will enable the scrollbars and the context buttons can appear without creating them.

Sorry for not haveing a better answer,
Michael
Re: Cannot show context button when pictogram element on the right edge of diagram editor. [message #1741259 is a reply to message #1741114] Wed, 24 August 2016 08:55 Go to previous message
Zhenchao Bing is currently offline Zhenchao BingFriend
Messages: 3
Registered: August 2016
Junior Member
Hi Michael,

Thank you for your reply.

Yes. Finally, I implemented the second suggestion.

Regards,
Zhenchao
Previous Topic:DefaultConnectionEditPolicy not respecting scroll?
Next Topic:getSingleClickFeature of DefaultTollBehaviorProvider not triggered
Goto Forum:
  


Current Time: Tue Dec 10 20:46:56 GMT 2024

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

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

Back to the top