Bug 18510 ClassFileEditor leaks
In the 0530 build the leaks with the .java editor appear to have been fixed. The scenario I was using before: Create a .java file, close it. In memory profiler do a global GC and mark objects Open the same .java file, close it Does not leave tons of objects around anymore. However, if you import a binary plugin (I did this by importing all plugins) and open the .class file there is a significant leak. To recreate: Select a .class file (I used junit.awtui.AboutDialog.cass) from the junit.jar Open/Close it. Do a global GC, snapshot Open/Close the .class editor Do a global GC
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
int styles= SWT.MULTI | SWT.FULL_SELECTION;
				StyledText styledText= new StyledText(parent, styles);
				styledText.setBackground(fBackgroundColor);
				styledText.setForeground(fForegroundColor);
				styledText.setEditable(false);
				setFont(styledText);
				return styledText;
			}
			
			private void setFont(StyledText styledText) {
				IPreferenceStore store= getPreferenceStore();
				if (store != null) {
					
					FontData data= null;
					if (store.contains(PREFERENCE_FONT) && !store.isDefault(PREFERENCE_FONT))
						data= PreferenceConverter.getFontData(store, PREFERENCE_FONT);
					else
						data= PreferenceConverter.getDefaultFontData(store, PREFERENCE_FONT);
					
					if (data != null) {
						Font font= new Font(styledText.getDisplay(), data);
						styledText.setFont(font);
						if (fFont != null)
							fFont.dispose();
						fFont= font;
					}
				}
			}
			
			private Label createLabel(Composite parent, String text) {