Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:29 Go to next message
Nicola Mazzacane is currently offline Nicola MazzacaneFriend
Messages: 13
Registered: September 2014
Junior Member
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
Papyrus 3.x.0 - wrong context menu of tables - FIXED [message #1776109 is a reply to message #1775857] Sat, 11 November 2017 16:22 Go to previous message
Nicola Mazzacane is currently offline Nicola MazzacaneFriend
Messages: 13
Registered: September 2014
Junior Member
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: Wed Jun 20 15:34:01 GMT 2018

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

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

Back to the top