Community
Participate
Working Groups
In M5... Open Eclipse with a perspective which has hidden editors (e.g., the Runtime Spy perspective in the Core Tools plugin). Ensure you have a Java Browsing perspective and one open java file available but not visible. Using the Core tools Runtime Spy you can see that there are some 21 classes loaded in the Debug UI plugin (the actual number may vary by VM due to verification differences). Now switch to the Java Browsing perspective and then back to the Runtime Spy perspective. Notice that there are now 41 classes loaded in the Debug UI plugin. Below is the list of additional classes in order of loading. As you can see, there are many actions and dialog classes loaded. Some of this is likely due to the UI plugin not being able to defer creating the run/debug menu entries. It does seem however that more than that is being loaded. org.eclipse.debug.internal.ui.actions.OpenRunConfigurations org.eclipse.debug.internal.ui.actions.RunAsAction org.eclipse.debug.internal.ui.actions.RunHistoryMenuAction org.eclipse.debug.internal.ui.actions.RelaunchLastAction org.eclipse.debug.internal.ui.actions.DebugLastAction org.eclipse.debug.internal.ui.actions.RunLastAction org.eclipse.debug.internal.ui.actions.RunToolbarAction org.eclipse.debug.internal.ui.actions.OpenDebugConfigurations org.eclipse.debug.internal.ui.actions.DebugAsAction org.eclipse.debug.internal.ui.actions.DebugHistoryMenuAction org.eclipse.debug.internal.ui.actions.DebugToolbarAction org.eclipse.debug.ui.actions.LaunchAction org.eclipse.debug.ui.DebugUITools org.eclipse.debug.ui.ILaunchConfigurationDialog org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationProperties Dialog org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog org.eclipse.debug.internal.ui.DefaultLabelProvider org.eclipse.debug.internal.ui.DebugPluginImages org.eclipse.debug.internal.ui.IDebugHelpContextIds
The actions refer to the dialogs (they can open the dialogs). The label provider is used to create images for the actions. The help context ids are used in the actions as well. I do not see much opportunity here - unless we use ugly "classForName" tricks.
Nothing planned for 2.1
Closing, this is really a dup of bug 53979, and we also have bug 191723 to improve our class loading on startup.
*** This bug has been marked as a duplicate of bug 53979 ***