Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » SVG not working
SVG not working [message #213898] Thu, 18 December 2008 07:40 Go to next message
Eclipse UserFriend
Hi,
I failed to display an SVG image as a node in my GMF editor.
I tried the method in the BPMN tutorial, and only the box with the cross
appeared.
GMF Experimental SDK doesn't contain classes SVGFigure, SVGUtils anymore,
used in the Taipan example.
I searched the newsgroup and there are similar questions but they aren't
resolved, or if yes, it is not described how.
So, could I have a HowTo that explains how to do this?
Thanks in advance,
thSoft
Re: SVG not working [message #213909 is a reply to message #213898] Thu, 18 December 2008 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Hello Dennis,

SVGFigure is a part of .gmfgraph model, but you should be working with latest
GMF integration build to get it (it was added just after last GMF release,
so it was not released yet).

-----------------
Alex Shatalin
Re: SVG not working [message #213949 is a reply to message #213909] Thu, 18 December 2008 10:58 Go to previous messageGo to next message
Eclipse UserFriend
Thanks. I tried to install the latest integration build, but Eclipse 3.4.1
says:
Cannot find a solution satisfying the following requirements
Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.apache.xerces/[2.9.0.v20090924 0008,2.9.0.v200909240008]].
Eclipse 3.5M4 says:
Cannot find a solution satisfying the following requirements
org.eclipse.debug.ui [3.4.1.v20080811_r341].
What's wrong with the old, BPMN-tutorial way?
Re: SVG not working [message #214359 is a reply to message #213949] Tue, 30 December 2008 18:55 Go to previous messageGo to next message
Eclipse UserFriend
I finally managed to get SVG figures working under GMF 2.1.2 with the BPMN
tutorial and this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=180675 My question is: how
to update the SVG figure according to a changing attribute of the semantic
element, i.e. what should I write in the EditPart's
handleNotificationEvent() method to have the figure refreshed? (I create
the figure in the createNodeShape() method, as in the BPMN tutorial.)
Thanks in advance!
thSoft
Re: SVG not working [message #214530 is a reply to message #214359] Mon, 05 January 2009 08:31 Go to previous message
Eclipse UserFriend
Hello Dennis,

Do you mean SVG figure (created using custom figure) should be changed based
on some properties of domain model element? If want to repaint existing figure
then you can call Figure.revalidate(). If you have to perform some complex
update then I suggest creating specific method for this update process and
then call it: MyCustomFigure.updateContent() method.

-----------------
Alex Shatalin
Previous Topic:I need help with dynamic list
Next Topic:Handling multiplicity relation in gmf
Goto Forum:
  


Current Time: Sat May 10 07:17:51 EDT 2025

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

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

Back to the top