Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Graphical Modeling Framework/Versions/GMF 2.1"
(→'''Export Big Diagrams to Images''') |
(Added an overview of the changes made to the WrapLabel, TextCompartmentEditPart, and TextDirectEditManager) |
||
Line 22: | Line 22: | ||
[[Image:CopyToHTMLResult.gif]] | [[Image:CopyToHTMLResult.gif]] | ||
+ | |||
+ | <span id="R21"></span> | ||
+ | == 2.1 M3 == | ||
+ | |||
+ | == Label Enhancements in the GMF Runtime == | ||
+ | There were a number of usability bugs with the WrapLabel implementation and the TextDirectEditManager. The TextCompartmentEditPart and its helper classes also made assumptions that the figure of a TextCompartmentEditPart was a WrapLabel, making it difficult for clients to use any other label figures. | ||
+ | |||
+ | A new WrappingLabel has been created that uses GEF's Flow Figure classes to perform that text wrapping. The TextCompartmentEditPart and its helper classes have been modified so that there is only a dependency on a new interface, ILabelDelegate, which a client could use with any figure for displaying the label. The TextDirectEditManager has been changed to fix a few bugs and work with an ILabelDelegate. | ||
+ | |||
+ | Existing GMF Runtime clients need not make any code changes to enjoy the benefits of the new WrappingLabel as the existing WrapLabel subclasses the new WrappingLabel. However, it would be wise to test all behavior with text on diagrams to ensure there are no regressions. | ||
+ | |||
+ | A document which discusses the design, gives an overview of the changes made, and provides documentation for the clients on how to use the new WrappingLabel is attached to the bugzilla: [https://bugs.eclipse.org/bugs/show_bug.cgi?id=162932 Bug 162932] |
Revision as of 11:20, 16 October 2007
Graphical Modeling Framework 2.1 New and Noteworthy items
See GMF Project Plan for more details
Back to Graphical Modeling Framework
Contents
Previous Release N&N Pages
GMF 2.0 New and Noteworthy - Released: June 28, 2007
GMF 1.0 New and Noteworthy - Released: June 30, 2006
2.1 M1
Export Big Diagrams to Images
Huge diagrams that fail to be exported to a single JPEG, JPG, GIF, PNG or BMP image (Bug 160386), now can be exported to a number of images that combined together will display the image of the whole diagram (or selected editparts). An HTML file is created to view the whole image. The HTML file essentially contains a table, each cell of which is occupied by the appropriate piece of diagram's image (i.e. by the image file corresponding to that particular piece of the diagram). GMF's UI for exporting diagrams to images has been added a checkbox "Export to HTML", which will trigger exporting the diagram as described above.
The result of exporting a huge Geoshape diagram to HTML with the HTML file opened looks as follows:
2.1 M3
Label Enhancements in the GMF Runtime
There were a number of usability bugs with the WrapLabel implementation and the TextDirectEditManager. The TextCompartmentEditPart and its helper classes also made assumptions that the figure of a TextCompartmentEditPart was a WrapLabel, making it difficult for clients to use any other label figures.
A new WrappingLabel has been created that uses GEF's Flow Figure classes to perform that text wrapping. The TextCompartmentEditPart and its helper classes have been modified so that there is only a dependency on a new interface, ILabelDelegate, which a client could use with any figure for displaying the label. The TextDirectEditManager has been changed to fix a few bugs and work with an ILabelDelegate.
Existing GMF Runtime clients need not make any code changes to enjoy the benefits of the new WrappingLabel as the existing WrapLabel subclasses the new WrappingLabel. However, it would be wise to test all behavior with text on diagrams to ensure there are no regressions.
A document which discusses the design, gives an overview of the changes made, and provides documentation for the clients on how to use the new WrappingLabel is attached to the bugzilla: Bug 162932