Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpguilet2017-02-07 08:56:51 +0000
committerPierre-Charles David2017-03-09 13:48:49 +0000
commitb1d79cd38c1b793cb5963ffa5242a7ffe725c0f2 (patch)
tree5cbbfc8a9a02b5749bd05f1322942952ac4a160b /plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile
parent9aa08904362fcb7870c0259e5284f543305318c0 (diff)
downloadorg.eclipse.sirius-b1d79cd38c1b793cb5963ffa5242a7ffe725c0f2.tar.gz
org.eclipse.sirius-b1d79cd38c1b793cb5963ffa5242a7ffe725c0f2.tar.xz
org.eclipse.sirius-b1d79cd38c1b793cb5963ffa5242a7ffe725c0f2.zip
[430948] Add possibility to use standard font size with trees
- Add a preference "Always use standard font size" that makes tree item font using as height value the one of the runtime font instead of the one defined in the TreeItemStyle - Add Standard font size preference UI integration in Eclipse preference window. - Add new API methods in VisualBindingManager to handle use of runtime font height. - Add corresponding tests - Update user documentation - Update release note to expose new API Bug: 430948 Change-Id: I5c89cb63ee4935dadcc980dc8e0a72b8b53d6803 Signed-off-by: pguilet <pierre.guilet@obeo.fr>
Diffstat (limited to 'plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile')
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile
index 3e05718867..8e8734408b 100644
--- a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile
+++ b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile
@@ -21,15 +21,14 @@ h3. Developer-Visible Changes
h4. Changes in @org.eclipse.sirius.ui@
* <span class="label label-success">Added</span> The method @org.eclipse.sirius.ui.tools.api.wizards.page.ViewpointsSelectionWizardPage.setBrowserMinWidth(int)@ has been added to allow modification of the minimum width (with default value "0") of the browser part of the viewpoint selection wizard.
-
* <span class="label label-success">Added</span> The method @org.eclipse.sirius.ui.tools.api.wizards.page.ViewpointsSelectionWizardPage.setColumnWidthEquality(boolean)@ has been added to allow modification of column width equality (with default value "false") of the root composite of the viewpoint selection wizard.
+* <span class="label label-success">Added</span> The method @org.eclipse.sirius.ui.tools.api.color.VisualBindingManager.getDefaultFontWithRuntimeSizeAndFromLabelFormat(List<FontFormat>)@ has been added to allow to retrieve a font using the given format and the default Sirius font (arial) and the runtime height.
+* <span class="label label-success">Added</span> The method @org.eclipse.sirius.ui.tools.api.color.VisualBindingManager.getFontFromNameAndLabelFormatAndWithDefaultSize(List<FontFormat>, String)@ has been added to allow to retrieve a font using the given format and the given font name and the runtime height.
h4. Changes in @org.eclipse.sirius.diagram@
* <span class="label label-info">Moved</span> The method @org.eclipse.sirius.diagram.business.api.refresh.IRefreshOverride.aroundRefresh(DDiagram)@ has been moved to @org.eclipse.sirius.diagram.business.api.refresh.IRefreshExtension@ to unify methods handling refresh extension under one interface.
-
* <span class="label label-info">Modified</span> The method @org.eclipse.sirius.diagram.business.api.refresh.IRefreshExtension.aroundRefresh(DDiagram)@ has been modified with a default behavior that is the one before introduction of the method to avoid breaking compatibility.
-
* <span class="label label-danger">Removed</span> The interface @org.eclipse.sirius.diagram.business.api.refresh.IRefreshOverride@ has been removed because its only method has been moved into @org.eclipse.sirius.diagram.business.api.refresh.IRefreshExtension@ interface
h4. Changes in @org.eclipse.sirius@
@@ -44,6 +43,10 @@ h4. Changes in @org.eclipse.sirius@
*** @org.eclipse.sirius.business.api.resource.strategy.LegacyReleaseResourceStrategyImpl@ (previously named @DefaultResourceStrategyImpl@): A resource strategy with the code used before the optimization concerning the @org.eclipse.sirius.business.api.resource.strategy.ResourceStrategy.ResourceStrategyType.RELEASE_RESOURCE_AT_RESOURCESET_DISPOSE@. It is not used but can be quickly contributed by someone that want the previous behavior (before Sirius 4.0.0 M6).
* <span class="label label-danger">Removed</span> The already deprecated constructor of @org.eclipse.sirius.business.api.control.SiriusUncontrolCommand@ with signature @SiriusUncontrolCommand(EObject, boolean, IProgressMonitor)@ has been removed; instead, use the alternate constructor with an additional explicit @boolean shouldEndBySaving@ parameter (set it to @true@ to obtain the same behavior as the removed constructor).
+h4. Changes in @org.eclipse.sirius.tree.ui@
+
+* <span class="label label-success">Added</span> The enum class for Sirius tree preferences @org.eclipse.sirius.tree.ui.tools.api.preferences.SiriusTreeUiPreferencesKeys@ has been added with the enum value @SiriusTreeUiPreferencesKeys.PREF_ALWAYS_USE_STANDARD_FONT_SIZE@. This enum value is the preference when true allowing to use runtime font height when displaying Sirius tree editor's items instead of the one specified in the VSM.
+
h4. Changes in @org.eclipse.sirius.diagram.ui@
* <span class="label label-info">Modified</span> The @org.eclipse.sirius.diagram.ui.tools.api.part.DiagramEditPartService.DiagramEditPartService@ class which can be used to export diagrams as images is now automatically adapting the output resolution for raster image based on maximum buffer size specified through the @plugin.propeties@ file of the @org.eclipse.sirius.diagram.ui@ plugin. This leads to a noticeable increase of the export image size (you can expect a 10 factor on small diagrams) and the method will no longer fail with OutOfMemory errors as bigger diagrams will lead to a lower output resolution. Implementers using this class can override the @DiagramEditPartService.getMaximumTotalSize()@ method to return their own limit or @DiagramEditPartService.getExportResolutionFactor(DiagramEditPart, SiriusDiagramImageGenerator)@ and return @1.0@ to get back to the previous behavior.

Back to the top