Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Miniature view implementation for Graphiti Diagram Editor(Miniature view implementation for Graphiti Diagram Editor)
Miniature view implementation for Graphiti Diagram Editor [message #968044] Fri, 02 November 2012 02:50 Go to next message
Anit Nair is currently offline Anit Nair
Messages: 6
Registered: October 2012
Junior Member
Hi,

I want to implement miniature view for graphical editor in our application.
I am not able to find any help topics related to it. Is the miniature view support available as part of the Graphiti framework.

Could someone please provide some useful link for the topic.

Regards,
Anit
Re: Miniature view implementation for Graphiti Diagram Editor [message #968077 is a reply to message #968044] Fri, 02 November 2012 03:18 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1527
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Anit,

there is such a view as part of the example.commons plugin, see
http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/tree/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/outline/GraphicsEditorOutlinePage.java
method createThumbnailViewer() as as starting point.

Michael
Re: Miniature view implementation for Graphiti Diagram Editor [message #968414 is a reply to message #968077] Fri, 02 November 2012 08:48 Go to previous messageGo to next message
Anit Nair is currently offline Anit Nair
Messages: 6
Registered: October 2012
Junior Member
Michael,

thanks for the information, it was really helpful.

There is a new problem i find my self in now. In my application we have two graphical editors embedded as part of the Multipage editor.

Now, after getting the thumbnail/miniature view for the editor, it does not refresh on
page change.

Regards,
Anit
Re: Miniature view implementation for Graphiti Diagram Editor [message #968895 is a reply to message #968414] Fri, 02 November 2012 17:03 Go to previous message
Hallvard Traetteberg is currently offline Hallvard Traetteberg
Messages: 583
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Anit,

The mechanism that updates the outline page listens to changes to the
currently active part/editor, which in this case is the multipage editor
itself. When a multipage editor changes the active inner editor, there
is no such notifications. I have the same problem, which BTW is
discussed in this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=1917
It does not seem this bug will ever be fixed, which means that your
outline page needs to handle changes to the active inner editor itself.

Hallvard

On 02.11.12 05.48, Anit Nair wrote:
> Michael,
>
> thanks for the information, it was really helpful.
>
> There is a new problem i find my self in now. In my application we have
> two graphical editors embedded as part of the Multipage editor.
> Now, after getting the thumbnail/miniature view for the editor, it does
> not refresh on page change.
>
> Regards,
> Anit
Previous Topic:ContainerShapeEditPart
Next Topic:Contextual help F1 support
Goto Forum:
  


Current Time: Wed Apr 23 02:56:36 EDT 2014

Powered by FUDForum. Page generated in 0.02525 seconds