How to migrate from deleted TerminalServiceFactory to new API #2157
Replies: 1 comment 2 replies
-
@jonahgraham first the most important one is where do you need it? e.g. Then next, if you are using already any DI technique like OSGi-DS you can simply fetch it as a regular service, in E4 you can use If all that don't suffice, then yes a technique similar to your snippet can be used, we then can probably decide if there are other places where we should expose this if it is often needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@laeubi one of the things that #2025 changed was to remove
TerminalServiceFactory
in favour ofUIPlugin.getTerminalService()
.The
UIPlugin
is not API, butTerminalServiceFactory
was API. Using this factory was the way the original terminal authors suggested (see this email) and someone migrating their RCP product is running into a problem on what to do in this area (see eclipse-cdt/cdt#1302 (comment)).Should API consumers now implement this themselves in their own bundle? something like:
(above extracted from UIPlugin)
Or are there any other suggestions?
Beta Was this translation helpful? Give feedback.
All reactions