Bug 106704 - TVT 3.1: TCT 583 - XSD feature description truncated
Summary: TVT 3.1: TCT 583 - XSD feature description truncated
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: Karice McIntyre CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 19:37 EDT by Kit Lo CLA Friend
Modified: 2006-11-16 11:19 EST (History)
6 users (show)

See Also:


Attachments
screen capture (99.67 KB, image/pjpeg)
2005-08-10 19:38 EDT, Kit Lo CLA Friend
no flags Details
xsd.bmp (39.34 KB, image/bmp)
2005-08-15 18:05 EDT, Cam-Thu Le CLA Friend
no flags Details
AboutFeaturesDialog.java patch (1.26 KB, patch)
2005-08-17 17:40 EDT, Karice McIntyre CLA Friend
no flags Details | Diff
XSD1 (96.16 KB, image/pjpeg)
2005-08-18 09:36 EDT, Kit Lo CLA Friend
no flags Details
XSD2 (100.73 KB, image/pjpeg)
2005-08-18 09:37 EDT, Kit Lo CLA Friend
no flags Details
pic of dialog after applying patch (87.75 KB, image/jpeg)
2005-08-18 16:13 EDT, Karice McIntyre CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kit Lo CLA Friend 2005-08-10 19:37:54 EDT
Half of the XSD feature description cannot be displayed. TVT tester marked 
this as must fix.

OS : RHEL 3.0 
Must fix 
Severity ( 1 thru 4, 1 as most severe): 2 
Build date: 0809 
Blocking: No 
Language: JPN 
Bitmap Location: Z:\defects\JPN\FeatureXML_JPN.jpg 
Tester Name: Hiroshi Inoue 

Problem Description: 
Descriptions for XML Schema Info Model (XSD) is truncated. 

Steps: 
1. From Menu, select Help. 
2. Select About Eclipse SDK. 
3. Click on the Feature Detailes button. 
4. Select the XML Schema Infoset Model (XSD).
Comment 1 Kit Lo CLA Friend 2005-08-10 19:38:22 EDT
Created attachment 26005 [details]
screen capture
Comment 2 Jeffrey Liu CLA Friend 2005-08-11 08:26:22 EDT
Hi Kit, EMF contributed the org.eclipse.xsd feature. Please route this bug over 
to them. Thanks.
Comment 3 Jeffrey Liu CLA Friend 2005-08-12 14:27:02 EDT
This could be an Eclipse Platform bug where they did not render the UI 
correctly.
Comment 4 Cam-Thu Le CLA Friend 2005-08-15 18:01:53 EDT
Jeff, this problem also occurs in the English version (truncation). Please see 
screen capture. Can this bug be fixed for this TVT ? 
Comment 5 Cam-Thu Le CLA Friend 2005-08-15 18:04:38 EDT
Sorry, this bugs should be re-routed to the EMF/XSD team.
Comment 6 Cam-Thu Le CLA Friend 2005-08-15 18:05:29 EDT
Created attachment 26135 [details]
xsd.bmp
Comment 7 Ed Merks CLA Friend 2005-08-16 07:16:52 EDT
Cam,

All EMF does is provide an about.properties in the org.eclipse.xsd plugin to
define this property:

featureText=XML Schema Infoset Model (XSD)\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
(c) Copyright Eclipse contributors and others. 2002, 2005.  All rights reserved.\n\
\n\
The XSD Infoset Model is a reference library for manipulating the\n\
components of an XML Schema as described by the W3C XML Schema\n\
specifications.\n\
Visit http://www.eclipse.org/xsd

As such, the truncation is beyond our control.  I've assigned this to the
platform for lack of better knowledge of the component that does the rendering.
  On windows, at least, the full text is rendered if the window is resized
slightly, so this doesn't strike me as a must fix problem.  Even without the
resizing workaround, this strikes me as a trivial problem that doesn't interfer
with the proper functioning of the system in any way...
Comment 8 Pascal Rapicault CLA Friend 2005-08-16 09:02:39 EDT
Moving to platform ui as they are responsible for this dialog.
Comment 9 Karice McIntyre CLA Friend 2005-08-17 17:40:02 EDT
Created attachment 26216 [details]
AboutFeaturesDialog.java patch 

Patch to show all content.
Comment 10 Karice McIntyre CLA Friend 2005-08-17 18:26:50 EDT
Checked the patch on Linux-GTK in lowest resolution and on Win2K.  All text
appeared without re-sizing.
Comment 11 Kit Lo CLA Friend 2005-08-18 09:36:13 EDT
Created attachment 26223 [details]
XSD1

Karice, the patch is still not working well for us. This is the screen capture
when we select the XSD feature. We can only see the first line without
resizing. This is happening on Windows XP, RHEL 3.1, and RHEL 4.0.
Comment 12 Kit Lo CLA Friend 2005-08-18 09:37:47 EDT
Created attachment 26224 [details]
XSD2

After resizing the dialog a little bit wider, then we can see the rest of the
lines.
Comment 13 Karice McIntyre CLA Friend 2005-08-18 14:02:35 EDT
Hmm, I tested using English text.  I guess I will have to try using the 
Japanese text.
Comment 14 Karice McIntyre CLA Friend 2005-08-18 14:18:54 EDT
Can someone supply the Japanese text that is appearing?
Comment 15 Karice McIntyre CLA Friend 2005-08-18 14:33:26 EDT
Hmm, in Cam's comment #4 she says the problem also occurs in English, which is 
probably why I used English text to test the patch.  

Did you use the lowest supported resolution (1280x768) on WindowsXP when you 
tested the patch?  I think I tested on Windows not in the lower resolution, but 
I did use the low resolution on Linux.
Comment 16 Kit Lo CLA Friend 2005-08-18 14:43:58 EDT
It happened on my 1400x1050 Windows XP machine, and 1024x768 RHEL 3.1 and 4.0 
machines.
Comment 17 Karice McIntyre CLA Friend 2005-08-18 14:57:13 EDT
Kit, do you get the same result in English using the patch?
Comment 18 Kit Lo CLA Friend 2005-08-18 15:20:02 EDT
I just tried, same problem for English on all 3 machines (need to resize a 
liitle to see all lines).
Comment 19 Karice McIntyre CLA Friend 2005-08-18 16:13:03 EDT
Created attachment 26268 [details]
pic of dialog after applying patch

I just tried the patch on WinXP and I see all the text without resizing the
dialog.  Since I don't have the XSD plugins I just changed the text of one of
the SDK features (PDE) and tested it that way.
Comment 20 Tod Creasey CLA Friend 2005-08-19 11:57:56 EDT
Kit we are having trouble getting the XSD feature to show up in the features
dialog. Can you let us know how you are setting this up please?
Comment 21 Kit Lo CLA Friend 2005-08-31 10:39:03 EDT
Here are the steps to to recreate the problem using EMF (smaller and easier):
- download and extract Eclipse M20050824-1200
- download and extract EMF 
http://fullmoon.rtp.raleigh.ibm.com/tools/emf/scripts/downloads-viewer.php?
s=2.1.1/M200508110300
- start Eclipse in English on WinXP English version (resolution=1280x1024)
- select Help>About Eclipse SDK
- click "Feature Details" button
- select feature id "org.eclipse.emf"
- only first line of description "EMF is a ... and other" is displayed
- resize window a little wider
- the second and third line "application based on ... Visit http://..." is 
displayed

This bug is not marked as TVT must-fix. I'm lowering severity to normal. But, 
please try to address this in 3.2.
Comment 22 Karice McIntyre CLA Friend 2005-08-31 10:59:52 EDT
I followed the steps and with the patch I see all the text of the 
org.eclipse.emf feature.  If I roll out the patch and use the old code, I don't 
see all the text.  I think the patch is ok.
Comment 23 Kit Lo CLA Friend 2005-08-31 11:22:19 EDT
Is the patch in Eclipse M20050824-1200?
Comment 24 Karice McIntyre CLA Friend 2005-08-31 11:29:40 EDT
No, we didn't release the patch because in comment #11 you said you applied it 
and it didn't work.  So we wanted to test it with the exact case you were 
using.  Now that we are using your exact test case and it works, I think we can 
go ahead and release the patch.
Comment 25 Karice McIntyre CLA Friend 2005-09-01 15:35:00 EDT
Doug, can you check this patch?  It is in Comment #9.  
Comment 26 Douglas Pollock CLA Friend 2005-09-01 15:56:12 EDT
Cross-tested on MacOS X and Linux GTK+.  It works on both platforms.  Would 
you like this applied to the 3.1.1 stream as well?  As it stands right now, 
"org.eclipse.platform" is not displaying an Apache copyright notice.  With the 
patch, the Apache copyright notice appears. 
 
Comment 27 Douglas Pollock CLA Friend 2005-09-01 16:48:40 EDT
I'm going to apply this patch to both the 3.1.1 stream and 3.2 stream.  The   
patch is low risk, and I feel displaying copyright information is pretty   
important.  ;)   
 
Comment 28 Karice McIntyre CLA Friend 2005-09-01 17:00:58 EDT
Applying the fix for 3.1.1 is fine.  

I take it the copyright notice is a separate issue that you found?
Comment 29 Karice McIntyre CLA Friend 2005-09-26 17:09:48 EDT
Verified in 3.1.1 RC2 and using EMF SDO SDK 0908
Comment 30 Kit Lo CLA Friend 2006-11-16 11:19:57 EST
closing verified bug