Skip to main content



      Home
Home » Modeling » Papyrus » Papyrus 3.x.0 - wrong context menu of tables (Converted SysML 1.1 model into SysML 1.4 side effect)
Papyrus 3.x.0 - wrong context menu of tables [message #1775857] Tue, 07 November 2017 05:29 Go to next message
Eclipse UserFriend
Hi,

I have converted a SysML 1.1 model into SysML 1.4 using Papyrus 2.0.3.
Now I correctly open the model with Papyrus 3.1.0, but tables have a problem: the contextual menu is not standard (see the picture) and it is not possible to change columns.

In error log I have seen the following one:

eclipse.buildId=unknown
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.papyrus.rcp.product
Command-line arguments:  -product org.eclipse.papyrus.rcp.product -data ... -dev file:... -os win32 -ws win32 -arch x86 -consoleLog

org.eclipse.ui
Error
Tue Nov 07 11:05:39 CET 2017
Unhandled event loop exception

java.lang.NullPointerException
	at org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.getInstancesFilteredByType(UMLStereotypeRestrictedPropertyContentProvider.java:286)
	at org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.getAppliedProfilesInWholePackage(UMLStereotypeRestrictedPropertyContentProvider.java:219)
	at org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.getAllAvailableProfiles(UMLStereotypeRestrictedPropertyContentProvider.java:179)
	at org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.init(UMLStereotypeRestrictedPropertyContentProvider.java:85)
	at org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.<init>(UMLStereotypeRestrictedPropertyContentProvider.java:78)
	at org.eclipse.papyrus.uml.nattable.manager.axis.UMLStereotypePropertyAxisManager.createPossibleAxisContentProvider(UMLStereotypePropertyAxisManager.java:211)
	at org.eclipse.papyrus.uml.nattable.menu.AbstractCreateStereotypePropertyMenuFactory.createContributionItems(AbstractCreateStereotypePropertyMenuFactory.java:92)
	at org.eclipse.ui.internal.menus.ContributionFactoryGenerator.compute(ContributionFactoryGenerator.java:72)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeFactoryIntoModel(ContributionRecord.java:269)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeIntoModel(ContributionRecord.java:213)
	at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.processAddition(MenuManagerRenderer.java:545)
	at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.generateContributions(MenuManagerRenderer.java:524)
	at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.processContributions(MenuManagerRenderer.java:492)
	at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:242)
	at org.eclipse.ui.internal.menus.WorkbenchMenuService.populateContributionManager(WorkbenchMenuService.java:221)
	at org.eclipse.papyrus.infra.nattable.menu.AbstractPapyrusPopupMenuAction.menuAboutToShow(AbstractPapyrusPopupMenuAction.java:150)


I must add that when I create a new SysML 1.4 model from scratch and I create a table, the context menu is standard, allowing me to change columns.

Best Regards,
Nicola
  • Attachment: wrongMenu.png
    (Size: 10.65KB, Downloaded 118 times)
Papyrus 3.x.0 - wrong context menu of tables - FIXED [message #1776109 is a reply to message #1775857] Sat, 11 November 2017 11:22 Go to previous message
Eclipse UserFriend
Hi,

with a bit of troubleshooting I have identified the problem and, I hope, definitely fixed.
During the transformation I have corrupted some ElementImport items, i.e. their referenced element was null.
This null reference probably was not trapped within

org.eclipse.papyrus.uml.nattable.provider.UMLStereotypeRestrictedPropertyContentProvider.getInstancesFilteredByType


After removing the wrong ElementImport items, the context menu is now correct.

Best Regards,
Nicola
Previous Topic:Extend papyrus
Next Topic:Papyrus software designer release
Goto Forum:
  


Current Time: Sun Jul 06 09:50:26 EDT 2025

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

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

Back to the top