Community
Participate
Working Groups
Papyrus should allow users to modify link style especially the link width. This should be modifiable in preferences or directly in the Appearance tab.
To provide this action, we need to modify the template. Change in YourLinkEditPart : @Override protected void handleNotificationEvent(Notification notification) { Object feature = notification.getFeature(); if(NotationPackage.Literals.LINE_STYLE__LINE_WIDTH.equals(feature)) { refreshLineWidth(); } else { super.handleNotificationEvent(notification); } } /** * to set the width defined in the notation file after opening the diagram */ @Override public void refresh() { super.refresh(); refreshLineWidth(); } @Override protected void setLineWidth(int width) { ((GeneralizationFigure)figure).setLineWidth(width); figure.repaint(); } In your UMLViewProvider.createYourLink_ID, adds the line : edge.setLineWidth(1); //this action specifies the line width in the notation. It's needed!!! In your Figure (like GeneralizationFigure), it seems me that you can delete the line setLineWidth(1); which is not useful;
Created attachment 183459 [details] width of Links Illustration This is the widths provided by GMF, It's possible to have other widths easily. The width is represented by an Integer.
For certain DSL's a line style would also be needed, such as dashed line or not.
This feature is now supported. If some specific links don't support it, specific bugs should be reported against each I close the task