Joseph Carroll Messages: 174 Registered: May 2012 Location: Milwaukee, WI
If I am understanding the questiong, [AFAIK] I do not believe there is a way to flush the cache at runtime. However, by starting your application with the flag -clearPersistedState it will prevent the loading of any persisted application model. Or you can always delete the the workbench model from your workspace before you start.
Sopot Cela Messages: 596 Registered: December 2010
Jeeeyul, I'm still not clear what the problem is. You uninstall an add-on on runtime and you get an error logged? What is the error? I think there's a cleanup addon around but I'm not sure if it deals with this case. If you describe the issue better (ideally file a bug on e4/runtime) we can take a look at it.
Jeeeyul Lee Messages: 108 Registered: July 2009 Location: Seoul
Application Model is serialized and deserialized when eclipse is launching. (E4Application#loadApplicationModel(IApplicationContext, IEclipseContext)
What if I uninstalled bundles which contributed Model Addons,
then Add-Ons which are contributed by uninstalled Contributor(Bundle) can be remains.
E4 Application can't resolve contributed URI(because there is no contributor), so it logs an error.
Log seems like to:
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR
Framework arguments: -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.modeling.product
Tue Aug 28 09:19:35 KST 2012
Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.tools.emf.liveeditor/org.eclipse.e4.tools.emf.liveeditor.OpenLiveDialogHandler (contributed URI)