mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
[302273 ] Fix getAdapter() which used to always return null
This commit is contained in:
parent
4bec9af75d
commit
6dc4eb037d
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ public abstract class RetargetAction implements IWorkbenchWindowActionDelegate,
|
|||
if (adapter == null) {
|
||||
IAdapterManager adapterManager = Platform.getAdapterManager();
|
||||
if (adapterManager.hasAdapter(adaptable, getAdapterClass().getName())) {
|
||||
fTargetAdapter = adapterManager.loadAdapter(adaptable, getAdapterClass().getName());
|
||||
adapter = adapterManager.loadAdapter(adaptable, getAdapterClass().getName());
|
||||
}
|
||||
}
|
||||
return adapter;
|
||||
|
|
Loading…
Add table
Reference in a new issue