Bug 142500 - WTP properties pages fonts don't follow Eclipse preferences
Summary: WTP properties pages fonts don't follow Eclipse preferences
Status: CLOSED FIXED
Alias: None
Product: Web Tools
Classification: WebTools
Component: Web Standard Tools (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Amy Wu CLA
QA Contact: Arthur Ryman CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-05-18 10:43 EDT by Amy Wu CLA
Modified: 2007-01-03 12:22 EST (History)
4 users (show)

See Also:


Attachments
First go at the patch (54.43 KB, patch)
2006-09-15 08:11 EDT, David Schneider CLA
no flags Details | Diff
finalpatch.patch (87.74 KB, patch)
2006-11-06 16:27 EST, Amy Wu CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amy Wu CLA 2006-05-18 10:43:31 EDT
While investigating the fonts in WTP's preference pages in bug 128225, noticed that WTP's properties pages also don't always follow eclipse's dialog font.
Some of these include:
J2EE
J2EE Module Dependencies
JSP Fragment
Project Facets
Targeted Runtimes
Validation
Web Content Settings

and there may be more..
Comment 1 Amy Wu CLA 2006-05-18 10:51:09 EDT
Adding everyone from bug 128225.
Comment 2 David Williams CLA 2006-06-15 17:45:41 EDT
Assigning to Amy so its assigned to a committer to track. 

I assumed this was assigned to David Schneider as a way of saying 
we'd love his continued patches for future fixes for Releaes 2.0? 

So .. I've marked as "help wanted" and in no way meant to discourage 
anyone! 

Comment 3 Lawrence Mandel CLA 2006-06-15 18:10:28 EDT
This bug was assigned to David Schneider as I asked in bug 128225 if he'd be willing to tackle this problem and in comment 34 he said that he was willing to take this on.

I don't think we need to assign bugs to committers. Contributors can handle bugs and prompt committers to review and commit when a patch is ready.

I've cced david.schneider@unisys.com so he'll be able to track the changes and work with Amy. Amy, I'd encourage you to assign this bug back to David S., cc yourself and follow up with him on progress.
Comment 4 David Schneider CLA 2006-06-16 08:46:05 EDT
I did volunteer to take this bug.  I'm not sure how much time I can devote to it.  If you need it done by yesterday, then perhaps I'm not the best choice.  Otherwise, I'd be happy to do it.  
Comment 5 David Williams CLA 2006-06-16 09:32:22 EDT
Thanks all for correcting me ... and explaining the history here. 

And, David, we do not "need yesterday" ... at this point, I'd say you 
have until next release :) 

Comment 6 Lawrence Mandel CLA 2006-06-16 09:49:54 EDT
Right, I think this is a WTP 2.0 work item (as opposed to 1.5.1).
Comment 7 David Schneider CLA 2006-09-06 11:23:00 EDT
Sorry for the delay, but I'm FINALLY getting around to this.  I'm almost complete, but I'm encountering the same problems as I did before.  I can only generate patches for a few components.  The majority of my changes I can't generate patches.  

see bug: 142726 

Dave
Comment 8 David Schneider CLA 2006-09-15 08:11:33 EDT
Created attachment 50245 [details]
First go at the patch

Attached is the first go at the patch for this bugzilla.   Question:
In the patch my inserted code rarely lines up with the existing code, but it does in my running copy of the source.  I'm not sure what to do.  Should I be editing the patch?  I'm not sure if the "+" occupies a real space location.
Comment 9 David Schneider CLA 2006-10-30 15:16:19 EST
The patch I created has been sitting with no activity for well over a month.   I'm sure that the patch no longer merges cleanly.   When someone is availble to look at the patch and integrate it in a timely fashion, I am willing to spend some time to upgrade the patch to the current level of WTP.  

Thanks,
Dave
Comment 10 David Williams CLA 2006-10-30 15:23:12 EST
Sorry for letting this slip through the cracks ... Amy, please see how this looks on WTP 2.0 stream. 
Comment 11 Amy Wu CLA 2006-11-06 16:26:02 EST
Sorry for not applying these patches sooner.  I was not able to use the patch as-is because apparently the project information was missing.  I went through and added the project info, and then I was able to almost apply every change except for changes made to org.eclipse.jst.j2ee.ejb.annotation.ui (but I was able to figure out what was supposed to be changed, so I just did that manually)

I did not make any changes to org.eclipse.wst.rdb because rdb turned into dtp, so a new defect should be opened on the data tools project for them to make their change.

I also did not make any changes to org.eclipse.wst.wsdl.ui because that project has not branched yet, and they may still be doing work on 1.5.x.  I opened a new defect on them (bug 163598) to track this outstanding issue.

I believe J2EEPropertiesPage, JSP Fragment, Web Content Settings property pages were not updated with the font changes, so I fixed those up too.

I think that's about it.  I will attach a patch with the final results/changes.

jst.ejb.ui
jst.j2ee.ejb.annotations.ui
jst.j2ee.jca.ui
jst.j2ee.ui
jst.jsp.ui
jst.servlet.ui
jst.ws.consumption.ui
wst.command.env.ui
wst.common.project.facet.ui
wst.css.ui
wst.html.ui
wst.sse.ui
wst.validation.ui
wst.web.ui
wst.xml.ui
wst.xsd.ui
Comment 12 Amy Wu CLA 2006-11-06 16:27:54 EST
Created attachment 53333 [details]
finalpatch.patch

Changes made to all projects listed in the previous comment. Thanks Dave!
Comment 13 David Schneider CLA 2006-11-06 16:40:53 EST
Thanks Amy.   I'm sorry this was such a huge project to clean up for integration.   I also have no idea why the project info was missing from the patch.   I've been having great difficulty generating patches in the first place and end up taking my workspace home to generate patches.   For future reference, if there is something I could have done better please let me know.
Comment 14 Amy Wu CLA 2006-11-06 17:10:43 EST
I believe your patches were fine except for the missing project info.  It would look a little something like this:
#P org.eclipse.wst.wsdl.ui
Index: src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/WSDLNewFileOptionsPage.java

I'm not sure why your patch was missing those.  If for some reason, you continue to have problems with your patch not including the project info, it'd be helpful if you add it manually.  Or just generate a patch per project and make the patch filename the name of the project the patch is intended for.

Thanks again.  I've committed and released the changes to head for WTP 2.0.  It should be in any build > 200611070200
Comment 15 Amy Wu CLA 2007-01-03 12:22:39 EST
verified on WTP2.0 SDK 200612180440