Project: Eclipse_Platform_UI
Bug 401199 unused private field errors
Reported: 2013-02-19 10:38:00 | Status: verified fixed

With CBI-4.2.0.I20130217-2011 I get 4 unused field errors: Description Resource Path Location Type The value of the field MenuManagerHideProcessor.modelService is not used MenuManagerHideProcessor.java /org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt line 40 Java Problem The value of the field MenuManagerRendererFilter.rendererFactory is not used MenuManagerRendererFilter.java /org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt line 68 Java Problem The value of the field MenuManagerHideProcessor.rendererFactory is not used MenuManagerHideProcessor.java /org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt line 43 Java Problem The value of the field ContextService.synchService is not used ContextService.java /org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts line 65 Java Problem This code hasn't changed in a long time, and these errors have just appeared. They're valid errors, though (we have per-project settings that unused private members should be errors), so I need to fix them. PW

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerHideProcessor.java bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRendererFilter.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ContextService.java