Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 266025

Summary: Text is clipped while direct editing a label
Product: [Modeling] GMF-Runtime Reporter: Alex Boyko <aboyko>
Component: GeneralAssignee: Alex Boyko <aboyko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, richard.gronback
Version: 2.1   
Target Milestone: 2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard: 2.1.4 Patch
Attachments:
Description Flags
proposed patch none

Description Alex Boyko CLA 2009-02-24 15:58:34 EST
Created attachment 126613 [details]
proposed patch

The text control within the cell editor is created with SWT.WRAP | SWT.MULTI style on it. If there is not enough room to paint the text within the control text is "paged" thus the "page" displayed contains only the last character. The rest of the text is diplayed on the first "page" and user has to navigate to it with arrow keys. This is a regression from 2.1.2.
Regression, because in 3.4.2 GDI+ isn't well supported and we are forced to use GDI only to calculate the size of the string in pixels.
Comment 1 Anthony Hunter CLA 2009-02-24 17:48:31 EST
Patch looks good to me.

This cannot go on 2.1.3 as Ganymede SR2 is closed / out the door.
This cannot go on 2.2 as the problem does not occur there.
This cannot go on 2.1.4 as such a release does not exist / is not planned and we are not creating a release for one defect.

For now, I removed the target milestone and added "2.1.4 Patch" to the Whiteboard.

We can commit to R2_1_Maintenance and create a patch if we feel this is a critical issue.
Comment 2 Anthony Hunter CLA 2009-02-27 11:38:46 EST
The patch looks good, please commit to HEAD and R2_1_Maintenance.

The version of the org.eclipse.gmf.runtime.draw2d.ui bundles also needs to change to 1.2.4 to indicate a change post GMF 2.1.3.
Comment 3 Anthony Hunter CLA 2009-02-27 11:43:42 EST
(In reply to comment #2)
> The version of the org.eclipse.gmf.runtime.draw2d.ui bundles also needs to
> change to 1.2.4 to indicate a change post GMF 2.1.3.
> 

That is 1.1.4.
Comment 4 Alex Boyko CLA 2009-02-27 12:18:50 EST
Changed the plugin version to 1.1.4 and committed the fix to maintenance stream.
Comment 5 Anthony Hunter CLA 2009-08-25 17:41:23 EDT
We missed HEAD in Feb, I have now propagated the fix to HEAD and R2_2_maintenance.
Comment 6 Eclipse Webmaster CLA 2010-07-19 12:31:02 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug