You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that JDT's JavaModelManager.doNotUse() disables large parts of PDE's functionality by removing WorkspacePluginModelManager and others from the preResourceChangeListeners of its DeltaProcessingState.
So far, so bad – I'm not sure if JDT should take care of reestablishing the listeners after a shutdown. At least the shutdown shouldn't be public API. But does PDE provide an API to do a reset and add the required listeners again? I couldn't find a way to do that programmatically (e.g., after doNotUse() was called within a plug-in test, whereas subsequent tests rely on the full PDE functionality).
Optimally, there could be a contract with JDT that would enable PDE to register a callback that adds the listeners again after every shutdown of the JavaModelManager.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It appears that JDT's
JavaModelManager.doNotUse()
disables large parts of PDE's functionality by removingWorkspacePluginModelManager
and others from thepreResourceChangeListeners
of itsDeltaProcessingState
.So far, so bad – I'm not sure if JDT should take care of reestablishing the listeners after a shutdown. At least the shutdown shouldn't be public API. But does PDE provide an API to do a reset and add the required listeners again? I couldn't find a way to do that programmatically (e.g., after
doNotUse()
was called within a plug-in test, whereas subsequent tests rely on the full PDE functionality).Optimally, there could be a contract with JDT that would enable PDE to register a callback that adds the listeners again after every shutdown of the
JavaModelManager
.Beta Was this translation helpful? Give feedback.
All reactions