Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Bundled image shape could not be found(Usage of extension points org.eclipse.sirius.diagram.bundledImageShape and org.eclipse.sirius.diagram.customBundledImageShape)
Bundled image shape could not be found [message #1860772] Sat, 02 September 2023 07:17 Go to next message
Elena Larina is currently offline Elena LarinaFriend
Messages: 4
Registered: June 2017
Junior Member
Hello,

I try to use custom svg for elements of my model. First, I tried to use style "Worspace Image". With this style my svg pictures displayed normally, but fill color button in Appearance tab of element properties does nothing.

I need to fill color of my element, which have custom svg image.

Then I try to use org.eclipse.sirius.diagram.bundledImageShape and org.eclipse.sirius.diagram.customBundledImageShape.

One of my attempts:
plugin.xml
  <extension
        id="custom.house.event.svg"
        name="House Event"
        point="org.eclipse.sirius.diagram.bundledImageShape">
     <image
           imagePath="/images/custom.house.event.svg"
           label="custom.house.event.svg">
     </image>
  </extension>

my.odesign
          <conditionnalStyles predicateExpression="aql:self.event.kind=FTA::EventType::HOUSE">
            <style xsi:type="style:BundledImageDescription" labelSize="12" showIcon="false" labelPosition="node" resizeKind="NSEW" shape="providedShape" providedShapeID="custom.house.event.svg">
              <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
              <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
              <color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
            </style>
   </conditionnalStyles>


But when I launch my application, I get messages in the Console:

!ENTRY org.eclipse.sirius.diagram 2 0 2023-09-02 11:05:00.162
!MESSAGE The style of a diagram element has been customized by using the ID 'custom.house.event.svg' of a bundled image shape, but this ID is declared in no plug-in.

!ENTRY org.eclipse.sirius.diagram 4 0 2023-09-02 11:05:00.166
!MESSAGE Impossible to retrieve the SVG file to load because an invalid ID of a bundled image shape is used.

!ENTRY org.eclipse.sirius.diagram 2 0 2023-09-02 11:05:00.167
!MESSAGE The style of a diagram element has been customized by using the ID 'custom.house.event.svg' of a bundled image shape, but this ID is declared in no plug-in.

!ENTRY org.eclipse.sirius.diagram 2 0 2023-09-02 11:05:00.174
!MESSAGE The style of a diagram element has been customized by using the ID 'custom.house.event.svg' of a bundled image shape, but this ID is declared in no plug-in.

And as a result my element of model does not display any image.

What could be the reason of this?
Re: Bundled image shape could not be found [message #1860774 is a reply to message #1860772] Sat, 02 September 2023 09:32 Go to previous message
Elena Larina is currently offline Elena LarinaFriend
Messages: 4
Registered: June 2017
Junior Member
The reason was that Sirius append bundle name to the ID, which was defined in plugin.xm for extension point 'сustomBundledImageShape'.

I.e. if in plugin.xml ID = custom.house.event.svg, then in odesign file it should be providedShapeID="bundle.name.custom.house.event.svg"
Previous Topic:Workspace Image SVG conversion - compatibility issue with PDF
Next Topic:Adding to collections using the Set operation
Goto Forum:
  


Current Time: Sat Oct 12 00:42:59 GMT 2024

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

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

Back to the top