Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312454

Summary: [Compatibility] Application's commands increases in size across workbench restarts
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 1.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2010-05-11 11:45:19 EDT
Across restarts, I am getting a linear increase in the number of commands in my MApplication.

991
14xx
1983
2479

This may or may not be one of the problems behind bug 312435. In any case, it needs to be fixed. ;)
Comment 1 Remy Suen CLA 2010-05-11 11:52:32 EDT
In here we create 496 new MCommands.

Thread [main] (Suspended (breakpoint at line 106 in CommandImpl))
	CommandImpl.<init>() line: 106	
	CommandsFactoryImpl.createCommand() line: 140	
	Workbench.initializeCommandService(IEclipseContext) line: 1732	
	Workbench.access$23(Workbench, IEclipseContext) line: 1692	
	Workbench$34.runWithException() line: 1811	
	Workbench$34(StartupThreading$StartupRunnable).run() line: 31	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 134	
	Display.runAsyncMessages(boolean) line: 4041	
	Display.readAndDispatch() line: 3660	
	Workbench.runUI() line: 2339	
	Workbench.access$3(Workbench) line: 2247	
	Workbench$3.run() line: 532	
	Realm.runWithDefault(Realm, Runnable) line: 332	
	Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 520	
	PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149	
	IDEApplication.start(IApplicationContext) line: 115	
	EclipseAppHandle.run(Object) line: 196	
	EclipseAppLauncher.runApplication(Object) line: 110	
	EclipseAppLauncher.start(Object) line: 79	
	EclipseStarter.run(Object) line: 369	
	EclipseStarter.run(String[], Runnable) line: 179	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 79	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43	
	Method.invoke(Object, Object...) line: 618	
	Main.invokeFramework(String[], URL[]) line: 619	
	Main.basicRun(String[]) line: 574	
	Main.run(String[]) line: 1407	
	Main.main(String[]) line: 1383
Comment 2 Remy Suen CLA 2010-05-11 12:17:01 EDT
Fixed in CVS HEAD. Thanks for the help, Tom.

I now get...

495
497
497
497
...