Skip to content

v7.3.0

Closed Dec 4, 2023 100% complete

Changes in Sirius 7.3.0

User-Visible Changes

  • 🆕 A new preference has been added in the Sirius Diagram preference page. This preference allows the user to choose the arrangement of elements created on a diagram when they are not directly positioned by the user. In the preference page, users can choose between a diagonal, vertical or horizontal arrangement.

Changes in Sirius 7.3.0

User-Visible Changes

  • 🆕 A new preference has been added in the Sirius Diagram preference page. This preference allows the user to choose the arrangement of elements created on a diagram when they are not directly positioned by the user. In the preference page, users can choose between a diagonal, vertical or horizontal arrangement.

Specifier-Visible Changes

None.

Developer-Visible Changes

Changes in org.eclipse.sirius.diagram.ui

  • 🔨 The methods org.eclipse.sirius.diagram.ui.tools.api.util.GMFNotationHelper.getNotes(Diagram) and org.eclipse.sirius.diagram.ui.tools.api.util.GMFNotationHelper.getTextNotes(Diagram) now return a list of org.eclipse.gmf.runtime.notation.Shape instead of a list of org.eclipse.gmf.runtime.notation.Node. This type is more precise and avoids multiple cast when using the returned list.
  • 🆕 A new preference PREF_NEWLY_CREATED_ELEMENTS_LAYOUT have been added in org.eclipse.sirius.diagram.ui.tools.api.preferences.SiriusDiagramUiPreferencesKeys. It is an integer used to define the arrangement of elements created on a diagram when they are not directly positioned by the user. When created successively, elements can be positioned diagonally, vertically or horizontally. Elements can be positioned diagonally with the value 0, vertically with the value 1, horizontally with the value 2. By default, elements are positioned diagonally with the value 0.

The Sirius default values for these preferences can be overridden for a specific product. For example:

    // Preference customization for plugin "org.eclipse.sirius.diagram.ui"
    IEclipsePreferences diagramPreferences = DefaultScope.INSTANCE.getNode(org.eclipse.sirius.diagram.ui.provider.DiagramUIPlugin.ID);
    // By default override the PREF_NEWLY_CREATED_ELEMENTS_LAYOUT default value
    diagramPreferences.putBoolean(SiriusDiagramUiPreferencesKeys.PREF_NEWLY_CREATED_ELEMENTS_LAYOUT, 2);

This milestone is closed.

No open issues remain. View closed issues or see open milestones in this repository.