Problem with SVG figure [message #498373] |
Mon, 16 November 2009 16:13 |
Alireza Missing name Messages: 105 Registered: July 2009 |
Senior Member |
|
|
Hello everybody,
I have tried to follow the example in http://wiki.eclipse.org/GMF_Tutorial_BPMN to add a SVG imgae, I have added following code to my project :
/**
* @generated NOT
*/
protected IFigure createNodeShape() {
URL url = FileLocator.find(CompanyDiagramEditorPlugin.getInstance().ge tBundle(), new Path("images/circle.svg"), null); //$NON-NLS-1$
return new ScalableImageFigure(RenderedImageFactory.getInstance(url), true, true, true);
}
and even I have used the same SVG file as in BPMN sample in my example but still when I run the project the image does not change, did I miss something?
Should I remove the default image that gmf creates in edit project? there is xml part in http://wiki.eclipse.org/GMF_Tutorial_BPMN, I do not know what to do with it and where exactly I should put it? Maybe that's the problem?
What if I want to have label with this image? what should I do?
Best,
Alireza
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02989 seconds