Bug 211899 - [EditorMgmt] Text font "forgotten" in non-Java files
Summary: [EditorMgmt] Text font "forgotten" in non-Java files
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-12-04 12:40 EST by Valerie Griffin CLA
Modified: 2009-05-09 03:17 EDT (History)
3 users (show)

See Also:


Attachments
.log of clean install (with MyEclipse) (6.36 KB, text/plain)
2008-04-19 16:50 EDT, Colin Pretorius CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valerie Griffin CLA 2007-12-04 12:40:31 EST
Build ID: I20070625-1500

Steps To Reproduce:
1.I'm using MyEcklipse 6.0.1 GA so some of what I describe to reproduce the problem may be specific to that set of extensions. They told me to report this problem to you.
2.Create 30+ projects with 40 user libraries. The average project contains 20+ files. (I've also got 37 databases defined, but I don't think that's reevant to the problem.)
2.Display lots of files, including some non-Java files. Note that they may be displayed in the correct (serif, monospaced) font.
4.Close the workbench with everything open
5.Open the workbench and look at a non-Java file. It is likely to be displayed in the "default" proportional, sans-serif font. Sometimes, closing all the files and reopening the workbench fixes the problem.


More information:
The likelihood of this problem seems inversely proportional to the number of files I'm displaying when it opens. Therefore, I suspect a startup thread issue.
Comment 1 Tod Creasey CLA 2007-12-04 16:29:15 EST
Which editor are you using? It is up to the editor to pick up the fonts from the registry.

The fonts are initialized before any editor plug-in is loaded so I suspect it is a bug in the editors you are using rather than a startup issue
Comment 2 Dani Megert CLA 2007-12-05 11:31:04 EST
Anything in the .log?
Did you switch the theme? I can remember a bug where the font gets lost when switching the theme.
Comment 3 Colin Pretorius CLA 2008-04-19 16:47:58 EDT
I have the same problem - details below might help:

1. I'm using Eclipse 3.3.2. I unzip the Eclipse installer file to a new directory, fire up eclipse.exe (ie. with new configuration), create a new workspace, create a new Java project, add a text file (.txt), and open it. It opens with the (correct) monospace font.

2. I then add MyEclipse 6.0.1 GA via an extension location. Re-open Eclipse, re-open the .txt file, and it opens with the wrong (ie. a proportional) font. 

3. If I leave the file open, close and re-open Eclipse, the file then opens with the correct font. 

4. If the file isn't open in the workspace, then it will consistently open with the wrong font. Since there's only a single project in the workspace, it doesn't seem to be related to number/size of projects in the workspace.

5. no relevant-looking output from my .log. I'll attach what there is, anyway.

Other observations based on what I've seen in my main workspace:

* numerous non-Java files have the same problem - including .txt, .sql, .xml, .form, etc.

* if I open an Ant build.xml with the default (Ant) editor, the file opens with the incorrect font, but syntax colouring is correct. If I open with the standard text editor (right-click Open with...), the wrong font is used. Strangely, if I open the file with MyEclipse's XML Editor, the correct font is used.

* similarly, I'll open a .css file, it opens with the (default) MyEclipse CSS Editor with the correct font. I then close the file, and re-open (right-click - Open with...) with text editor, and the file opens with the incorrect font.

* if a file is opened with the wrong font, and I then change my default text editor font (Preferences / General / Appearance / Colors and Fonts), then the editor will correctly refresh, displaying the new font.

* if I 'fix' the problem (either by changing the default font as above, or by re-opening Eclipse with the offending file open in the workspace), then when I open files with other extensions, then the correct font displays for all of them  - ie. fixing the problem for a .css will fix it for all other file types as well.

Hope this helps.
Comment 4 Colin Pretorius CLA 2008-04-19 16:50:15 EDT
Created attachment 96718 [details]
.log of clean install (with MyEclipse)
Comment 5 Colin Pretorius CLA 2008-04-19 17:34:28 EDT
... and after all that, I've found a thread on the MyEclipse forum which suggests that this is a known bug with MyEclipse and is due to be fixed in MyEclipse 6.5.

http://myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=19186
Comment 6 Boris Bokowski CLA 2008-04-19 19:47:15 EDT
Closing
Comment 7 Edwin Wiles CLA 2009-05-08 22:43:04 EDT
I suggest reopening this bug.  I'm not using 'MyEclipse'.  I am using version '3.4.0' from Ganymede, build id: I20080617-2000.  The description of this bug seems to fit my symptoms.  In addition to those packages available from Ganymede -- I think I have them all -- I have added JSDT (JavaScript Development Toolkit).  I do not believe I have any other non-standard packages.

On a freshly started instance with NO files open:

- Opening any plain text file will not use the configured font (Courier New 12).  Instead, a much smaller proportional font is used.

- Opening any XML file will not use the configured font.  Ditto.

- Opening any HTML file _will_ use the configured font.

Switching to a different font, and then back to the original (Courier New 12) will cause the open file to display in the correct font.  All subsequent XML and plain text files will open with the correct font.

Leaving files open, exiting eclipse, and starting eclipse again will result with all files displaying in the correct font.

This is all on Windows XP Pro Version 2002 SP 2.
Comment 8 Dani Megert CLA 2009-05-09 03:17:20 EDT
Before reopening: can you download plain Eclipse SDK 3.4.2 from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php
and start with a new workspace. If you see still see it then please post here your steps again. I suspect that one of the Ganymede train plug-ins might play with the fonts.