Skip to main content
Jump to: navigation, search

Difference between revisions of "GEF/New and Noteworthy/3.10.1"

m
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
* [http://www.eclipse.org/gef/newandnoteworthy/New-and-Noteworthy-30.html New and Noteworthy in 3.0]
 
* [http://www.eclipse.org/gef/newandnoteworthy/New-and-Noteworthy-35.html New and Noteworthy in 3.5]
 
* [[GEF/New and Noteworthy/3.6| New and Noteworthy in 3.6]]
 
* [[GEF/New and Noteworthy/3.7| New and Noteworthy in 3.7]]
 
* [[GEF/New and Noteworthy/3.8| New and Noteworthy in 3.8]]
 
* [[GEF/New and Noteworthy/3.9| New and Noteworthy in 3.9]]
 
* [[GEF/New and Noteworthy/3.10| New and Noteworthy in 3.10]]
 
  
== General ==
+
The "New & Noteworthy" pages have been migrated to GitHub:
  
The [https://projects.eclipse.org/projects/tools.gef/releases/3.10.1-mars-sr1 GEF 3.10.1 (Mars SR1)] release provides service releases for the production components [https://www.eclipse.org/gef/draw2d/ Draw2d 3.x] (3.10.1), [https://www.eclipse.org/gef/gef_mvc/index.php GEF (MVC) 3.x] (3.10.1), and [https://www.eclipse.org/gef/zest/index.php Zest 1.x] (1.6.1), as well as for the new [[GEF/GEF4|GEF4]] components (0.1.1). Please note that while [https://projects.eclipse.org/projects/tools.gef/releases/3.10.1-mars-sr1 GEF 3.10.1 (Mars SR1)] is a bugfix release, some minor adjustments have been applied to the provisional API of GEF4. These are highlighted below as [INCOMPATIBLE CHANGE].
+
* [https://github.com/eclipse/gef/blob/master/CHANGELOG.md#gef-3101-mars1 GEF@github.com CHANGELOG]
 
+
* [https://github.com/eclipse/gef-legacy/blob/master/CHANGELOG.md#gef-3101-mars1 GEF-Legacy@github.com CHANGELOG]
----
+
 
+
== GEF4 Geometry 0.1.1 ==
+
 
+
==== Aligned background color within the examples and added window titles where missing (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=470413 #470413], [https://bugs.eclipse.org/bugs/show_bug.cgi?id=470414 #470414]
+
 
+
----
+
 
+
== GEF4 Layout 0.1.1 ==
+
 
+
==== Fixed a bug where dynamic layout was not applied although it should (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=468764 #468764]
+
 
+
----
+
 
+
== GEF4 FX 0.1.1 ==
+
 
+
==== [INCOMPATIBLE CHANGE] FXMouseDragGesture, FXPinchSpreadGesture, and FXRotateGesture were renamed (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=469583 #469583]
+
The <code>FXMouseDragGesture</code>, <code>FXPinchSpreadGesture</code>, and <code>FXRotateGesture</code> abstract base implementations located in package <code>org.eclipse.gef4.fx.gestures</code> were renamed to consistently use the 'Abstract' prefix:
+
* <code>org.eclipse.gef4.fx.gestures.FXMouseDragGesture</code> was renamed to <code>org.eclipse.gef4.fx.gestures.AbstractFXMouseDragGesture</code>
+
* <code>org.eclipse.gef4.fx.gestures.FXPinchSpreadGesture</code> was renamed to <code>org.eclipse.gef4.fx.gestures.AbstractFXPinchSpreadDragGesture</code>
+
* <code>org.eclipse.gef4.fx.gestures.FXRotateGesture</code> was renamed to <code>org.eclipse.gef4.fx.gestures.AbstractFXRotateGesture</code>
+
 
+
----
+
 
+
==== Fixed a Java 8-related bug where chop box anchor positions were not computed (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=470029 #470029]
+
 
+
----
+
 
+
== GEF4 MVC 0.1.1 ==
+
 
+
==== [INCOMPATIBLE CHANGE] DefaultSelectionProvider was moved (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=469478 #469478]
+
<code>org.eclipse.gef4.mvc.fx.ui.DefaultSelectionProvider</code> was moved to <code>org.eclipse.gef4.mvc.ui.DefaultSelectionProvider</code> because it is independent of JavaFX.
+
 
+
----
+
 
+
==== [INCOMPATIBLE CHANGE] Refactored FXView and FXEditor (M2) ====
+
 
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id= 472649 #472649]
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id= 472650 #472650]
+
 
+
Removed <code>getContents()</code> callback from FXView and FXEditor, so that population of viewers is now completely left to subclasses. Modularized <code>createPartControl()</code> and <code>dispose</code> methods so clients can easily overwrite and adopt individual aspects. In detail, introduced <code>hookViewers()</code>, <code>unhookViewers()</code>, <code>activate()</code>, and <code>deactivate()</code> hook methods.
+
 
+
----
+
 
+
==== [INCOMPATIBLE CHANGE] Fixed that FXViewer could not share a JavaFX scene (M2) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=472646 #472646]
+
 
+
FXViewer was responsible of creating a JavaFX scene and was provided with an ISceneContainer implementation, to hook the scene into a Stage (standalone) or FXCanvas (Eclipse UI integration) as follows:
+
 
+
<source lang="java" style="border-style:solid;border-color:#f2f2f2;border-width:1px;padding:10px;margin-bottom:10px">
+
// standalone
+
viewer.setSceneContainer(new FXStageSceneContainer(primaryStage));
+
 
+
// Eclipse UI integration
+
viewer.setSceneContainer(new FXCanvasSceneContainer(canvas));
+
</source>
+
 
+
The FXViewer had full control over the scene creation, so other root visuals than those provided by the viewer could not be set for the scene. This responsibility was moved out of FXViewer, so its visuals are now hooked into the scene as follows:
+
 
+
<source lang="java" style="border-style:solid;border-color:#f2f2f2;border-width:1px;padding:10px;margin-bottom:10px">
+
// standalone
+
primaryStage.setScene(new Scene(viewer.getScrollPane()));
+
 
+
// Eclipse UI integration
+
canvas.setScene(new Scene(viewer.getScrollPane()));
+
</source>
+
 
+
Thereby, several FXViewers can now share a single scene, which is e.g. necessary to create a palette viewer. By means of an JavaFX SplitPane, this could look like follows:
+
 
+
<source lang="java" style="border-style:solid;border-color:#f2f2f2;border-width:1px;padding:10px;margin-bottom:10px">
+
// embed two viewers into a single scene by means of a SplitPane
+
SplitPane sp = new SplitPane();
+
sp.getItems().addAll(viewer1.getScrollPane(), viewer2.getScrollPane());
+
sp.setDividerPositions(0.5f);
+
primaryStage.setScene(new Scene(sp));
+
</source>
+
 
+
The now obsolete <code>org.eclipse.gef4.mvc.fx.viewer.ISceneContainer</code> abstraction and the related <code>org.eclipse.gef4.mvc.fx.FXStageSceneContainer</code>, and <code>org.eclipse.gef4.mvc.fx.ui.FXCanvasSceneContainer</code> implementations were removed.
+
 
+
----
+
 
+
==== Enabled that multiple viewers can easily be used with an FXView or FXEditor (M2) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=472650 #472650]
+
 
+
Factored out <code>hookViewers()</code> and <code>populateViewers()</code> hook methods from <code>createPartControl()</code>, with a default implementation that is based on a single default viewer, which can easily be overwritten by subclasses to hook/populate multiple viewers.
+
 
+
----
+
 
+
==== Fixed a bug where the undo history was incorrectly cleared (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=470028 #470028]
+
 
+
----
+
 
+
==== Enhanced the default resize mechanism for better customizability (M1) ====
+
You can now define the visual that is resized (only the part's "main" visual was allowed before), and also define the initial size (the visual's layout-bounds were used before).
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=471031 #471031]
+
 
+
----
+
 
+
==== Fixed a bug where the way points of a connection were "jumping"/changing position (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=466616 #466616]
+
 
+
----
+
 
+
==== Added checks to determine the dirty state of an FXEditor based on the undo-history (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=470612 #470612]
+
 
+
----
+
 
+
==== Added a widget for creating/manipulating multi-stop linear gradients (M1) ====
+
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=469491 #469491]
+
[[Image:GEF4-MVC-FX-UI-FXFillSelectionDialog-advanced.png|The FXAdvancedGradientPicker embedded into a property edit dialog.]]
+
  
 
[[Category:GEF]]
 
[[Category:GEF]]

Latest revision as of 09:18, 9 June 2017


The "New & Noteworthy" pages have been migrated to GitHub:

Back to the top