Many preferences are available for the diagrams. This page will be completed as arises.
org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper
.
String
key for a given preference, represented by an int
according to the context:
The preference values are generally stored in the PreferenceStore provided by org.eclipse.papyrus.infra.gmfdiag.common.Activator
.
The default value of preferences are generally done by classes extending org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
or by a static method in a PreferencePage, like it is done with org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
int
value is provided by org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper.DRAW_CONNECTION_POINT
org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper.DRAW_CONNECTION_POINT_CONSTANT
false
.org.eclipse.papyrus.infra.gmfdiag.common.figure.edge.PapyrusEdgeFigure
is in charge to draw the bendpoints through the method drawCommonbendpoints(Graphics)
, when the preference is set to true
, but we need to override the method org.eclipse.papyrus.infra.gmfdiag.common.figure.edge.PapyrusEdgeFigure.getDrawBendpointPreferenceValue()
to get this behavior.org.eclipse.papyrus.uml.diagram.common.figure.edge.CommonEdgeFigure
override the previous method to be able to draw the bendpoints according to the preference value.org.eclipse.papyrus.uml.diagram.common.tests.tests.CommonBendpointsTest
.