|
Re: SVG display [message #1753123 is a reply to message #1753045] |
Thu, 02 February 2017 05:14 |
|
Hi,
I have a similar problem:
a) Create a profile with a Stereotype HCI and its own svg image (see eclipseSVGError1.JPG)
b) Apply the Stereotype in an activity diagram. The result is very strange: On some actions the icons is shown and on other it isn't. It's not possible to move or resize the actions in the diagram. They are frozen. (see eclipseSVGError2.JPG)
When I try to use a simple style sheet, it also doesn't work.
a) Define a style sheet and a class
*.HCI {
elementIcon:true;
svgFile:'platform:/resource/I4PML_Profile/resources/HCI.svg';
}
b) When I apply the style, nothing happens. (see eclipseSVGError3.JPG)
Sometimes I get some exception messages from eclipse (see eclipseSVGError4.JPG).
After this, I cannot open the model file anymore. It's corrupted. It just gives a message that an "unexpected exception" occurred (see eclipseSVGError5.JPG).
Any help would be appreciated.
Regards
Roland
Here is the exception message from eclipse:
------
STATUS
------
pluginId org.eclipse.papyrus.infra.core
pluginVersion 2.0.0.201606080854
code 0
severity 4
message Unexpected Error
fingerprint e821433639e2d9bff3313f7eaeccfd2a
Exception:org.eclipse.papyrus.infra.core.services.ServiceMultiException: Multiple exceptions
----- exceptions : ----------
org.eclipse.papyrus.layers.runtime.service.LayersApplicationService : java.lang.NullPointerException
-----------------------------
at org.eclipse.papyrus.infra.core.services.ServicesRegistry.startRegistry(ServicesRegistry.java:456)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.loadModelAndServices(CoreMultiDiagramEditor.java:612)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.initContents(CoreMultiDiagramEditor.java:926)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.doReload(CoreMultiDiagramEditor.java:953)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.access$4(CoreMultiDiagramEditor.java:940)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reloadEditor(CoreMultiDiagramEditor.java:1230)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reload(CoreMultiDiagramEditor.java:1204)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$4.reloadEditor(CoreMultiDiagramEditor.java:838)
at org.eclipse.papyrus.infra.ui.services.ResourceUpdateService$4.runInUIThread(ResourceUpdateService.java:159)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4203)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3819)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: org.eclipse.papyrus.infra.core.services.ServiceException: java.lang.NullPointerException
at org.eclipse.papyrus.infra.core.services.internal.ServiceEntry.startService(ServiceEntry.java:158)
at org.eclipse.papyrus.infra.core.services.internal.StartStartupEntry.startService(StartStartupEntry.java:81)
at org.eclipse.papyrus.infra.core.services.ServicesRegistry.startServices(ServicesRegistry.java:1020)
at org.eclipse.papyrus.infra.core.services.ServicesRegistry.startRegistry(ServicesRegistry.java:488)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.loadModelAndServices(CoreMultiDiagramEditor.java:612)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.initContents(CoreMultiDiagramEditor.java:926)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.doReload(CoreMultiDiagramEditor.java:953)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.access$4(CoreMultiDiagramEditor.java:940)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reloadEditor(CoreMultiDiagramEditor.java:1230)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reload(CoreMultiDiagramEditor.java:1204)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$4.reloadEditor(CoreMultiDiagramEditor.java:838)
at org.eclipse.papyrus.infra.ui.services.ResourceUpdateService$4.runInUIThread(ResourceUpdateService.java:159)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4203)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3819)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: java.lang.NullPointerException: null
at org.eclipse.papyrus.layers.runtime.model.LayersModelEventRootNotifier.activate(LayersModelEventRootNotifier.java:99)
at org.eclipse.papyrus.layers.runtime.model.LayersModelEventRootNotifier.<init>(LayersModelEventRootNotifier.java:90)
at org.eclipse.papyrus.layers.runtime.LayerStackApplicationSynchronizer.activateLayersModelRootNotifier(LayerStackApplicationSynchronizer.java:210)
at org.eclipse.papyrus.layers.runtime.LayerStackApplicationSynchronizer.transitionInitToNoApplicationState(LayerStackApplicationSynchronizer.java:133)
at org.eclipse.papyrus.layers.runtime.LayerStackApplicationSynchronizer.initState(LayerStackApplicationSynchronizer.java:102)
at org.eclipse.papyrus.layers.runtime.LayerStackApplicationSynchronizer.<init>(LayerStackApplicationSynchronizer.java:90)
at org.eclipse.papyrus.layers.runtime.service.LayersApplicationService.startService(LayersApplicationService.java:103)
at org.eclipse.papyrus.infra.core.services.internal.ServiceEntry.startService(ServiceEntry.java:152)
at org.eclipse.papyrus.infra.core.services.internal.StartStartupEntry.startService(StartStartupEntry.java:81)
at org.eclipse.papyrus.infra.core.services.ServicesRegistry.startServices(ServicesRegistry.java:1020)
at org.eclipse.papyrus.infra.core.services.ServicesRegistry.startRegistry(ServicesRegistry.java:488)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.loadModelAndServices(CoreMultiDiagramEditor.java:612)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.initContents(CoreMultiDiagramEditor.java:926)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.doReload(CoreMultiDiagramEditor.java:953)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor.access$4(CoreMultiDiagramEditor.java:940)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reloadEditor(CoreMultiDiagramEditor.java:1230)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$DeferredReload.reload(CoreMultiDiagramEditor.java:1204)
at org.eclipse.papyrus.infra.ui.editor.CoreMultiDiagramEditor$4.reloadEditor(CoreMultiDiagramEditor.java:838)
at org.eclipse.papyrus.infra.ui.services.ResourceUpdateService$4.runInUIThread(ResourceUpdateService.java:159)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4203)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3819)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
------
REPORT
------
anonymousId
name
email
comment
eclipseBuildId 4.6.0.I20160606-1100
eclipseProduct org.eclipse.epp.package.modeling.product
javaRuntimeVersion 1.8.0_122-ea-b04
osgiWs win32
osgiOs Windows10
osgiOsVersion 10.0.0
osgiArch x86_64
severity UNKNOWN
-------
BUNDLES
-------
name org.eclipse.core.databinding.observable
version 1.6.0.v20160511-1747
name org.eclipse.core.databinding
version 1.6.0.v20160412-0910
name org.eclipse.core.runtime
version 3.12.0.v20160606-1342
name org.eclipse.e4.ui.workbench
version 1.4.0.v20160517-1624
name org.eclipse.e4.ui.workbench.swt
version 0.14.0.v20160523-1900
name org.eclipse.equinox.app
version 1.3.400.v20150715-1528
name org.eclipse.equinox.launcher
version 1.3.200.v20160318-1642
name org.eclipse.papyrus.infra.core
version 2.0.0.201606080854
name org.eclipse.papyrus.infra.ui
version 1.2.0.201606080854
name org.eclipse.papyrus.layers.runtime
version 1.2.0.201606080903
name org.eclipse.swt
version 3.105.0.v20160603-0902
name org.eclipse.ui
version 3.108.0.v20160518-1929
name org.eclipse.ui.ide.application
version 1.1.100.v20160518-1929
name org.eclipse.ui.ide
version 3.12.0.v20160601-1609
|
|
|
|
Re: SVG display [message #1753212 is a reply to message #1753178] |
Thu, 02 February 2017 17:40 |
|
Hi Ismael,
thanks for the reply. I think your case is a little bit different: I try to show an icon next to the stereotype.
I tried it with different versions, e.g. 4.6 and Papyrus standalone. But it doesn't work. I always get exceptions. ... lot of exceptions.
We also get no answer here in the forum, no active community. So I guess, Papyrus is not maintained anymore. Maybe this project is dead.
I will try a different modeling tool.
Good luck for you.
Regards
Roland
[Updated on: Thu, 02 February 2017 17:41] Report message to a moderator
|
|
|
Re: SVG display [message #1753221 is a reply to message #1753212] |
Thu, 02 February 2017 18:33 |
|
Hello,
Regarding the maintenance of Papyrus, it follows the Eclipse release train, which means that the latest release was with Neon.2 (2.0.2) at the end of December and the next release will be aligned with Neon.3 in March. I believe that the version used in this conversation is the Neon version (2.0.0).
I have pinged the Papyrus development team to see if they can have a look at this message thread.
If you feel that this is a bug, either in the implementation or in the documentation, I would encourage you to submit a bug in Bugzilla.
/Charles Rivet
|
|
|
|
Re: SVG display [message #1753267 is a reply to message #1753222] |
Fri, 03 February 2017 09:00 |
|
Hi,
@Charles: Thanks for your support. It's good to hear that development continues and there is some support.
Yes, I tried
a) Eclipse 4.6 Neon with Papyrus version 2.0.0
b) Papyrus (standalone) version 2.0.2
c) Eclipse 4.7 Neon.3 (actually it's 4.6.3M20170111-0400) with Papyrus version 3.0.0
Yes, I have seen the video. It doesn't work for me (activity diagrams and OpaqueAction). And I don't wanna change the whole shape.
I just want to display a little icon in the title next to the stereotype.
In version 3.0.0 I can see the icon, but the UML element is completely "frozen": no move & no resize. Even the enclosing element (activity) can't be moved anymore.
In the video, they also used some "magic". In the css there is a style like this: "Compartment[type="...._shape_display"]"
Any idea where this is documented? I couldn't find a manual for this topic.
BTW: Neon.3 with Papyrus 3 seems to have a compatibility problem with Papyrus 2.0.x models. I get an "Your model is corrupt" error message (with an ResourceException, see attachment)
Regards
Roland
P.S.: Tried to update version 2.0.0 (neon.2), but got the following error:
Some sites could not be found. See the error log for more detail.
No repository found at https://hudson.eclipse.org/papyrus/view/Moka/job/papyrus-moka-website/ws/site-staging/index.html.
No repository found at https://hudson.eclipse.org/papyrus/view/Sysml/job/papyrus-sysml-website/ws/site-staging/index.html.
Eclipse then looked for "alternate solutions" for quite a while. Eventually it came up with the message "No remedy found". Hmmmmmm.
|
|
|
|
Re: SVG display [message #1753334 is a reply to message #1753308] |
Sat, 04 February 2017 01:53 |
|
Hi,
update: I managed to make it work with PNG pictures and the kind=shape (not icon). The icon is then displayed near the stereotype.
Questions remain: How to make SVG pictures work? Why kind=icon doesn't work? Why some icon/CSS settings lead to frozen models and exceptions?
|
|
|
Re: SVG display [message #1753335 is a reply to message #1753334] |
Sat, 04 February 2017 02:55 |
|
Hi,
update 2.0: This works only for Actions, not for Activities.
It seems to be impossible to add a custom icon to the Activity element in the model.
I tried Icon settings in the profile and CSS styles.
|
|
|
Re: SVG display [message #1753456 is a reply to message #1753335] |
Mon, 06 February 2017 16:57 |
|
Hi Roland,
I have observed that not all the model elements are treated equally by the CSS support... I would suggest you write a bug with regards to the lack of CSS support for activities and the activity element.
I would typically recommend voting for your "favourite" bugs (if you still have unused votes), but I don't think that the Papyrus development team looks at votes when evaluating bugs...
/Charles Rivet
|
|
|
Re: SVG display [message #1753501 is a reply to message #1753456] |
Tue, 07 February 2017 09:51 |
|
Hi Ismael, Hi Roland,
I can reproduce that the symbol is very small and does not scale if you enlarge the activity. Yes, please post a bug (btw. symbol scaling works for instance for structured-activity-nodes).
A bit off-topic: there is a pending patch that will provide a shape compartment for ports, see bug 511776
|
|
|
|
Re: SVG display [message #1753627 is a reply to message #1753545] |
Wed, 08 February 2017 10:00 |
|
Hi Ismael,
the plugin provides a property view definition for symbols. It appears when you use the Papyrus internal profile and apply the TypeSymbolDefinition stereotype to an element.
It seems odd that you get the described exceptions when the plugin is not there. On my machine SVG shapes are still displayed and I do not have exceptions, if I deactivate it (by removing it from the run/debug-configuration) Did you change other things in your environment? (well, besides that if you did not have this plugin, you installed Papyrus in an uncommon way, use the sources or have a run-configuration with selected plugins only?)
|
|
|
Powered by
FUDForum. Page generated in 0.04225 seconds